Skip to content

Commit

Permalink
formating...
Browse files Browse the repository at this point in the history
  • Loading branch information
idugalic committed Oct 6, 2024
1 parent 31a3fee commit 1e68c8c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ stream. Here's how you can do it:
1. Incrementing Stream Version:

- Each time an event is appended to a stream, the version of that stream is
incremented. This version represents `the last event` that have been
appended to the stream.
incremented. This version represents `the last event` that have been appended
to the stream.
- When appending a new event to a stream, you include the current version of the
stream in the event's metadata.

Expand All @@ -138,11 +138,11 @@ stream. Here's how you can do it:
### Modeling event streaming

When appending events to the event store, in addition to appending them to their
respective streams (`eventsByStreamId.<streamId>.<eventId>`), you can also append them to
the `global stream`. The Key schema for the global stream might look like this:
`events.<eventId>`. To read all events ordered by event ID, you simply query the
global stream. As all events are appended to this stream, you get a
comprehensive view of all events in the system.
respective streams (`eventsByStreamId.<streamId>.<eventId>`), you can also
append them to the `global stream`. The Key schema for the global stream might
look like this: `events.<eventId>`. To read all events ordered by event ID, you
simply query the global stream. As all events are appended to this stream, you
get a comprehensive view of all events in the system.

1. Advantages:

Expand Down

0 comments on commit 1e68c8c

Please sign in to comment.