logo

Peatio & Barong User Endpoints Benchmark Guide

#Prerequisites

To have better insight into platform metrics, deploying Prometheus and Grafana beforehand is recommended.

#Benchmark

Benchmark diagram

Suggested tool: Locust with 20 workers Number of clients: 20 x 1,000 request per second Metrics to collect: Number of requests per second, CPU load chart, Latency per page chart

Endpoints
http://peatio-rails.example-namespace:8080/api/v2/peatio/account/balances
http://barong.example-namespace:8080/api/v2/resource/users/me

#Results

All the tests were executed on a Kubernetes cluster of 12 nodes with 8 CPU cores and 16 GB of RAM each.

ComponentReplicas
Peatio24
Barong12
Envoy8
API endpointNumber of connectionsRequests per secondNumber of replicas
/account/balances20004356.071124
/users/me20001939.876612

With this setup, platforms can support a rather big audience without worrying about user API call capacity.