Throttling user messages on screen
We've developed a customization that uses the lightbox (yellow message banner) that executes on the user's home tab to relay actionable information. Each time the page is refreshed, the message appears but would not like to throttle that message to be periodic. Some of our thoughts were:
- Accessing the user's session creation and spacing out execution based on that time.
- Accessing the user's login time and doing same thing.
- Creating a singleton which keeps track of the user's last execution time limiting based on some timer.
For the last option, how would that work across multiple method servers? Would each MS having its own JVM, have its own copy of the singleton? Not a huge issue but is there a system wide solution?
Example solution would be to display a message no more than once every two hours.
Open to any other solutions.

