Jaina Cookbook — Real-world recipes
Real production patterns, real failure modes, runnable sample code. Every post follows the same template:
- The Story — a real business problem (Black Friday peak, retry storm, partial failure)
- Naive approach — what most teams write, and why it breaks
- Jaina solution — code from
samples/JainaShop/JainaShop.AppHost, copy-pasteable - Happy path — how it looks when everything works
- Error scenarios — at minimum 4 failure modes with how Jaina handles each
- What you'd see in production — logs / OTEL traces / metrics
- Trade-offs & gotchas — the honest fine print
- Try it yourself —
dotnet run+ curl scripts
Index
Conventions
- Error scenarios are mandatory. Every post lists at least 4 failure modes.
- Code in posts must come from
samples/JainaShop/JainaShop.AppHostor asamples/blog/<slug>/branch — readers should be able togit checkoutand run. - Screenshots of OTEL traces / Grafana panels should be from real runs, not fabricated.
- Each post links its source sample and tests so reviewers can verify claims.
See _template.md for the post skeleton.