×
Jinxia Li

SystemDesign (1) – Migrating my monolithic app into MVC app

No Comments

Why?

I have a monolithic app and want to split it up into one with MVC architecture cause I’ve been having a hard time navigating and working on the codebase efficiently as I add more code and features.

How?

  • Understand how PHP works?

  • Understand how handing of HTTP requests in PHP
  1. $_SERVER contains information about HTTP headers, paths, and script locations.
  2. $_GET used to collect 1)data sent from HMTL form with method=”get” and 2)data sent in the URL.
  3. $_REQUEST used to collect data sent from HTML form with method=”POST”.

  • Understand how the different part talk to each other? By ‘include’
  • Separation of concerns (SoC)
  • API & URL Components – API testing
  • Re-architect a monolithic PHP application into MVC architecture.
  • Improve code quality using OOP (Cohesion & Coupling )

Reference –

Migrating a Monolithic Application to Microservices

https://www.youtube.com/watch?v=_azoxefUs_Y

Advanced handling of HTTP requests in PHP

https://gist.github.com/nicolas-grekas/1028251

Leave a Comment

Your email address will not be published. Required fields are marked *

By commenting you accept the Privacy Policy