![User banner](https://programming.dev/pictrs/image/540d9906-8c3c-4366-9904-eafbef1fdbc2.png)
Storing connected clients - websockets
Hello, I'm developing application which uses websockets for chatting feature.
I was wondering what is best way to store all client handles in server side. Every tutorial (eg. this) just says to store in some form of map. I figured that in large commercial apps list of clients would be rather high and I wondered if storing it on heap is actually valid implementation or if some other solutions like caching dbs like redis are used.
What's your experience with that?
Next
![skomposzczet](https://programming.dev/pictrs/image/0b08cb09-3174-46ac-b8fd-30b20fc8c714.png?format=webp&thumbnail=64)
Programming languages are like USB cables. C is superior.
Posts 1
Comments 0