ecommerce icon indicating copy to clipboard operation
ecommerce copied to clipboard

Pass cqrs object everywhere consistently

Open andrzejkrzywda opened this issue 3 years ago • 1 comments

Now in some places it's event store. (another debate how to rename this object)

andrzejkrzywda avatar Mar 10 '22 08:03 andrzejkrzywda

RBS helps tracking down such unintented usage.

In RES we've used it to ensure common interface for repositories. We had a signature file describing accepted types and there was a verification step when running units:

env RBS_TEST_LOGLEVEL=error rbs test RBS_TEST_RAISE=true --target RubyEventStore::InMemoryRepository rspec

mostlyobvious avatar Mar 10 '22 09:03 mostlyobvious

as for the "renaming" debate - new candidates: Bus or MessageBus

andrzejkrzywda avatar Sep 27 '22 16:09 andrzejkrzywda

I think I'm ready to remove this whole cqrs/bus object at all, back where it was and pass both event_store and command_bus where needed. The process methods and other DSL could be then extracted to classes like Infra::Process.new(event_store, command_bus.

andrzejkrzywda avatar Sep 30 '22 11:09 andrzejkrzywda

The feature was removed.

andrzejkrzywda avatar Oct 11 '22 14:10 andrzejkrzywda