P
ProductiviteAdvancedAll AIs

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

Implementing real-time push notifications

Improve this prompt

Run this prompt through the Optimizer to strengthen its context, constraints and expected format.

Improve this prompt with the Optimizer

Comments

  • 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

ProductiviteAdvancedAll AIs

Headlines (Counter-Intuitive Angle)

Differentiation, saturated markets

0111
ProductiviteAdvancedAll AIs

Forecast key evolutions in your sector

Get a complete prospective analysis of your sector with PESTEL analysis, evolution scenarios, and strategic roadmap.

208386
ProductiviteIntermediateAll AIs

Bootstrap and Confidence Intervals

Estimating metric uncertainty

097
ProductiviteAdvancedAll AIs

Incident Communication Protocol

Managing crisis communication in a school setting

0111