Examples & Use Cases
This section focuses on implementation patterns you can ship, not just API snippets.
Included examples
Choosing the right pattern
- Pick live SQL subscriptions when your UI needs row-level reactivity.
- Pick topic consumers when you need queue semantics, retries, and explicit acknowledgments.
- Combine both when you need backend processing plus realtime UI updates.
Production checklist
- Keep auth mode explicit (
basic,jwt, ornone) and rotate tokens. - Persist sequence/checkpoint state for resumable subscription pipelines.
- Separate user-facing subscription streams from worker consumer groups.
- Keep graceful shutdown logic in workers (
stop, await run loop, then disconnect).
Last updated on