8000 Add caching of unreachable addresses to `HybridExchange` · Issue #92 · proxystore/academy · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add caching of unreachable addresses to HybridExchange #92

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
gpauloski opened this issue May 12, 2025 · 0 comments
Open

Add caching of unreachable addresses to HybridExchange #92

gpauloski opened this issue May 12, 2025 · 0 comments
Labels
enhancement New features or improvements to existing functionality

Comments

@gpauloski
Copy link
Contributor

The HybridExchange caches reachable peer addresses to avoid queries to Redis on each message send. However, we don't track which addresses that we know don't work so we still retry them, incurring some additional overhead for each message sent.

I initially skipped this in the implementation as there are two reasons an address is unreachable: (1) there is no valid network path (i.e., host behind a NAT) or (2) receiver is temporarily offline. We can't really distinguish the two, so possibly the address cache needs some cooldown on re-trying bad addresses.

It would probably make sense then to factor out the address cache into a separate class that tracks valid and invalid addresses, with some lifetime on the validity of each cache entry (both in the valid and invalid cases).

@gpauloski gpauloski added the enhancement New features or improvements to existing functionality label May 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New features or improvements to existing functionality
Projects
None yet
Development

No branches or pull requests

1 participant
0