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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.