Optimization is an important part of the microservice development process. With optimization, you can increase the performance of a microservice and reduce costs for infrastructure and hardware. In this chapter, we will shed light on benchmarking, along with some optimization techniques, such as caching, reusing shared data with structs without taking ownership, and how you can use a compiler's options to optimize a microservice. This chapter will help you to improve the performance of your microservices using optimization techniques.
In this chapter, we will cover the following topics:
- Performance-measuring tools
- Techniques of optimizations