Urgent.News

What's breaking now, across thousands of outlets.

Tech

Daffi: A High-Performance Brokerless RPC Framework for Python

What if you could build distributed Python applications without introducing another message broker — and still get impressive performance? When building distributed Python applications, developers often reach for gRPC, ZeroMQ, RabbitMQ, Redis, or other messaging solutions. Each has its strengths, but sometimes the infrastructure and complexity required to connect Python processes feel…

Daffi is a high-performance brokerless RPC (Remote Procedure Call) framework for Python. It allows developers to build distributed Python applications without the need for an external message broker, while still achieving impressive performance levels. The framework is designed to provide a natural and straightforward API for Python developers, enabling various communication patterns such as request-response, fire-and-forget, broadcasting, and streaming.

Daffi's architecture is brokerless, meaning that processes communicate directly with each other without the need for an intermediary message broker. This approach simplifies the infrastructure and reduces the complexity required to connect Python processes. The framework is built on a native runtime core, which handles performance-critical connection handling operations in a compiled language, thereby reducing the overhead that might otherwise be associated with pure Python networking primitives.

Key features of Daffi include multi-communication patterns, flexible serialization options, multiple runtime models, and support for different transports and encryption. It is compatible with Python 3.10 or newer and can be installed using pip. The framework offers a simple example of setting up an RPC service and a client to call the remote functions, without the need for IDL files, generated Python stubs, or a separate broker process.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

More from Wednesday 18 November →