Home  >  Article  >  Backend Development  >  javascript - How does the group-building system written in Java monitor the time for groups that are not full? Is it a scheduled task? Is there any other way?

javascript - How does the group-building system written in Java monitor the time for groups that are not full? Is it a scheduled task? Is there any other way?

WBOY
WBOYOriginal
2016-10-10 11:56:021679browse

How does the group sharing system monitor the time for the group that is not full?

Reply content:

How does the group sharing system monitor the time for the group that is not full?

When I was working in the company last year, I used process monitoring software + curl to detect whether a group was formed or failed. The see time was 5 seconds, which is not a big difference. When doing group grouping, you should pay attention to using cache to control concurrency when joining a group, and do not exceed the limit. Sell ​​it, and then join the group, form the group, fail, refund, send messages, etc., use swoole multi-threading to handle it. In this way, you will be refunded immediately if you fail, and the user will not think it is fake. This will be much better. The company's group grouping system is now All have been updated to 3.0. I have always been in charge. Please pay attention to the key points just mentioned

Give a group purchase a time duration, and use this duration to count down, should it be okay?

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn