How to improve Application Stability in .Net Core Applications
- Write Unit tests and improve code coverage (> 80%)
- Write more automation tests using testing tools like selenium, protractor
- Perform Performance, load and stress testing to identify the threshold volume the app can handle and can auto-scale as per needs (Tools: JMeter)
- Its also important that we maintain a tech debt epic and add stories that need changes to the application like refactoring the code, or fixing some performance lags in a hot spot in code which we might not be able to do as part of the normal sprint work. And, allocate 20% of every sprint to work on MLO(maintenance lights on) items
- Find ways to improve logging (Create middlewares to log incoming requests, to log global exceptions, remove duplicate logging, log body and header of the request and remove any sensitive data(tokens), Log wherever possible for better troubleshooting purposes
- Find ways to improve monitoring of the App. Use Splunk forwarder to forward all the logs to Splunk and create different kinds of dashboards for various apps to monitor the current and historical performance of the app. We can also enable AppDynamics to monitor both application and business performance of the application
- Enable AutoScaling of the application if the traffic increases ( PCF Autoscaler service which scales based on a number of parameters like CPU, throughput, memory)
Comments
Post a Comment