Async::Bus
When building distributed systems or multi-process applications, you need a way for processes to communicate and invoke methods on objects in other processes. async-bus provides a lightweight message-passing system for inter-process communication (IPC) using Unix domain sockets, enabling transparent remote procedure calls (RPC) where remote objects feel like local objects.
Use async-bus when you need:
- Inter-process communication: Connect multiple Ruby processes running on the same machine.
- Transparent RPC: Call methods on remote objects as if they were local.
- Type-safe serialization: Automatically serialize and deserialize Ruby objects using MessagePack.
- Asynchronous operations: Non-blocking message passing built on the Async framework.
Usage
Please see the project documentation for more details.
-
Getting Started - This guide explains how to get started with
async-busto build asynchronous message-passing systems with transparent remote procedure calls in Ruby. -
Controllers - This guide explains how to use controllers in
async-busto build explicit remote interfaces with pass-by-reference semantics, enabling bidirectional communication and shared state across connections.
Releases
Please see the project releases for all releases.
v0.3.1
-
Client#runnow returns anAsync::Task(as it did in earlier releases).
v0.3.0
- Add support for multi-hop proxying.
- Fix proxying of throw/catch value.
-
Client#runnow takes a block. -
Server#rundelegates toServer#connected!.
v0.2.0
- Fix handling of temporary objects.
Contributing
We welcome contributions to this project.
- Fork it.
- Create your feature branch (
git checkout -b my-new-feature). - Commit your changes (
git commit -am 'Add some feature'). - Push to the branch (
git push origin my-new-feature). - Create new Pull Request.
Developer Certificate of Origin
In order to protect users of this project, we require all contributors to comply with the Developer Certificate of Origin. This ensures that all contributions are properly licensed and attributed.
Community Guidelines
This project is best served by a collaborative and respectful environment. Treat each other professionally, respect differing viewpoints, and engage constructively. Harassment, discrimination, or harmful behavior is not tolerated. Communicate clearly, listen actively, and support one another. If any issues arise, please inform the project maintainers.