============ Problem Description ============
I want to develop the bidding function of the e-commerce trading platform.
Considering that multiple users are bidding at the same time, the current maximum price displayed by the client is subject to change at any time.
and whether the highest price is determined by clicking the Submit button
How should these functions be implemented?
Ask the high finger to teach!
============ Solution 1============
If the client wants to change at any time,
1. Can be pushed with the cloud, but the failure rate is very high,
2. Or a socket connection, but too much resources,
3. Or let the client keep sending requests to the server,
That's all I'm thinking about, three kinds.
============ Solution 2============
Using a third-party push tool, if the service-side price changes, push to the client a message, update the data
You do not need to write your own socket link.
You have a lot of search under. Like Jpush (I use this).
============ Solution 3============
The auction display requires a refresh event to be sent with MQ,MQ. When a quote is submitted, the client simply submits the data, maintains the spot list on the server side, and, under certain rules, sends a refresh event to MQ.
============ Solution 4============
You can consider using the AVOs Cloud real-time messaging features, this should be able to help you, if you need to push or in-app search, his family has such a service, very comprehensive, now in the app is in the service of his home, feel very good, especially their technical support response very quickly, Have their own problems can not be solved by their technical staff will help you to solve, overall very good ~ this should be able to help you: https://cn.avoscloud.com/docs/realtime.html I also slowly try to add chat function in the app.
Android bidding Feature