RediSearch / JRediSearch

Java Client for RediSearch
https://redisearch.io
BSD 2-Clause "Simplified" License
141 stars 62 forks source link

Can 1 client use for all the Threads? Does it thread safe? #140

Closed Taymindis closed 3 years ago

Taymindis commented 3 years ago

I am currently have a design like this


Client client = new Client(indexName, jedisPool)

Can this client handle all the query from multiple threads concurrently? Or i need to instantiate a new client whenever there is a new request?

sazzad16 commented 3 years ago

Client is threadsafe (considering JedisPool, more specifically, GenericObjectPoolConfig of JedisPool is not weirdly configured).

Taymindis commented 3 years ago

Thanks for the clarification.