Dynamic web dynamically build webpage by merge server-side scripting language, with HTML markup. Each request from client browser, will create a HTTP connection to server, then server processed request, output data and return back to client. Note that: for example, I have the following configuration for Apache:
# KeepAlive: Whether or not to allow persistent connections (more than # one request per connection). Set to "Off" to deactivate. # KeepAlive Off # # MaxKeepAliveRequests: The maximum number of requests to allow # during a persistent connection. Set to 0 to allow an unlimited amount. # We recommend you leave this number high, for maximum performance. # MaxKeepAliveRequests 100 # # KeepAliveTimeout: Number of seconds to wait for the next request from the # same client on the same connection. # KeepAliveTimeout 15
AJAX and full-stack
Now we have components inside a full-stack application:
- Database: We have MongoDB – leading NoSQL database
- Server-side: We have NodeJS with Express
- Client-side: We have AngularJS for front-end manipulation
- Evenmore, others are rising: RequireJS, PhantomJS, Polymer which make new Web Standard become popular and available for all of us like Shadow DOM and Web Components.
And you can see they talk the same language: JSON. No more extraneous parsing code. You create JSON, save to database as JSON, return as JSON and binding using JSON too. All components are lightweight and open source, awesome again! NPM and bower can easily to be used as dependencies management for both client and server side.