casparss / racket-meetup-mobile

Racket Meetup is a tennis social media app built in Typescript with Angular 5 on Ionic 4
0 stars 0 forks source link

Replace HTTP with Websockets #30

Closed casparss closed 7 years ago

casparss commented 7 years ago

HTTP has overhead, sometimes the response body has less characters than the request/response headers of an HTTP request, sound like a waste to me.

Websockets is a pub/sub protocol but Sockets.io have implemented an acknowledgments layer that mimics the request response paradigm, so this could leveraged to create an HTTP like rest interface via persistent socket connection without all the overhead, should hopefully provide better performance.

casparss commented 7 years ago

Can only really be done once websockets are proven reliable. At the moment, loads of bugs with the chat keep wreaking havoc.

casparss commented 7 years ago

Closing for now, this is s bit of a pipe dream at the moment.