Chapter 10: Load Testing and Scaling Dapr
In this chapter, we will learn how to scale Dapr applications in a Kubernetes environment. After that, we will learn how to load test a Dapr solution by simulating user behavior with the Locust testing tool.
In this chapter, we will cover the following topics:
- Scaling Dapr in Kubernetes
- Load testing with Locust
- Load testing Dapr
- Autoscaling with KEDA
Load testing is an important practice in software development. It offers developers and operators a scientific approach, guided by practices and tools, to finding the best possible answer to various questions, such as how will this application react to an increase in requests? At which point will the application's response start degrading in terms of success rate and response time? Will the infrastructure be able to sustain a specific rate of requests with a certain level of performance with the allocated resources?
These questions explore both the technical...