4 Data management for microservices

This chapter covers

  • Using Docker Compose to build and run your microservices application in development
  • Adding file storage to your application
  • Adding a database to your application

When building any application, typically, we’ll need to deal with data or files and sometimes both. Microservices are no different. We need a database to store dynamic data that’s generated and updated by the application, and we need a place to store assets that are served by the application or uploaded to it.

In this chapter, we add both file storage and a database to our FlixTube example application. First, we’ll add file storage so FlixTube has a location to store its videos. We want to have distinct areas of responsibility ...

Get Bootstrapping Microservices with Docker, Kubernetes, and Terraform 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.