Hide processing time from the user
What happens in a regular old web application when a user makes a request? This web application could be built in Drupal or Ruby on Rails or Django. These frameworks all, on a very general level, share some characteristics — and not just because they are MVC frameworks.
Dynamic web applications built with these frameworks share the characteristic that they build responses on request. This is so trivial, and such a common pattern, that it is rarely questioned.
They share the pattern that they handle requests in roughly the following steps:
- Receive and understand request
- Query a database for some information
- Transform data into a response
- Send response to the user
Receiving requests and sending responses are required for a web server to be considered a web server, so these hardly need further exploration.
Querying a database may take different forms. Even as it has become possible
Continue reading →