rails_event_store
rails_event_store copied to clipboard
A Ruby implementation of an Event Store based on Active Record
It was never possible to use `rails_event_store` from git source and have a functioning browser: #583. ```ruby gem 'rails_event_store', github: 'RailsEventStore/rails_event_store', branch: 'store-ci-assets' ``` We only version sources. Assets are...
Depending on the configuration of the ActiveJob backend and the serializer used - i.e. the `NULL` serializer -, it is possible that the argument to `perform` is already a full...
Trying to use the async handler in my ActiveJob class like so: ``` class MyEventProcessingJob < ApplicationJob prepend RailsEventStore::CorrelatedHandler prepend RailsEventStore::AsyncHandler.with(serializer: RubyEventStore::NULL) def perform(the_event) end end ``` This works flawlessly...
* one of most popular docs pages * does not depict current recommendations for AggregateRoot best practices * needs some background on why * link to arkency/aggregates and other newer...
Recently we added support for cleaning up outbox table in batches, using LIMIT sql option. It is to avoid long operations on big outbox table. We use myslq in one...
SAVEPOINTs are costly: https://www.cybertec-postgresql.com/en/subtransactions-and-performance-in-postgresql/ They were added in fc2ba5693 to stop the events with the wrong version being committed but if no version is specified then they are not needed....
For now only a process which tracks up to which identifier, all transactions has ended.
It is possible to use Rack middleware that enhances recorded events metadata outside of Rails. Yet we ship it in the Rails version of the gem (`rails_event_store`): https://github.com/RailsEventStore/rails_event_store/blob/409339adbe094dabd439e15e46daaf145be7f647/rails_event_store/lib/rails_event_store/middleware.rb A wider...
Similarly to what RSpec counterpart does: ```ruby require "test_helper" Dir[Rails.root.join("_BC_HERE_/test/*_test.rb")].each do |test_file| require_relative test_file end ``` This helps tools like `mutant` or `rails t` to discover those tests (without knowing...