Search code examples
restnetwork-programmingmobiletcplow-latency

REST API latency on LAN


I'm designing a mobile application that communicates with a laptop over LAN where minimal latency is critical, and I'd like to potentially have the host laptop receive information through a RESTful service. Is there any solid case for using lower-level communication like TCP to reduce delays?


Solution

  • As I understand the RESTful service is based on HTTP protocol that runs over TCP/IP if you need low latency you could to use UDP protocol, but should keep in mind that you can loss some packages.