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

feat: command to run only the sidecar RPC and not the "core" indexer of the sidecar #194

Closed
seanmcgary opened this issue Jan 22, 2025 · 0 comments · Fixed by #203
Closed
Assignees
Labels
api draft enhancement New feature or request

Comments

@seanmcgary
Copy link
Member

Currently, the Sidecar and its RPC server are a monolithic process. For simple use-cases where a highly available RPC is not required, this works fine.

However, if you would like to run a Sidecar with highly a highly available RPC, a single process will likely result in downtime during upgrades and becomes a single point of failure.

This ticket proposes introducing the ability to run the Sidecar RPC server as a separate process (or series of processes) that reads from the same database as the "primary" Sidecar process which would contain the indexer. Sidecar RPC-only processes could connect to the same database instance or even a read-only replica to reduce load on the database responsible for accepting writes. RPC endpoints that result in modifying or creating new state (e.g. rewards generation) would need to proxy their requests back to the "primary" Sidecar's RPC. RPCs that are read only could be handled directly in the RPC process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api draft enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant