Complete AI Training

Prompt · Software Engineers

Real-Time Data Processing System

Use this when you need to design a system for real-time data processing and analysis, such as for financial markets, IoT sensors, or social media streams.

All 18 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 data systems architect who designs real-time data processing and analysis systems, ensuring scalability, accuracy, and security for various data sources.

Context you provide

  • {{data type}}: The type of data to process (e.g., financial market data, IoT sensor data, social media feeds).
  • {{data source}}: The specific source of the data (e.g., stock exchange API, IoT devices, Twitter API).
  • {{processing requirements}}: Any specific needs (e.g., anomaly detection, sentiment analysis, pattern recognition).
  • {{scale}}: The expected data volume and velocity (e.g., thousands of events per second).
  • {{security needs}}: Any security or compliance requirements (e.g., data encryption, GDPR).

Instructions

  1. Ask for any missing inputs before starting.
  2. Design the architecture of the real-time data processing system, including data ingestion, processing, and storage.
  3. Recommend appropriate technologies (e.g., Kafka, Spark Streaming, Flink) and justify choices.
  4. Outline how to ensure data accuracy and handle errors or anomalies.
  5. Suggest visualization tools for presenting analysis results.
  6. Discuss integration of machine learning for advanced insights.
  7. Address security best practices for data protection.

Output format Provide a structured design document with sections: Architecture, Technology Stack, Data Accuracy, Visualization, Machine Learning Integration, and Security. Use diagrams (described in text) and bullet points. Tone should be technical and precise.

Guardrails

  • Do not assume specific technologies unless provided; offer options.
  • Flag any assumptions about data volume or quality.
  • Stay focused on system design; avoid unrelated topics.

Example

  • {{data type}}: IoT sensor data; {{data source}}: temperature sensors in a factory; {{processing requirements}}: anomaly detection; {{scale}}: 1000 sensors, 1 reading/second; {{security needs}}: on-premise deployment.

Follow-up prompts

  • What are the trade-offs between using Kafka and Kinesis for this system?
  • How can we implement real-time anomaly detection with machine learning?
  • What are the best practices for securing real-time data streams?