Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does redis support UDP between server and client

Tags:

redis

udp

I want to send some log messages to the redis server. I want to use udp protocol to do this.

Does redis support UDP between server and client?

like image 404
Jamesxql Avatar asked Feb 23 '17 13:02

Jamesxql


1 Answers

No, the Redis protocol, RESP, is TCP based:

Networking layer

A client connects to a Redis server creating a TCP connection to the port 6379.

While RESP is technically non-TCP specific, in the context of Redis the protocol is only used with TCP connections (or equivalent stream oriented connections like Unix sockets).

What you could do is use a UDP proxy, but I'm not familiar with anything like that.

like image 62
Itamar Haber Avatar answered Oct 13 '22 06:10

Itamar Haber