What socket data exists within redis?
See original GitHub issueI am currently storing data using socket.data.myCustomData
and am able to retrieve the data properly between servers.
However, I’m wondering if this data is stored in redis itself?
By that I mean,
- Server 1 -> mySocket.data
- Server 2
- Server 3
If I kill Server 1, will Server 2 and Server 3 be able to access mySocket.data
regardless of Server 1 and it’s memory/process?
Issue Analytics
- State:
- Created a year ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Socket.IO checking if room contains clients with socket.io-redis
What is "efficient way" to check if some room has connected clients or even exists? socket.on('pm', function(data) { data.from ...
Read more >Using Redis With Node.js And Socket.IO - ScaleGrid
Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache, and message broker. It supports data ......
Read more >Redis client handling
A readable file event is created so that Redis is able to collect the client queries as soon as new data is available...
Read more >RESP protocol spec - Redis
While RESP is technically non-TCP specific, the protocol is only used with TCP connections (or equivalent stream-oriented connections like Unix sockets) in ...
Read more >Client-side caching in Redis
The Redis implementation of client-side caching · Clients can enable tracking if they want. · When tracking is enabled, the server remembers what...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
That clears things up. Thank you!
Yes, that’s right 👍
In your example above, if server1 gets killed, the
data
is lost. Sorry for the confusion.