flâneur — a map of the web's best reading

RabbitMQ tutorial - Remote procedure call (RPC) — RabbitMQ

rabbitmq.com · 1,884 words · saved by 1 readers

This tutorial assumes RabbitMQ is installed and running on localhost on the standard port (5672). In case you use a different host, port or credentials, connections settings would require adjusting. If you're having trouble going through this tutorial you can contact us through the mailing list or RabbitMQ community Slack. As with other Python tutorials, we will use the Pika RabbitMQ client version 1.0.0. In the second tutorial we learned how to use Work Queues to distribute time-consuming tasks among multiple workers. But what if we need to run a function on a remote computer and wait for the result? Well, that's a different story. This pattern is commonly known as Remote Procedure Call or RPC. In this tutorial we're going to use RabbitMQ to build an RPC system: a client and a scalable RPC server. As we don't have any time-consuming tasks that are worth distributing, we're going to create a dummy RPC service that returns Fibonacci numbers. To illustrate how an RPC service could be use

On this page Remote procedure call (RPC) ​ (using the Pika Python client) ​ info Prerequisites ​ This tutorial assumes RabbitMQ is installed and running on localhost on the standard port (5672). In case you use a different host, port or credentials, connections settings would require adjusting. Where to get help ​ If you're having trouble going through this tutorial you can contact us through GitHub Discussions or RabbitMQ community Discord . Prerequisites ​ As with other Python tutorials, we will use the Pika RabbitMQ client version 1.0.0 . What This Tutorial Focuses On ​ In the second tutori

Explore this link on the map →

related reading