Part 2 Worker
The second part of this book focuses on the Cube worker component. As its name suggests, the worker is responsible for performing the work in an orchestration system. The subject of that work is the task. If you’ve used Docker, then you’re familiar with starting containers using the Docker command-line interface. In this model, you are the worker. In Cube, we replace you with a program that conceptually performs operations similar to you starting and stopping a Docker container.
In chapter 4, we will flesh out the implementation of the Worker object. The implementation focuses on starting and stopping a task.
In chapter 5, we will build an API for the Worker. The Manager object, which will be the subject of part 3, will be the user ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access