liveBook · Manning

Video identifier

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

A video identifier is a stable identifier used to refer to a video independently of its physical storage location.

A video identifier is a database ID that lets services refer to a video without depending on its storage path. The streaming service looks up the ID, retrieves the current storage location, and forwards the request to video storage. section 4.5.2

Using an identifier instead of a physical path provides practical benefits:

  • Move videos or restructure the storage filesystem without changing references held by other databases and records. section 4.5.2
  • Give metadata, recommendation, and view databases a generic reference to each video. section 4.5.2
  • Keep potentially long internal storage locations out of ordinary video references. section 4.5.2

Database record

A MongoDB record can map an object ID such as 5d9e690ad76fe06a3d7ae416 to videoPath SampleVideo_1280x720_1mb.mp4. The service receives the ID, performs the lookup, and uses the returned path only when contacting storage. section 4.5.2

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

How deep it goes
Explains path decoupling and demonstrates the MongoDB lookup, but does not specify identifier-generation or uniqueness rules.
Examples
Uses a MongoDB video record mapping an object ID to SampleVideo_1280x720_1mb.mp4.
What it assumes
Assumes familiarity with microservices and databases while demonstrating the required MongoDB connection and collection query.
What you can do after
Operate a database-backed video service that resolves identifiers before retrieving content from storage.
How it connects
Connects video identifiers with databases, microservices, metadata, recommendations, views, and storage locations.

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.