I am planning to build a mobile app to see the updates of stocks being added by the user as soon the price got updated.
Do we need to use Websocket or TCP n this case? Which one is better ?
Do we have any stock market test API's which supports Websocket or TCP to cross check the feasibility, stability, reliability and latency ?
Kathir jeyap wrote:
What are the differences between websocket vs TCP vs Push Notification ???
TCP is a type of transport on the socket. The other being UDP. There are actually others, but never mind those...
HTTP is a protocol that is on top of TCP. This is the protocol that is used by web servers. When browsers connects to the web servers, this is the most common protocol that is used.
For security reasons, when a web application (that comes from the internet using HTTP) tries to connect to hosts, it is only allowed to connect to the same host and port. There is another feature that can cross domain to another web server. Regardless, this means that it must connect to a web server -- and unfortunately, this means that it must also use HTTP.
Anyway, enter web sockets.... A web socket starts off as a HTTP connection. During the connection, the protocol will request an upgrade. This upgrade is for a fully connected long term raw connection to the web server. In other words, the upgrade is for the HTTP protocol to get out of the way, and treat the connection as simply a TCP connection.
Push notifications, is a mobile phone feature. Not really a mobile phone developer, so I will let others elaborate.
And remember that you don't have to choose the perfect solution when you haven't even done the design work. It's normal to throw away the first version of a system, because it's only by building the system that you can find out what you didn't know when you started.
posted 9 months ago
Any other suggestions ?? Can you help me with good links to refer for quick development with Push Notifications ?? Planning to use Flutter Mobile Apps