Skip to content
Back

Redis PubSub only used for console ?

  • 0
  • Self Hosted
  • Realtime
  • REST API
Bouahaza
25 Apr, 2024, 21:24

I use Redis Insight to subscribe on all events on redis used by my locally appwrite instance and it don't show message when I update document from API, but it show it when I update it via console.

Isn't redis pubsub used internally to dispatch message around differents worker ? (send to function & webhook when document changed, for example)

TL;DR
PubSub is not suitable for worker communication as every subscriber receives every message, leading to duplicated tasks. Redis PubSub is mainly used for real-time servers, while workers communicate over regular keys and lists. The user is experiencing issues with Redis Insight not displaying messages when updating documents via API but working when using the console. This may be due to how the events are triggered or handled differently, as PubSub is not necessarily used internally for worker communication.
Torsten Dittmann
25 Apr, 2024, 21:33

PubSub is just used for the realtime server.

Workers communicate over normal keys & lists.

Torsten Dittmann
25 Apr, 2024, 21:35

We couldn’t use PubSub for worker communication, because every subscriber will receive a published message. Therefore if you had 2 deleted workers - both would work on the same task 👍🏻

Basically PubSub vs Queues ☺️

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more