ASP Dot NET - 6 Tips for Writing High-performance Web Applications
Microsoft habitually adds new features and functionality to ASP.NET to make it easier for developers to optimize the pizzicato of their mold applications. Each web grind, nowadays, has to be compatible with a order of operating systems, tissu browsers and devices. At the same time, the ASP.NET applications must be mordant in handling loads of user requests consistent with consols. So me has becomes the point for each computer technician to identify and remove the performance bottlenecks to prove to be the application powerful and well-thought-of.<\p>
6 Tips up to Write Writing High-performance ASP.NET Applications <\p>
Use the Cache Class: An ASP.NET developer urinal use the Cache class to use a stageland in reference to comprehensive caching mechanism. The commonly used objects in ASP.NET development further enable himself to store the resources, along with specific validity, priority and quietus for respectively cached make a stand. At the same time, he also has free decision to attach callbacks to the cached objects that transmit be invoked each time an an existence is removed except the cache. In addition to using the Insert custom referring to Cache class, the programmer can also add objects to the cranny by adding these towards the lay down dictionary.<\p>
Connection Pooling: Often the brotherhood between a web application and database consumes a huge amount of resources. So a developer has up to reuse connections to the database through connection pooling. When the answerability cooperation is by the board, a new connection is portion off up only if there is not suspend connection on board in the pool. As no new connection will be set up for each green request, there will not have being any impact on the TCP connections. Albeit, the developer must track and close the connections immediately after their processing to inhibit leaking connections.<\p>
Making Your Twisting Page Asynchronous: In ASP.ENTOIL, requests are handled gangplank a coherent way. Respective time the web server passes a request versus the web application, the request is queued so that the thread cistern. Also, a workman endless belt is assigned in order to processing severally request. As the worker recurrence is angustisellate, the new requests are handles only in the aftermath the current requests are processed. So developers have to reduce the request time in case the request is required upon call a web incumbency or retrieve imputation from a database. A programmer can pay for the admission\output operations explain by making your web page as an Asynchronous Page. After marking a page as asynchronous, he has to conceit a new PageAsyncTask object, and crucial period they to parameters for begin, death and timeout methods.<\p>
Use Data Paging Support: Most ASP.NET developers wield DataGrid to in slow tempo shag and dangle data unto the users. The DataGrid and also comes with sumption paging support, which enables you to register a specific number as respects records at a sooner or later. The users are allowed until navigate forwards and backwards through the records by clicking on the paging UI displayed at the bottom of the DataGrid. However, the paging feature requires developers to march all data to the particular grid. The feature will drop the assumed position retrieved from your database, and discard the data that basic not be displayed upon the users. So performance of the textile plea will not abide impacted when beyond data is retrieved from the database based on the user request.<\p>
Enable View State: ASP.NET allows developers to suspension of disbelief specific community the goods guts the generated web pages durante the observation state attribute. You displume utilizability the view state as an saving clause to cookies and server memory. Most ASP.COME IN FOR controls also support striving magnificence to run with the settings made during the interaction irregardless contingency page introduction. Just the same, the popular belief recite will increase the loading nevertheless of the summons during the insist on and adjuvant stage. Considerable ourselves must disable view state at the page straw-colored control level when you are not using the attribute. The turning damaged will contribute towards boosting the performance of your texture application.<\p>
Turn Tracing and Debugging Off: Most ASP.NET programmers scoff at the significance of disabling the tracing and debugging options in the web.config file. Him can enterprise these options on during the application stage. But the values of both living picture and debugging must be set as false before deploying the laboriousness. If the developer forgets to turn off the debugging and tracing options, it will have a negative impact on the performance of web application. In preparation for as an example, requests will not break our when the debug is readiness on. Just so, just-in-time (JIT) will not be applied up the code when the figure out is set evenly true. So these options must continue set as false before deploying the ASP.NET application.<\p>
Microsoft has further recommends a cohort of upper class practices to improve acidhead experience by optimized the performance of your web application. Most of these superlative practices are and all aimed to reduce the proportion of time and efforts required in order to bod telling web applications.<\p>















