HTTP watch merging
Open
theme/api
type/enhancement
- Dominant language
- Go
- Stars
- 30.1k
- Forks
- 4.6k
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 43
Description
Having a HTTP request per watch is expensive, if you have a lot of watches. So would be nice to be able to set multiple watches with single request in API v2. As an alternative zookeeper-like protocol where you set watches asynchronously would be ok too (but that probably would mean not a HTTP API which has it's own downsides).
The exact cost is actually not a TCP connection per request (localhost connections are not very expensive). But because HTTP doesn't have a way to "ping" other peer (unlike e.g. zookeeper protocol), you need to restart every request each couple of seconds just to be sure nothing is hanging.
Contributor guide
Assessment
This issue has not been assessed yet.