Joke Collection Website - Public benefit messages - How to implement new order reminder in java web
How to implement new order reminder in java web
Generally speaking, push will try to maintain a role similar to the message center. The order service notifies the message center through some mechanism, and the message center is uniformly scheduled to generate messages. There are many ways at this stage. Message queue is one of them. If the system It is relatively small, and even the message center and orders are both directly called by the system or can be solved by using the following observer mode. The second stage is conventional development. The request is initiated by the front desk and the background responds. Now it is reversed. The simplest way is to maintain the connection in the background. If ajax polling is not the core function, you can try WebSocket. If the background is SpringMVC, SockJS can be naturally integrated. For most systems, the ideal design is to decouple the order and message center from the message middleware. The message center comes through WebSocket. When pushing messages, the message center is a separate service. Even if it explodes, it will not affect the main system
- Previous article:The Mid-Autumn Festival sent a message of blessing from the leaders.
- Next article:3.8 Women's Day greetings to girlfriends
- Related articles
- Legal fee refund procedure
- Can I cancel the SMS reminder in different places?
- Why can't the mobile phone send short messages?
- Tongren city epidemic prevention and control telephone
- What does a joint provident fund card mean?
- Changsha medical insurance center consultation telephone number
- Wechat login in the middle of the night is still its own device.
- Can Zhongtong be revoked after successful interception?
- What is the difference between Gome Mall and a thief? Embezzling energy-saving subsidies from users!
- The insurance company has made a good start in showing morale.