Reputation: 51211
I'd like you to help me to choose the right technology that fits my requirements with least costs.
The android app needs to constantly send the data back to server (The data like heartbearts), as well as constantly receive the feedback data from server (Real-time data, streaming)
The data type can be number, text, or even graph.
I'm now looking at three technologies
I'm not familiar with any of that, please give your suggestions, thank you.
Upvotes: 4
Views: 14205
Reputation: 22011
For Android native apps, there is Autobahn WebSockets for Android
https://github.com/oberstet/AutobahnAndroid
It supports the final RFC6455, integrates well with UI and service apps, provides RPC and PubSub over WebSockets, and more. Check out the project README on GitHub.
Disclaimer: I am the author of Autobahn.
Upvotes: 2
Reputation: 15467
Realtime bi-direction full-duplex communication = WebSockets.
IMHO WebSockets will become the standard for server <-> client communication. It's still reasonably early in their development, in terms of non-browser solutions, but the amount of options available to developers is increasing all the time. jWebSockets look like a good solution for Android and there are a host of WebSocket servers that are available to choose from. I work for Pusher who offer a hosted WebSocket service and there are other similar services that you can investigate.
Have a look at this realtime technologies guide for a list of technologies (I'm trying to keep this up to date as much as possible as I find new technologies).
Upvotes: 3
Reputation: 16622
I'd look at Google Buffer Protocol - it was used in an application that I worked on and was extremely fast for data transfer. It could be what you are looking for.
Upvotes: 0