kragniz / python-etcd3

Python client for the etcd API v3
Apache License 2.0
430 stars 184 forks source link

Add HTTP backend #102

Open kragniz opened 7 years ago

kragniz commented 7 years ago

gRPC is nice, but is awkward to deploy in some situations (using eventlet, running on musl libc, and other problems with the C library). The HTTP proxy API appears to be in a better state these days, so a backend could be created to only communicate using that.

This would expose the same python API.

Lukasa commented 7 years ago

An alternative approach would be to build a custom backend on top of protobufs and something like hyper-h2 that implements just the portions of HTTP/2 that are required for use with grpc. My understanding is that that's a fairly restricted subset, so hyper-h2 should be a good fit.

Revolution1 commented 6 years ago

build a client based on gRPC-JSON-Gateway https://github.com/Revolution1/etcd3-py, which is http backended

btw: https://github.com/vmagamedov/grpclib a Pure-Python gRPC implementation https://github.com/grpc/grpc/issues/4629 official eventlet support is on the way