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)
Summary
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
Apr 25, 2024, 21:33
PubSub is just used for the realtime server.
Workers communicate over normal keys & lists.
Torsten Dittmann
Apr 25, 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 👍🏻