Skip to content
No description, website, or topics provided.
Shell Ruby
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib/eventide Project skeleton Jan 6, 2020
Gemfile Project skeleton Jan 6, 2020
MIT-License.txt Placeholder readme Jan 6, 2020 Timeline is corrected Jan 6, 2020
init.rb Project skeleton Jan 6, 2020
load_path.rb Project skeleton Jan 6, 2020 Project skeleton Jan 6, 2020 Project skeleton Jan 6, 2020

Eventide on Rails

Eventide on Rails brings pub/sub, event sourcing, evented systems, and messaging to Ruby on Rails apps. Built on Message DB and the Ruby Award winning Eventide Project, Eventide on Rails blends the best of web app development and evented systems and autonomous services into a single stack.

Using Eventide on Rails, developers can:

  • Record business events from within Rails controllers, models, background jobs, mailers, and service objects
  • Record an audit trail of changes to ActiveRecord models as an event stream
  • Apply data changes made in external services to Rails application data
  • Bring event sourcing to Rails apps
  • Project a stream of events onto an ActiveRecord model
  • Send messages to external pub/sub services via Message DB
  • Receive messages from external services via Message DB

Eventide on Rails creates a harmonious transition between autonomous evented services and web applications empowering developers to read and write to and from Message DB, to project event-sourced entities from event streams, and to interact with external services via commands and events using the ActiveRecord Postgres connection. The implementation will allow the co-hosting of the Message DB message store database with a Postgres application database in Rails, and integrates with ActiveRecord migrations to manage the message store data,

CRUD operations in ActiveRecord will be executed in the same database transaction as the recording of events via Eventide's writer, making the recording of events atomic with Rails application database operations.

user_created_event =
ActiveRecord::Base.transaction do
  user = User.create(params)
  stream_name = "user-#{}"
  eventide_writer.write(user_created_event, stream_name)

All foundational Eventide features will be extended to Rails apps, including readers, writers, projections, and even entity stores and handlers.


In Development

Eventide on Rails is currently in development and will be released after the first quarter of 2020.


The eventide-rails library is released under the MIT License.

You can’t perform that action at this time.