The best solution architecture for user notification in Java / Grails environment?

I'm using Grails to build a community website, and I want to implement it with stackoverflow Com exactly the same user notification For example, a user will be notified of a new event ("you have a new comment", "your favorite has changed...") by email or email when he returns to the website

I think this is a common problem. I want to hear your simple solution to implement the back end in the field of Grails For example, is Java message service the recommended solution?

thank you.

Solution

With all due respect, Java message service basically performs asynchronous or queued operations

You only need a user messaging system and notifications I don't know any plug-ins that can be used out of the box

I suggest you use the markasread flag to implement your own message domain pogo bound to the user model

If you want to integrate it with E - mail, you can use JMS to separate user navigation and E - mail / sending This is especially useful if you have a high traffic website / webapp

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>