Forums Register Login

Best practice to send notification

+Pie Number of slices to send: Send
I'm new to sending notification from spring application.

Actually I've made a task management application. In that When a task is assigned to a particular person it should be notifed to that recipient. for that I've  configured it as,

After submitting the task details will be persisted in database also notifications details are being persisted in  a separate table. then

I'm querying the database which isn't marked as sent and sending them then I make them as sent. Is it best practice?

How actually a notification is sent. I more detail when do I need to send the notification? before inserting into database or after inserting into database? Please clarify this.

Also attach UML/Flow design for sending notification if you can.
+Pie Number of slices to send: Send
What, exactly, do you mean by "notification" in this context? Are you talking about a web app where a user will see a notice once they log in? Or do you mean sending a notification to a mobile device?

before inserting into database or after inserting into database?


Whatever makes the most sense, but I don't think this is an important point. It sounds (not sure, as you didn't provide much detail) as if both should part of the same transaction - both should happen, or neither, so that your data is consistent. But, again, it's important what you really mean by "notification" - for a web app, the DB entry likely *is* the notification.
Their achilles heel is the noogie! Give them noogies tiny ad!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 582 times.
Similar Threads
Email Alerts
Spring Web Flow 2 Web Development
displaying output of multiple sshexec
What it takes to be an architect?
database update techniques?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 14:39:44.