whatyouhide / redix

Fast, pipelined, resilient Redis driver for Elixir. 🛍
http://hexdocs.pm/redix
MIT License
1.1k stars 121 forks source link

Is Redix usable with other databases that implement RESP protocol? #226

Closed bt-maps closed 2 years ago

bt-maps commented 2 years ago

Hi,

I currently use a few databases (not Redis) built using the RESP protocol. Most standard clients in python/node, etc work well for me by sending RESP commands.

I am starting to look for an elixir client and found Redix - Is there anything in the design of Redix that will cause problems using it with tools other than Redis?

Example commands would look like this SET fleet truck1 FIELD speed 90 POINT 33.5123 -112.2693 GET fleet truck1

this is what my py-redis commands look like. client = redis.Redis(host='127.0.0.1', port=9851) result = client.execute_command('SET', 'fleet', 'truck', 'POINT', 33.32, 115.423 28EA69B6-4136-4E3F-A690-4FA26CA4CAC8 )

whatyouhide commented 2 years ago

There shouldn't be anything that doesn't work, no, if the server implements the RESP protocol. Does the server log any error when you get the Redix.ConnectionError there with reason :closed?

bt-maps commented 2 years ago

hmmm. I don't even see a connection when I run server in debug mode. I also tried connecting to a local redis and it had the same errors. I am new to Livebook so it may be an error on my part. I'll see if I can connect outside of the Docker Livebook first.

bt-maps commented 2 years ago

works fine in standalone livebook install.