bruth / rita

Toolkit for event-centric and reactive patterns leveraging https://nats.io.
Apache License 2.0
86 stars 6 forks source link

Add standard prefix to subjects managed by Rita #5

Open bruth opened 2 years ago

bruth commented 2 years ago

Similar to how the KV and Object Store APIs have prefixes, this is desirable to prevent subject clashes with application managed subjects.

For example, an event store r.EventStore("orders").Create(nil) would create a stream bound to rita.events.sourced.orders.>. This seemingly long prefix is due to other future plans to leverage streams, such as rita.events.received and rita.events.published with would be streams to used for receiving external events (via some integration or other Rita context) and publishing events to be consumed by other boundaries, respectively.