ka | en
TSU

Methods for improving the performance of .NET based applications

Author: Giorgi Khorbaladze
Co-authors: Giorgi Khorbaladze
Keywords: .NET application performance, Performance optimization techniques, DI performance tuning, .NET performance testing methods
Annotation:

In today's fast-paced digital world, application performance is a critical factor that directly impacts customer satisfaction, future retention, and business success. We have increasingly high expectations for the performance and scalability of Internet services. Slow applications can lead to user frustration, which negatively impacts business revenue as well. In recent years, investments in research in this area have increased significantly. The .NET Framework offers a large ecosystem with powerful tools and a wide range of capabilities to build powerful applications. Achieving optimal performance requires a deliberate approach that goes beyond just practicing writing the right code. This process includes understanding the basic principles, making full use of the framework's capabilities, and implementing various optimization methods. This work examines one of the fundamental concepts of applications based on the .NET platform, namely the method of injection with the dependency constructor. The aim of the work is to reveal the shortcomings of this method and to show ways to solve them. Although dependency injection helps us write better code, our experiments have shown that, when configured incorrectly, it can lead to serious performance issues. The work presents an improved version of the injection method with a dependency injection constructor, which acts as a mediator between the dependent service and the injection container. Based on the benchmark results, we have shown that in a consumer context where a service is required to initialize at a certain time, using a constructor injection wrapper has a clear advantage over its competing method. It also improves the performance of the garbage collection mechanism by avoiding creating redundant class instances in the first place. Our research revealed the drawbacks of Warper's method of dependency injection, including increasing the application domain logic and complicating the unit testing process. Thus, the research conducted showed us that in certain cases, using an injection wrapper with a dependency constructor can improve performance, which ensures the highest quality of the resulting products and the best user experience.



Web Development by WebDevelopmentQuote.com
Design downloaded from Free Templates - your source for free web templates
Supported by Hosting24.com