Closed AndreMaz closed 3 years ago
I feel we should create a redis client for every subscription :(
That might work but it would generate a massive amount of clients per service.
I think if we set BLOCK
to some value higher than 0 (e.g., 50) we might solve the 1) and 2).
Never seen the issue 3). Do you have replicas of redis (see https://github.com/helm/charts/issues/12851)?
Some issues what I found:
1. Unsubscribe doesn't release the
xreadgroup
.Repro:
destroy users
p
(publish) repl commandusers
service received the message and processed.2. Multiple channels block each other
If both channels enabled, the first won't receive messages after second. Repro
my.second.topic
channels in servicesnpm run dev
and wait for both messagep
(publish repl command which triggers the first channel)3. Strange error
Sometimes after few minutes running, I've got this error message a lot of times