Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
inxilpro committed Nov 5, 2023
1 parent e0944f9 commit 35b1782
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 6 deletions.
6 changes: 0 additions & 6 deletions docs/__nav.md

This file was deleted.

29 changes: 29 additions & 0 deletions docs/navigation.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
[
{
"section": "Getting Started",
"items": [
{
"title": "Quickstart",
"uri": "quickstart",
"file": "quickstart.md"
},
{
"title": "What you absolutely need to know",
"uri": "need-to-know",
"file": "need-to-know.md"
}
]
},
{
"section": "Event Sourcing Crash Course",
"items": []
},
{
"section": "Event Lifecycle",
"items": []
},
{
"section": "Migrating from other packages",
"items": []
}
]
12 changes: 12 additions & 0 deletions docs/need-to-know.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Verbs is generally very simple to use. But there are a few things that you really need to know to
get started using event sourcing in Verbs.

## The "Rules"

### Rule 1: ID === Global Identity

In Verbs, IDs are **global identity**. This means that whatever IDs you use, they should be completely
unique regardless of what database you happen to be using. The easiest way to do that is to use
**Snowflakes**, which are unique IDs that also fit into a traditional database's "big int" primary key.

### Rule 2: Keep your events separate from your models

0 comments on commit 35b1782

Please sign in to comment.