Kafka Events

8 event topics across 6 categories published to Amazon MSK Serverless.

Event Format: CloudEvents 1.0

All events follow the CloudEvents 1.0 specification. Events are partitioned by tenant_id and published to Amazon MSK Serverless. llm-orch-svc is a producer only — it publishes events but does not consume from other services.

Brokers

EnvironmentBrokerAuth
Stagingboot-gpm4u49z.c2.kafka-serverless.us-east-1.amazonaws.com:9098SASL/OAUTHBEARER (IAM)
Productionb-1.eventzr-msk-prod.ap-south-1.amazonaws.com:9098SASL/OAUTHBEARER (IAM)

Event Envelope

CloudEvents 1.0 envelopejson
{
  "specversion": "1.0",
  "type": "eventzr.llm.usage.v1",
  "source": "llm-orch-svc",
  "id": "evt-550e8400-e29b-41d4-a716-446655440000",
  "time": "2026-02-27T12:00:00.000Z",
  "datacontenttype": "application/json",
  "subject": "tenant-uuid",
  "data": {
    "tenantId": "tenant-uuid",
    "userId": "user-uuid",
    "provider": "aws-bedrock",
    "model": "anthropic.claude-3-sonnet-20240229-v1:0",
    "useCase": "event-creation",
    "inputTokens": 150,
    "outputTokens": 350,
    "totalTokens": 500,
    "latencyMs": 1250,
    "costUsd": 0.0025,
    "cached": false
  }
}

Event Topics (8)

Usage & Telemetry2

TopicDescription
eventzr.llm.usage.v1Usage telemetry after successful inference (tokens, cost, latency)
eventzr.llm.semantic-cache.hit.v1Semantic cache hit — cached response served instead of provider call

Quota & Budget2

TopicDescription
eventzr.llm.quota.low.v1Alert when credit balance drops below 20% threshold
eventzr.llm.budget.exceeded.v1Budget ceiling breach — request rejected or flagged

Provider Health1

TopicDescription
eventzr.llm.provider.outage.v1Provider circuit breaker state changed (open/half-open/closed)

Inference Lifecycle1

TopicDescription
eventzr.llm.inference.failed.v1Inference failure after all retries exhausted across providers

Embeddings1

TopicDescription
eventzr.llm.embeddings.generated.v1Embeddings generation completed (single or batch)

Knowledge Graph1

TopicDescription
eventzr.llm.kg.synced.v1Knowledge graph sync completed — AI decisions recorded to Neptune