Project

async-bus

0.0
No release in over 3 years
Transparent Ruby IPC over an asynchronous message bus.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

 Project Readme

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.

Development Status

Usage

Please see the project documentation for more details.

  • Getting Started - This guide explains how to get started with async-bus to build asynchronous message-passing systems with transparent remote procedure calls in Ruby.

  • Controllers - This guide explains how to use controllers in async-bus to 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#run now returns an Async::Task (as it did in earlier releases).

v0.3.0

  • Add support for multi-hop proxying.
  • Fix proxying of throw/catch value.
  • Client#run now takes a block.
  • Server#run delegates to Server#connected!.

v0.2.0

  • Fix handling of temporary objects.

Contributing

We welcome contributions to this project.

  1. Fork it.
  2. Create your feature branch (git checkout -b my-new-feature).
  3. Commit your changes (git commit -am 'Add some feature').
  4. Push to the branch (git push origin my-new-feature).
  5. 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.