Use UDP in heartbeat #232
akiradeveloper
started this conversation in
Ideas
Replies: 2 comments
-
Related topic: https://groups.google.com/g/raft-dev/c/LgtIgPqpkXI/m/VBp08KMPBwAJ |
Beta Was this translation helpful? Give feedback.
0 replies
-
Experimental implementation is here: https://github.com/akiradeveloper/lol/tree/experimental-udp-heartbeat |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In v0.6.0, the heartbeat is sent over gRPC which is HTTP/2 over TCP.
We don't need a connection to send heartbeat. Even the response is not necessary. It is just leader sending heartbeat to followers periodically (like 100ms).
If we can send the heartbeat over UDP, there is no connection and it is ideal.
Beta Was this translation helpful? Give feedback.
All reactions