Welcome to rpc.ag, the rpc aggregator tool for DApps! It simplifies node provider integration by balancing requests across multiple providers through a single endpoint. rpc.ag also enhances observability, improving the overall management and efficiency of your DApp infrastructure. Empower the community with better control and observability by using rpc.ag as the homepage of DApp blockchain infrastructure. Big brothers started watching node providers.
The architecture of the RPC aggregator with load balancing is shown in the following flowchart:
flowchart LR
CC(CLI) --> RPCProxy
RC(Rest) --> RPCProxy
RPCC(RPC) --> RPCProxy
WSC(WS) --> RPCProxy
subgraph RPC Proxy
RPCProxy(Handler) --> Routing
subgraph fasthttp
Routing --> Auth(Auth & Cors)
Auth --> Balancer
end
Balancer --> Proxy
end
Proxy -->|TCP -> 100ms| Upstream1[Provider 1]
Proxy -->|TCP -> 101ms| Upstream2[Provider 2]
Proxy -->|TCP -> 200ms| Upstream3[Provider 3]
Proxy -->|TCP -> 300ms| Upstream4[Provider N]
if you are curious about details
- Implement rate limiting
- Implement CORS Policy and api keys
- Implement a ping metric fetcher from all providers
- Implement a healthcheck scheduler to add the provider(node) back when they are functioning properly
- Detect when a node is behind, remove it and watch closely again
- Implement prometheus metrics & endpoint
- Implement an API lists all nodes (except their API keys) their performance and a simple uptime
- Distribute api keys for every project attends to grizzlython with ability of;
- Api key auth & CORS
- Rate limiting
- Build a public page on rpc.ag that showcases the RPC Aggregator and its features.
- Include information on how to use the RPC Aggregator.
- Build an uptime page for transparency and accountability.
- Show fastest & most available node providers with uptime history
- Show average ping time with ability of filtering by provider and region
- Build a Prometheus exporter that exposes the collected metrics in a format that can be scraped by Prometheus.
- Create a set of Grafana dashboards that visualize the performance metrics for the RPC Aggregator and its providers.
- Develop an uptime page that displays the current status of the RPC Aggregator and the providers.
- Integrate the monitoring system with the uptime page to display real-time health and performance metrics.
- Allow users to subscribe alerts for downtime or performance issues.
- Yes.
With this roadmap, we aim to add a robust monitoring and performance tracking system to the RPC Aggregator, along with a Prometheus exporter, Grafana dashboards, an uptime page, and a public page. These features will provide greater visibility into the health and performance of the RPC Aggregator and its providers, and promote transparency and accountability for blockchain world.
rpc.ag provides free rpc endpoints for developers and for projects at their super early stage. Please reach us at [email protected]
If you are a node provider and want to support developer community and want to be mentioned here, reach us at [email protected]
If you would like to contribute to the RPC Aggregator with load balancing, please fork the repository and create a pull request with your changes. Be sure to include unit tests and adhere to the project's coding style.
This project uses a Makefile to manage different actions related to the project, including building, running, testing, checking, creating a Docker image, running a Docker container, and cleaning. The following is a brief overview of each target in the Makefile:
build
: builds the project using thego build
command and generates the binary file in thebin/
directoryrun
: runs the binary file generated by thebuild
target and passes the configuration file as an argumentrunp
: runs the binary file generated by thebuild
target with a private configuration file located in the_private/
directorytest
: tests the project using thego test
commandcheck
: runs various checks on the project, including verifying the module dependencies, building, vetting, and linting the codeimage
: builds a Docker image of the project using thedocker build
commandrun-docker
: runs a Docker container of the project using thedocker run
command and maps port 8080clean
: removes the binary file and thebin/
directory
- Build the project using the
make build
command - Run the project using the
make run
ormake runp
command - Test the project using the
make test
command - Check the project using the
make check
command - Build a Docker image of the project using the
make image
command - Run a Docker container of the project using the
make run-docker
command - Clean the project using the
make clean
command
Note: Some Makefile targets require the go
, docker
, staticcheck
, and golint
commands to be installed.
IF, the project get support (grant from any blockchain) to cover some server expenses and a bit more, we will share it to developers who contribute to rpc.ag at any level (proxy, doc, monitoring, etc) we will also open some grants for huge tasks and/or issues
Total grant so far: $0
Sol Wallet to support, donate & track rpcroe9QQug5tfnG5hvZRCv65R27n3JdFpWuxhBkekH