Draft specification 0.23.0 · implementation in progress
Store your events in the Git repository that holds your code
The Git Event Store specification (GES) shows how. Clone the repository and you have the events too. There is no server to run.
Read the specificationGive feedback
CrumblES, the reference implementation, is being built. The specification stays the authority on what conforms.
$ git log --oneline refs/ges/orders/streams/order-42 7f3a91c order-42: OrderShipped c41d7a6 order-42: OrderPlaced
git log shows them.Your record and your code drift apart
Your events live in a database or an event-store server, outside your repository. Soon nobody can say which commit produced which event.
Keep both in one repository
GES maps events onto things Git already has.
What you get
One clone is the whole store
Every clone is also a full backup.
Plain text you can read
git log and grep work on the history.
State you can replay
Replay the events and check the result.
Writes that check
A write fails if something changed since you read.
Two people write at once? The second one looks again
Every write carries a check. If something changed since you read, the write is refused.
Saving has three steps, not one
A database does all three at COMMIT. GES keeps them apart, so you can write offline.
- 1
Visible
Others on this clone can see it.
- 2
Durable
It survives a power cut.
- 3
Authoritative
The main copy accepted it.
What GES won't do
The specification says so in section 1, before its goals.
No quorum writes
GES trades high availability for writing offline.
One writer per stream
Two writes at once: the first wins. Many writers on one stream need a dedicated event store.
No query language
You get projections and a native scan.
Three steps
- 1
Read the core specification
Start with the scope, the terms and the conformance clauses.
- 2
Check the limits
One writer per stream and no quorum writes must be fine for you.
- 3
Build it or question it
Implement the specification, or tell us where it is unclear.
You can test a store against it
The specification defines when a store conforms. These are the numbers.
- 23
- conformance clauses
- 31
- acceptance tests
- 150
- requirements in the Easy Approach to Requirements Syntax (EARS)
- 13
- behavioural modules in the Allium language
GES isn't the standard for event sourcing in Git yet. Independent implementations would earn it that title.
License and contributions
The license isn't chosen yet, on purpose. Until it is, all rights stay with the author. The choice comes before the specification is finalized. Contributions are welcome: open an issue or a pull request in the repository.
Start with the specification
Prefer the reasoning first? Read thereview of gaps and edge cases or thedecision to put the Dynamic Consistency Boundary in the core.