fx-event-bus

Crates.iofx-event-bus
lib.rsfx-event-bus
version0.1.10
created_at2025-09-30 18:27:58.01975+00
updated_at2025-12-01 06:06:48.887046+00
descriptionAn event bus for monoliths, built with Postgres and sqlx
homepage
repositoryhttps://github.com/jakob-lilliemarck/fx-event-bus
max_upload_size
id1861482
size164,585
Jakob Lilliemarck (jakob-lilliemarck)

documentation

README

fx-event-bus

A simple event bus for monoliths where every node can handle any event. Designed to support loose coupling between independent parts of an application domain.

What it is

  • Bus-based architecture for monolithic apps.
  • Uses Postgres FOR UPDATE SKIP LOCKED for concurrent polling and exactly-once delivery.
  • Provides event handlers with typed, deserialized input.
  • Fully safe and statically type-checked: no unsafe code, no interior mutability.
  • Handles ~2k events/sec on a single DB connection; scale horizontally by adding more servers.

What it is not

  • Not a casual pub/sub library. Nodes must fully handle an event once acknowledged, or risk losing it.
  • Not designed for microservices where nodes handle events differently.
Commit count: 0

cargo fmt