Skip to content
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

Enable client-side load-balancing in XrplClient.java #269

Open
sappenin opened this issue Jun 2, 2022 · 0 comments
Open

Enable client-side load-balancing in XrplClient.java #269

sappenin opened this issue Jun 2, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@sappenin
Copy link
Collaborator

sappenin commented Jun 2, 2022

The idea here is that the current s1.ripple.com setup uses a DNS TTL of 5s, so any networking stack will peg the XRPL4j client to a given IP address for at least that long (or whatever the DNS TTL happens to be). If the node that the client stack is pegged to (i.e., the IP Address) is down, or not accessible, then the xrpl4j client will lose access.

One alternative here, especially in private-ledger scenarios (e.g.) where the xrpl4j client know which IP addresses to be talking to when making rippled calls, would be to allow the client to be constructed with one or more URLs and/or IPs so that if the client is unable to communicate with the rippled host, it can attempt to use a different host without waiting for DNS timeouts that the client cannot control.

@sappenin sappenin added the enhancement New feature or request label Jun 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant