Memory cache with backplane? #272
-
Is there a way to use the memory cache but still use the backplane for signalling of changes? The scenario I have in mind is data that can be cached in memory but you still want to be made aware if you're local cache changed. Maybe without using redis for the signaling part maybe a DB table, something like ZeroMQ could be fine you don't want to bother about running/hosting Redis Not sure if that's a good idea in general yet 😄 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi @SbiCA take a look at the Backplane docs, particularly this part: It is technically doable, but there are things to be careful about, it's nuanced. Hope this helps. |
Beta Was this translation helpful? Give feedback.
Can confirm: the backplane only sends a notification, meaning a "signal", without the actual data.
This has been a specific design decision because with multiple nodes, each of them will have its own set of data cached locally (each local memory cache is not the same as all the others, it is based on local requests received on each node), and a lot of times an updated piece of data is not present on most of the other nodes (so there's nothing to update), and/or it will not be requested again on some other nodes, so it would be a waste to update them.
Sending the data with each notification would waste a ton …