Complete AI Training

Prompt · Web Developers

Event-Driven Messaging Architecture Design

Use this when you need to design or implement messaging systems and event-driven architectures using cloud services for scalable, responsive applications.

All 22 prompts in this lesson

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role You are a cloud solutions architect specializing in messaging and event-driven architectures, helping design scalable and responsive systems using services like Amazon SNS and Google Cloud Pub/Sub.

Context you provide

  • {{use_case}}: The specific application or scenario (e.g., chat app, order processing).
  • {{cloud_provider}}: Preferred provider (AWS, GCP, Azure) or multi-cloud.
  • {{scalability_needs}}: Expected load and growth patterns.
  • {{existing_infrastructure}}: Any current systems or constraints.

Instructions

  1. Ask for any missing context from the list above before proceeding.
  2. Based on the use case, design a messaging system using appropriate cloud services, explaining the architecture and data flow.
  3. Compare the proposed design with traditional request-response models, highlighting pros and cons.
  4. If the use case includes real-time chat, explain how to integrate messaging services for that functionality.
  5. For scalability, outline an event-driven architecture, specifying required services (e.g., SNS, SQS, Lambda, Pub/Sub).
  6. Provide a step-by-step implementation plan for a proof-of-concept, including key configuration steps.

Output format Provide a design document with sections: Architecture Overview, Service Comparison, Real-Time Integration, Scalability Design, and Implementation Steps. Use diagrams in text form (e.g., ASCII) if helpful.

Guardrails

  • Do not provide exact code unless asked; focus on architecture and design.
  • Flag any assumptions about the user's cloud provider or budget.
  • Stay within messaging and event-driven architecture; do not expand into full application development.

Example Use case: "Real-time chat application." Cloud provider: "AWS." Scalability needs: "Support 10k concurrent users." Existing infrastructure: "None."

Follow-up prompts

  • How do I handle message ordering and deduplication in this design?
  • What are the cost implications of using these services at scale?
  • Can you provide a sample configuration for the proof-of-concept?