preview

Application For Asynchronous Server Model

Better Essays

Parameters considered: 1. Preference for asynchronous server model over synchronous server model. 2. Reduce server load, Load balancing (Splits servers for specific requests) 3. Decrease bandwidth between client and server. 4. Compression techniques. 5. Render static assets through reverse proxy (No need to create another process in system memory for static assets access). 6. Better to use content delivery network for libraries that may be need for frontend interface. 7. Non-blocking and event threads 8. Reduce database query time by applying indexing/clustering/stored procedure/optimized queries 9. Use of caching server to cache the static page requests. 10. Common Techniques. The above parameters mentioned are the generic one which …show more content…

Which blocks the customers’ requests and may lead to crash of server or sometime requests of customer are not entertained properly. So the better option is to choose an asynchronous server paradigm here to avoid this type of condition. An asynchronous server handles all the request through one process/thread through a concept like event loop. This is nothing but a mechanism to handle http incoming request in event driven nature. For Ex: Suppose you are a student and have access to a portal which provides the functionality for reading massive journals content through API , That API is a http request which request for required data and render the relevant info to end user. Now if you are performing same operation with synchronous server and if the targeted journal if is 5 GB in terms of size, then synchronous server will halt further execution of the code block and further statements/expressions will not executed until the server do not read all the 5 GB data Now consider a scenario a typical request of above http call takes 1hr (For example) then further statement will have to wait needlessly to get executed until you don 't read the 5 GB data. This condition called as "Blocking", which blocks overall execution for some time for that specific process. The better approach to overcome this scenario is to

Get Access