jonmorehouse / gatekeeper

a pluggable http routing runtime
12 stars 1 forks source link

Backend Specify Protocol #17

Closed jonmorehouse closed 8 years ago

jonmorehouse commented 8 years ago

What if backends could specify protocols?

For instance let's say I have foo_api and it could serve json-rpc and http-public; I'd like to configure a single upstream for this, but service traffic over multiple backends. Maybe we ought to add in a protocols attribute to the backend? This is a little redundant, but buys us a lot in terms of future proofing capabilities.

jonmorehouse commented 8 years ago

Furthermore - I think as a first pass - we probably should not take into effect protocol for load balancing between upstreams of a service. AKA we should treat eg rpc load == http load