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

Build RPC proxy #235

Closed
2 tasks done
troian opened this issue Jul 9, 2024 · 4 comments
Closed
2 tasks done

Build RPC proxy #235

troian opened this issue Jul 9, 2024 · 4 comments

Comments

@troian
Copy link
Member

troian commented Jul 9, 2024

Is your feature request related to a problem? Please describe.

cosmos.directory proxy has caps and limitations for usage like Akash console.

Describe the solution you'd like

Build Go tool that:

  1. reads list of available RPC servers from chain meta file.
  • check each node if it's alive and if the node is not catching up
  • check nodes are reporting correct chain-id
  • calculate ping time overtime
  1. /rpc endpoint receives requests and proxies them to live nodes
  2. Live reload of RPC nodes without the need to restart the server
  3. implement authentication via JWT.
  • authenticated clients get best nodes
  • implement caps on unauthenticated clients

Describe alternatives you've considered

n/a

Search

  • I did search for other open and closed issues before opening this

Code of Conduct

  • I agree to follow this project's Code of Conduct

Additional context

No response

@thebigbone
Copy link

thebigbone commented Oct 4, 2024

Hello, I am working on this. Just had a few questions:

  • For checking if the node is alive and catching up, is there anything more required than a simple ping?
  • Where do I get the chain-id for a RPC node?
  • For ping overtime, what should be the duration over which I can show the average ping time? And should I add an endpoint for it?
  • Can you explain the third point more clearly?

@brewsterdrinkwater
Copy link
Collaborator

I believe this issue has been resolved. I will follow up shortly.

It would be great to see what other contributions you can make to the Akash Network project.

@troian
Copy link
Member Author

troian commented Oct 4, 2024

@troian
Copy link
Member Author

troian commented Oct 16, 2024

hi @thebigbone will you be able to implement GRPC part of the proxy?

@troian troian closed this as completed Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants