Groww Real-time Notification System (Frontend)
Groww users rely on timely updates for their investments, including real-time stock price movements, order status changes, and personalized news alerts. This problem focuses on designing the frontend client-side system responsible for efficiently receiving, processing, and displaying these critical real-time notifications to ensure an engaging and informed user experience.
A Groww user with an active portfolio, multiple securities on their watchlist, and pending orders needs to receive immediate, relevant alerts. These could include a specific stock hitting a target price, an order transitioning from 'pending' to 'executed', or breaking news affecting one of their holdings. The system must deliver these updates reliably and without overwhelming the user or degrading the performance of the Groww web application, regardless of the user's current screen.
Constraints
Requirements
1.
Design client-side connection management for real-time updates (e.g., WebSockets), including reconnection logic.
2.
Propose a robust mechanism for parsing, validating, and categorizing diverse incoming notification messages on the client.
3.
Detail client-side filtering, prioritization, and aggregation logic to display only contextually relevant notifications.
4.
Describe UI components and state management for rendering notifications (e.g., toasts, notification center, badge counts) and handling user interactions.
5.
Explain strategies to ensure UI performance and prevent blocking the main thread, even with high notification volume.
6.
Outline error handling and resilience mechanisms for client-side notification processing and connection stability.
7.
Discuss how to manage notification lifecycle states on the client (e.g., read/unread, dismissal, persistence across sessions).
Design Brief
Groww aims to provide its users with a seamless and real-time investment experience. A critical component of this is the in-app notification system, which keeps users informed about vital market movements, portfolio updates, and transaction statuses.
Your task is to design the frontend client-side architecture for this real-time notification system. The system should be capable of:
You should consider typical web application frameworks (e.g., React, Vue, Angular) and relevant browser APIs. Focus on the architectural components, data flow, state management, and interaction patterns within the frontend application.
Loading editor...