I am trying to optimize a new app which does lot of JSON calls. Latency is important so they have to be fast. Right now its implemented using ajax which get hit by HTTPS overhead for every request. Does web socket and phoenix channels can be used in this situation ? Will sockets reduce latency compared to HTTPS calls? Any pitfall I should be careful about?
If latency is important than yes, use websockets, that is one of the few cases that websockets is truly and well suited for.