Closed parruda closed 5 years ago
Hi @parruda !
This library is not thread-safe. So you must handle connections by yourself. The choices are as follows.
Best regards,
use pooled_client: https://github.com/stefanwille/crystal-redis#connection-pooling
Redis
objects are not thread safe. Please use @kostya's solution: Redis::PooledClient
, as in @kostya's link.
Using the pooled client works. Thanks guys!
Hey guys,
I am using Kemal to receive requests on a specific endpoint and add a JSON to a queue to be consumed by workers using the Reliable Queue Pattern. Basically it does:
Things start to fail when I send concurrent requests.
This works:
Then I add a second one:
That's when I start to see errors:
What could be causing it?