3 ms·
Redis in Pub/Sub is quite lightweight in fact. It's just a TCP connection between your application and the Redis database. Once opened, you can get notification
by nicolaslem 11y ago
Redis in Pub/Sub is quite lightweight in fact. It's just a TCP connection between your application and the Redis database. Once opened, you can get notifications almost for free.
I was thinking on adding a separate HTTP API to control the load balancer that would read and write to Redis, notifying the load balancer when changes should be applied.
- dave_ops 11y agoBut it's a SPoF and an extra remote or local service that has to be configured, maintained, etc. The thing that's coming online has to publish a message to redis anyway, so why not just maintain the service map inside the Rust application and open up a socket that allows those things to speak straight to Nucleon for mutating its configuration?
- michaelmior 11y agoThat's more what I was getting at, not "heavyweight" in the sense that I see it as a performance concern.
- michaelmior 11y agoThat's more what I was getting at, not "heavyweight" in the sense that I see it as a performance concern.
- halayli 11y agoWhat happens if your connection to redis dropped and a pub was made in between?