Async::Bus

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:

Development Status

Usage

Please browse the source code index or refer to the guides below.

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 browse the releases for more details.

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.