Kotal Pro API is 5 times faster than centralized API gateways

Kotal Pro API is 5 times faster than centralized API gateways

Centralized Blockchain API gateways are inherently slow because your API calls travel through the internet and go through a series of middlewares like authorization, authentication, caching, metrics, logging, whitelisting ... etc before hitting the centralized service node. Centralized services don't serve you alone, they serve thousands of other web3 companies' requests.

On the other hand, Kotal Pro self-hosted nodes' API performance is lightning fast because your API calls hit your Blockchain node directly without traveling through the internet or any middleware.

Benchmarking Kotal Pro API vs Centralized API gateways

We've benchmarked Kotal Pro self-hosted node API performance against leading centralized Blockchain API gateways: Infura, Alchemy, and Chainstack, and the result was mind-boggling 🤯 Kotal Pro self-hosted node API outperform all centralized Blockchain API gateways.

Steps

  1. Subscribed to the free plan in Infura, Alchemy, and Chainstack.
  2. Created API endpoints for the Göerli network in each provider.
  3. Deployed a self-hosted node using Kotal Pro, and enabled JSON-RPC server.
  4. Generated huge load using open-source HTTP benchmarking tool wrk.
wrk -t12 -c400 -d30s <api-endpoint>

This runs a benchmark for 30 seconds, using 12 threads, and keeping 400 HTTP connections open.

Results

Kotal Pro self-hosted node API latency is almost 5 times faster than centralized API gateways! Kotal Pro self-hosted node doesn't have a caching layer yet, we expect this result to be 7-10 faster after the introduction of the caching layer in future releases.

Kotal Pro self-hosted node API request capacity is 4 times more than centralized API gateways! 80k request/30s vs. 22k requests/30s.

12 threads and 400 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency    55.52ms   52.73ms 618.91ms   73.57%
    Req/Sec   223.75    121.53   646.00     59.71%
79434 requests in 30.08s
Kotal Pro self-hosted node
12 threads and 400 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency   184.03ms  100.82ms   1.95s    96.72%
    Req/Sec    64.35     34.41   202.00     67.81%
22274 requests in 30.07s
Infura centralized API gateway 
12 threads and 400 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency   216.96ms  112.32ms   1.96s    93.21%
    Req/Sec    65.95     33.88   180.00     61.99%
22482 requests in 30.06s, 14.58MB read
Alchemy centralized API gateway
12 threads and 400 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency   152.52ms  144.84ms   1.94s    93.58%
    Req/Sec    68.28     34.73   191.00     65.00%
23232 requests in 30.06s, 48.10MB read
Chainstack centralized API gateway

Kotal Pro self-hosted node API performance is exceptionally fast because your backend can be hosted in the same Blockchain node infrastructure.


It's time to unlock the power of self-hosted Blockchain nodes and deploy your own nodes on your infrastructure. Kotal Pro is cloud-agnostic, it can be installed in AWS, Microsoft Azure, Google GCP, DigitalOcean, Alibaba cloud, or any cloud that supports Kubernetes.

Get Started and get 1 month for free.