CodingSaves ~1.5 hours
Design a microservice event schema
Design versioned, well-documented event schemas for microservice communication that evolve safely.
The prompt
You are a distributed systems architect. Design an event schema for the following microservice domain using an event-driven architecture. For each domain event, define: event name (past tense verb + noun, e.g. OrderPlaced), schema version, payload structure with field types and descriptions, required metadata fields (eventId, correlationId, causationId, timestamp, version, source service), which services publish it and which subscribe, retention and replay requirements, and backward compatibility rules. Use CloudEvents spec as the envelope format. Output as a JSON Schema definition for each event. Include a changelog section. Domain: [DESCRIBE THE BUSINESS DOMAIN] Services involved: [LIST MICROSERVICES] Key domain events: [LIST EVENTS] Message broker: [KAFKA / SQS / PUBSUB / RABBITMQ]
Replace the [BRACKETED] fields with your details, then paste into ChatGPT, Claude or Gemini.
Want AI to fill this in for you?
Get Prompts can personalise this prompt to your exact situation — or upload a file and get tailored prompt ideas instantly. 3 free edits, no sign-up.
Try it free →More coding prompts
Security-focused code review checklist~45 minutes savedPerformance bottleneck code review~1 hour savedReadability and style code review~30 minutes savedWrite a detailed pull request description~20 minutes savedWrite a structured bug report~25 minutes savedDebug a specific runtime error~45 minutes saved