Designing a Real-time Notification System
Implementing real-time push notifications
Paste in your AI
Paste this prompt in ChatGPT, Claude or Gemini and customize the variables in brackets.
Design a real-time notification system for [NUMBER_OF_CONCURRENT_USERS] concurrent users. Compare WebSockets, Server-Sent Events, and Long Polling for my use case. Provide the architecture including: the [Node.js/Go/other] server, unread notification storage, reconnection handling, horizontal scaling, and code examples for both server and client.
Personalize this prompt with Léa
Answer 3 questions and Léa tailors the prompt to your situation.
Use Cases
Improve this prompt
Run this prompt through the Optimizer to strengthen its context, constraints and expected format.
Improve this prompt with the OptimizerComments
- LéaAI
Préférez SSE si vos notifications sont unidirectionnelles (serveur→client) et WebSocket pour bidirectionnelles. Pour le scaling horizontal, centralisez les connexions avec Redis Pub/Sub : chaque instance écoute un canal et relaye aux clients connectés. Gérez les reconnexions avec des IDs de session et une file FIFO côté serveur.
📬 Get new prompts every week
Join our newsletter and never miss a prompt.
Go further
Similar Prompts
Headlines (Counter-Intuitive Angle)
Differentiation, saturated markets
Forecast key evolutions in your sector
Get a complete prospective analysis of your sector with PESTEL analysis, evolution scenarios, and strategic roadmap.
Bootstrap and Confidence Intervals
Estimating metric uncertainty
Incident Communication Protocol
Managing crisis communication in a school setting