liveBook · Manning

Cloud storage

As explained in Bootstrapping Microservices, Second Edition: With Docker, Kubernetes, GitHub Actions, and Terraform

Cloud storage is remotely managed storage accessed over a network and provided as an infrastructure service.

Cloud storage provides an externally managed place to store application files such as videos. A dedicated storage microservice can expose that capability without coupling the rest of the application to a specific provider. section 4.4

Use cloud storage when the application needs:

  • A simple, managed file-storage solution that works during development and costs less to operate than maintaining storage inside the application cluster. section 4.4.5
  • Production clusters that remain stateless, allowing them to be destroyed and rebuilt without risking stored data. section 4.4.5
  • Provider flexibility: an abstraction can hide Azure Storage, AWS S3, or Google Cloud Storage behind the same application-facing service. section 4.4 section 4.4.6

Video storage behind a microservice

A video-streaming microservice forwards storage work to a video-storage microservice. That intermediary retrieves videos from external cloud storage, while the streaming service remains insulated from provider-specific implementation details. section 4.4.6 section 4.5.5

Figure 4.5 We add a second microservice and external cloud storage to our application.

Trace the application layout: the video-storage microservice sits between the video-streaming microservice and external cloud storage. section 4.4

How Bootstrapping Microservices, Second Edition: With Docker, Kubernetes, GitHub Actions, and Terraform covers it

How deep it goes
Explains provider selection, service abstraction, stateless deployment, and replacement strategy, but defers customer video uploads.
Examples
Uses Azure Storage for application videos and compares it with AWS S3, Google Cloud Storage, and Kubernetes volumes.
What it assumes
Assumes Docker Compose and a microservices application, while deferring Kubernetes knowledge and customer upload implementation.
What you can do after
Build a file-storage microservice that can change providers with minimal disruption to the surrounding application.
How it connects
Connects cloud storage with microservices, Docker Compose, Kubernetes volumes, cluster storage, databases, and blue-green deployment.

Also explained in

Compare how 2 books explain cloud storage →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Bootstrapping Microservices, Second Edition: With Docker, Kubernetes, GitHub Actions, and Terraform. The section links point to the parts of the book it draws on.