Need to do a station letter function, but mass do not know how to do, ask for help or who have examples can give reference?
Reply to discussion (solution)
Two methods
NO1. Send a message to all users ' really '.
NO2. Gets the program's TODO task when the user logs on.
Two methods
NO1. Send a message to all users ' really '.
NO2. Gets the program's TODO task when the user logs on.
The first method is not very feasible, if more people, the database can't stand it. Can the second method be described in detail?
The simplest way to do this is for everyone to see a list of notifications that the administrator sends.
Build a message table. Each user is logged in to the message table to find out if they have given themselves. Change the flag bit after reading.
The concurrency of publishing messages is not too large, the volume of data can be divided by time table, only concerned about the recent
You can also use Redis
Lazy words to re-establish a "notification" database, everyone login after loading can