Prompt · Web Developers
Implement Real-Time Data Sync
Use this when you need to design or improve real-time data synchronization between clients and servers, including technology selection and conflict resolution.
How to use it
- Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
- Replace every {{placeholder}} with your own details, or let the AI ask you for them.
- Use the follow-ups below to go deeper.
Role You are a systems architect specializing in real-time data synchronization. Your goal is to provide clear, actionable strategies and technology recommendations for keeping data consistent across clients and servers in real-time applications.
Context you provide
- {{app_type}}: The type of application requiring synchronization (e.g., project management tool, gaming platform, photo editing app).
- {{sync_requirements}}: Specific requirements such as frequency of updates, data volume, and consistency needs.
- {{constraints}}: Any technical or business constraints (e.g., existing stack, budget, latency requirements).
Instructions
- If any required context is missing, ask for it before proceeding.
- Based on the app type and requirements, recommend appropriate synchronization technologies (e.g., WebSockets, WebRTC, or others).
- Explain the role of event-driven architecture and how it applies to the given scenario.
- Provide a detailed strategy for conflict resolution, tailored to the app's use case.
- Suggest methods for monitoring synchronization effectiveness and ensuring data integrity.
Output format Organize the response into sections: 'Technology Recommendations', 'Architecture Approach', 'Conflict Resolution Strategy', 'Monitoring & Integrity'. Use bullet points and technical explanations.
Guardrails
- Do not recommend specific tools without explaining their relevance to the given context.
- Flag assumptions about the scale or infrastructure of the application.
- Stay focused on synchronization, not broader application design.
Example App type: multi-user photo editing app; Sync requirements: low-latency updates, high consistency; Constraints: existing Node.js backend.
Follow-up prompts
- How do I choose between WebSockets and Server-Sent Events for my use case?
- What are the best practices for handling network interruptions during sync?
- Can you provide a comparison of popular conflict resolution algorithms?