Building the Video Publishing Component
Let’s situate the video-publishing Component in the architecture as shown in the figure.
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 ...|