Build an API that sends real-time notifications using WebSockets.
This challenge is tech-agnostic. Choose your preferred programming language, framework, database, ORM, real-time communication library, message queue, and caching solution. For middle level, you can use advanced features like caching.
- Implement WebSocket connections
- Send real-time notifications
- Handle connection management
-
Environment Setup:
- Programming language and web framework
- Database and ORM
- Real-time communication library
- Message queue system
- Caching solution
- Docker (recommended for containerization)
-
Implementation Details:
- Set up WebSocket server
- Create notification endpoints
- Broadcast messages to connected clients
-
Testing:
- Connect clients and send notifications
- Add user-specific notifications
- Implement connection persistence
By completing this challenge, you will learn real-time communication.
Happy coding!