Recipes
Ark Data Layer recipes
Focused patterns for source resolution, data commits, concurrency, observation, and shutdown.
v1.2.1Intermediate
Recipes answer one bounded question. Use the tutorials when you need a complete architecture from Domain contract to shutdown.
| Question | Recipe |
|---|---|
| How do I require one source without silently selecting a duplicate? | Resolve sources without ambiguity |
| How do I replace or synchronously transform the current domain snapshot? | Commit and transform Repository data |
| What happens when two async refreshes finish out of order? | Coordinate overlapping refreshes |
| Which object closes subscriptions, Repository state, sources, and clients? | Close the data graph safely |
Each recipe starts at a specific decision point. None of them changes the central rule: technical data is mapped before commit, and source ownership remains with the scope that created the source.