Building the Video Publishing Component

Let’s situate the video-publishing Component in the architecture as shown in the figure.

images/system-architecture-just-services.png

It’s one of the system’s lightning bolts, and it will read messages from and write messages to the Message Store. With this Component we get to the heart of “background jobs” in a microservices world. Remember that in a service-based architecture, communication with Components happens via asynchronous messages—nothing changes when you’re doing a so-called background job. Everything already is a “background” job.

Start with the top-level function:

 function​ build ...

Get Practical Microservices 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.