• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 47
  • Last Modified:

Admin Portal Notifications.

I am building a user admin portal. Part of that portal is a notifications section. What would be the best way to generate these notifications? I suspect some kind of service that runs periodically to create the notification and then store them away in a table?

Has anyone else done this kind of thing?
0
John Kininjjew
Asked:
John Kininjjew
1 Solution
 
Federico RuggieroSoftware EngineerCommented:
It depends on the nature of the notifications that you need (if the notification are needed in response to precise actions or are periodically sent to all the users).

In the 1st scenario, when an event occur you will generate 1 notification for each user on your system, which can be one row in a "notification" table for each userID on your system.
This table can have columns like  
USERID;ISREAD;DATETIME;DESCRIPTION

Open in new window

If you have hundreds of users and this system is slow you can generate these rows with a queue system (so that when something which can be notified occurs, you will add this to the queue system so that, in turn, it will notify all your users) .
Then when you load the user page you can lookup all the notification for your user id which are not marked as "read".

In the 2nd scenario, yes, there can be a service involved that periodically send notifications to all users with a mechanism similar to the other one, with a queue system.
0
 
Shaun VermaakTechnical Specialist/DeveloperCommented:
I suspect some kind of service that runs periodically to create the notification and then store them away in a table?
Yes, create a Windows Service with something like Topshelf that does that part
http://topshelf-project.com/
https://www.c-sharpcorner.com/article/creating-windows-service-in-net-with-topshelf/
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now