In my app, I’ve developed separate pages for admins and users. Admins can send messages to users, such as: “There is a short update for you. See the details below:” Users can view these messages in a dedicated messages tab.
Currently, messages are stored in MongoDB and retrieved for users. However, when an admin sends multiple messages, I delete the previous one and replace it with the latest update. This approach feels inefficient and poorly structured for managing communications.
Is there a better way to design this messaging system? Ideally, I’d like to create a more structured communication channel between admins and users. Any suggestions?
Sometime when my app takes too much time to load things from db. I want the app to run smoothly when messages are in and out.
For exmaple, For React.j, we have React Chat SDK Messaging Components that allow users to send and receive messages in a chat-like experience. Do we have kind of component here?
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.