Chat
7 steps- The web app subscribes to Events, backfills what it missed, then calls sendMessage.
- One DynamoDB transaction writes the message, message.posted and the turn.requested outbox item, then acks. ack p95 105-120 ms S18
- Streams feed the relay, which puts the turn on SQS FIFO, grouped by turnRouteKey.
- The dispatcher writes TRN# and LEASE# (gen+1), mints STS credentials and a run token, and calls InvokeAgentRuntime. STS mint p95 238 ms S16
- The brain streams from Bedrock, checkpoints, and extends its lease as it goes. model first token p50 902 ms (Sonnet 4.6) S2
- Text is coalesced every 100 ms and published to Events. publish to receive p95 103-126 ms S6
- A closing transaction records the reply and usage; the bus fans out to ledger, audit, memory-ingest and notify. commit to bus p95 510 ms S17
No end-to-end first-token figure is recorded on dev.