artemeff / redis

Redis commands for Elixir
MIT License
358 stars 63 forks source link

Multiple connections? #81

Closed Stratus3D closed 5 years ago

Stratus3D commented 5 years ago

Is it possible to open multiple separate connections with this library? Right now I've got some code that runs a transaction for a HTTP request, but during the time the transaction is open other requests execute Redis commands and they also get queued in the transaction. Is there a way I can open up multiple connections?

artemeff commented 5 years ago

@Stratus3D you can start as many exredis clients as you want, but I would recommend you to use Redix with poolboy (redix_pool) or just follow the instructions here.

Also you can take my new library Redis for redis commands (just take a look!) :)

I have some ideas about redis clients adapter inside Redis library, where I can implement connection pooling too, but that thing on very early stage #79

Stratus3D commented 5 years ago

Thanks @artemeff, I'll give those a try.