|
|
|
|
|
by notatoad
506 days ago
|
|
for me, the most important lesson i've learned when using websockets is to not use them whenever possible. i don't hate them, they're great for what they are, but they're for realtime push of small messages only. trying to use them for the rest of your API as well just throws out all the great things about http - like caching and load balancing, and just normal request/response architecture. while you can use websockets for that it's only going to cause you headaches that are already solved by simply using a normal http api for the vast majority of your api. |
|