I’m trying to better understand how in-memory differs from using Redis with realtime, specifically subscriptions. Once I enable Redis in realtime.ts it establishes two connections to my redis instance. Right now the Redis subscribeClient and publishClient instances are a mystery to me.
I understand we speak to the server through channels with PubSub in our code, but even though I see realtime working and connections being made to my redis, I don’t see any actual key-value pairs. My understanding was that once you enable Redis, the publishClient enters the published data on the Redis database and then communicates it to the client with SSE. Then gets communicated with the subscribeClient. In my example I’ve implemented everything works, except there is no data in Redis. I’ve tried with two providers. Connected and checked using redis-cli but there are no keys, checking after each publish/subscribe.
Any clarity on this subject would be appreciated. If I am misunderstanding how Redis is used, I thank you for the clarification.