某草草2017-04-24 16:01:44
Based on the content of this question, my answer is:
曾经蜡笔没有小新2017-04-24 16:01:44
Message queue is mainly used for: writeoperations
under large concurrencyIt is recommended to use elasticsearch
淡淡烟草味2017-04-24 16:01:44
Redis is used as a message queue: for example, send an email.
Do you think it’s better to send them one by one? Or send them all at once? Queue queue, just come one by one.
Of course, most of the time, the first type is better. The so-called 抗大并发
means that the system can still work in an orderly manner under high load. You ask if it’s suitable, I think it’s suitable if you feel comfortable using it.
漂亮男人2017-04-24 16:01:44
Redis can be used as a message queue, and its performance is not bad, but it may be a bit unreliable in terms of resistance to large concurrency because it does not support clusters.
There is really no connection between the query function and the queue.
过去多啦不再A梦2017-04-24 16:01:44
That’s it. The function we need to do now is similar to a score query, which is mainly displayed on the web page.
1. The user clicks on the score query
2. The button text shows that it is querying, and the asynchronous query using ajax starts.
3. Internal logic calls the interface for query
4. Returns json data to the client.
5. It shows that the query is successful and is jumping.
6. Display the results page.