

Effortless debugging with those 4 linking classes from RailsEventStore
source link: https://blog.arkency.com/effortless-debugging-with-those-4-linking-classes-from-railseventstore/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Effortless debugging with those 4 linking classes from RailsEventStore Hi, weʼre arkency ?
Some time ago I wrote a short article about simplifying your system debugging by using the linking feature of RailsEventStore. The post is describing custom built linking class.
However, I forgot to mention that RailsEventStore provides a few linking classes out of the box!
Currently, there are 4 linking classes:
RailsEventStore::LinkByMetadata
- links events to stream built on specified metadata key and value,RailsEventStore::LinkByCorrelationId
- links events to stream by event’s correlation id,RailsEventStore::LinkByCausationId
- links events to stream by event’s causation id,RailsEventStore::LinkByEventType
- links events to stream by event’s type It’s easy to use. All you have to do is to add the following line to your subscriptions:
event_store.subscribe_to_all_events(RailsEventStore::LinkByEventType.new)
event_store.subscribe_to_all_events(RailsEventStore::LinkByCorrelationId.new)
event_store.subscribe_to_all_events(RailsEventStore::LinkByCausationId.new)
And from now on, you can go to RailsEventStore Browser and browse your events by an event type, causation, and correlation ids.
You can read more about linking in the docs.
</article
Recommend
-
32
Trying out the Nix development experience The other day, while building a scientific project to which I’m a contributor, I ran into a n...
-
15
It's no secret that Observables are powerful, and RxJS makes them even more powerful and fun with its... Tagged with rxjs, javascript, productivity, webdev.
-
10
How to get an audit log with RailsEventStore today Did you know you can already get an audit log with RailsEventStore for free? One of the benefits of having domai...
-
12
How to setup development work with RailsEventStore and mutantHi, weʼre arkency ?
-
5
The vision behind Rails, DDD and the RailsEventStore ecosystem Arkency became known for our DDD efforts in the Rails community. DDD together with CQRS and Event Sourcing helped us dealing with large Rails apps. At so...
-
10
Sample CQRS / ES application gone wrong In my post
-
9
Building an Event Sourced application using railseventstoreHi, weʼre arkency ?
-
17
Why I want to introduce mutation testing to the railseventstore gem We have recently released the RailsEventStore project. Its goal is to make it eas...
-
6
How to balance the public APIs of an open-source library — practical examples from RailsEventStore On twitter, Krzysztof asked an interesting question: what are our thoughts on carving a well-balanced API for an open...
-
12
Simplify your system debugging by introducing event store linking Hi, weʼre arkency ? Last week I was deal...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK