5 Persisting and managing data in the cloud

This chapter covers

  • Understanding databases in a cloud native system
  • Implementing data persistence with Spring Data JDBC
  • Testing data persistence with Spring Boot and Testcontainers
  • Managing databases in production with Flyway

In chapter 1, I distinguished between application services and data services in a cloud native system. So far, we have worked with application services, which should be stateless to play well in a cloud environment. However, most applications are useless if they don’t store any state or data somewhere. For example, the Catalog Service application we built in chapter 3 has no persistent storage mechanism, so you can’t really use it to manage a catalog of books. Once you shut ...

Get Cloud Native Spring in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.