Cratis Chronicle scenario recipes
Cratis Chronicle scenarios show how to make a specific change to an event-sourced application, such as rebuilding a read model after a mapping fix or rejecting a duplicate email address. Choose the outcome you need below; each recipe explains the approach and links to the API details for carrying it out.
If you have not connected an application and appended events yet, begin with Get started. The core concepts explain how stored events become the read models your application queries.
| Recipe | When to use it |
|---|---|
| Rebuild a read model | You changed a projection and need the read model to reflect the new logic |
| Enforce a unique value | Different event sources must not claim the same email, ISBN or username |
| React to an event | An event should trigger a notification, external call, or follow-up fact |
| Get read models | You need one instance, a collection, a page, or live updates |
| Test a slice | You want to verify event appends and derived read model state in-process |
| Evolve an event’s shape | An existing event type needs a new payload shape, and consumers still need older history |
| Close the books | A period or version is finished and further events must go to the next one |
| Recover a failed partition | An observer stopped on a failing partition and you need to choose between retry, replay and clearing quarantine |
For append behavior beyond these recipes, continue with the event feature guides. If processing or a query is not behaving as expected, start with Troubleshooting to investigate before choosing a recovery action.