I just started my career in the web development about two months ago. During the two months, I wrote one web service in php Symfony2, get involed investigation of one project written in Python Flask and also help debugging a web service using Java Spring MVC.
OK, here is the summary.
- php Symfony2
- python Flask
- java Spring MVC
After getting a touch with these three frameworks, I've got to know that they are following the same pattern, MVC.
- one front controller to recieve requests from clients and transform those requests to calls to functions within controller objects which are wriitten by developers.
- after processing the requests, the framework uses the processing results to generate the pages that will be sent back the clients or just return some data to clients to response to ajax calls.
- I have not quite got the idea of Model. Perhaps it is the way of handling database?
Is this workflow that I wrote above a standard way of writing web services? If so, could you give me some useful links that contain the offcial documments?
or is it just a custom followed by developers? or just an industrial standard.
I think there are still some other factors behind the MVC pattern, like filters. (I haven't got the chance to use filters in my project, but I think there is more than filters behind the scene.)
I was told that these frameworks get ideas from
ruby on railswhich introduces this workflow. Is that true? where can I get the full introduction or documents about this kind of web services workflow?
Thanks very much.