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

Consider routing requests transparently to leader node if necessary #330

Closed
otoolep opened this issue Jul 24, 2017 · 2 comments · Fixed by #859
Closed

Consider routing requests transparently to leader node if necessary #330

otoolep opened this issue Jul 24, 2017 · 2 comments · Fixed by #859

Comments

@otoolep
Copy link
Member

otoolep commented Jul 24, 2017

In principle it's possible to have a node re-route a HTTP request to the leader node, if a follower receives it. Right now that is not the chosen behavior, and the follower node returns with HTTP 301. This provides maximum transparency to clients, allowing them to talk directly to the leader and be sure that a command has been accepted.

@otoolep
Copy link
Member Author

otoolep commented Jul 24, 2017

A note about the current design has been added here: https://github.com/rqlite/rqlite/blob/master/doc/DATA_API.md#sending-requests-to-followers

It should be noted that adding this feature introduces a lot of possible error cases, that need to be handled with timeouts. Not ruling it out, but it must be considered carefully before allowing it. At the very least, it must able to be disabled by the client if it chooses.

@otoolep
Copy link
Member Author

otoolep commented Aug 17, 2021

Will be fixed by #859

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant