Summary
In this chapter, we provided a brief overview of database storage solutions for storing microservice data. Then, we illustrated how to write the logic for writing and reading our service data into MySQL, a popular open source relational database that is widely used across the software development industry. Finally, we showed how to use a data caching technique for reducing the load on a database for services that perform lots of database operations. This knowledge should help you to establish a foundation for storing and retrieving various types of data in your microservices.
In the next chapter, we are going to illustrate how to build and run our service instances using a popular platform, Kubernetes, which allows us to coordinate various service-related operations, such as code updates, automated service instance count increases, and many more.