How Nameko uses AMQP
AMQP stands for Advanced Message Queueing Protocol, which is used by Nameko as the transport for our RPCs. When our Nameko services make RPCs to each other, the requests are placed on the messaging queue, which are then consumed by the destination service. Nameko services use workers to consume and carry out requests; when an RPC is made, the target service will spawn a new worker to carry out the task. Once it's complete, it dies. Since there can be multiple workers executing tasks simultaneously, Nameko can scale up to the amount of workers it has available. If all workers are exhausted, then messages will stay on the queue until a free worker is available.
You can also scale Nameko horizontally by increasing the amount ...
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