docs: add docs folder (architecture, developer, usage); update README; wire probe TTL cache + concurrency notes into docs
This commit is contained in:
17
docs/usage/nats.md
Normal file
17
docs/usage/nats.md
Normal file
@@ -0,0 +1,17 @@
|
||||
# NATS Reference
|
||||
|
||||
## Subjects
|
||||
- Aggregate events: tenant.<tenant>.aggregate.<type>.<id>
|
||||
- Workflow commands/events: shared helpers define exact formats
|
||||
|
||||
## Headers (Producers)
|
||||
- tenant-id: required
|
||||
- Nats-Msg-Id: idempotency key (event_id, command_id, etc.)
|
||||
- x-correlation-id and correlation-id
|
||||
- traceparent and trace-id
|
||||
|
||||
## Consumers
|
||||
- AckPolicy::Explicit
|
||||
- ack_wait: bounded timeout
|
||||
- max_deliver: bounded
|
||||
- max_ack_pending: aligned with concurrency
|
||||
Reference in New Issue
Block a user