> For the complete documentation index, see [llms.txt](https://next-docs.cloudio.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://next-docs.cloudio.io/scalability.md).

# Scalability

To demonstrate the scalability of the platform, see below the output of a simple load test with wrk.

{% hint style="info" %}
Load test run with 1000 connections for a duration of 10 minutes
{% endhint %}

```bash
wrk -t50 -c1000 -d600s -s wrk.lua "http://localhost:3090/v1/api?csrf=..."
```

> Each request validates the Authorization header, verifies that the user have access to perform a query on the given datasource, fetches the datasource metadata from Redis Cache or the database, if the cache is invalid, constructs and executes the SQL query against the MySQL database and returns the results.

![wrk.lua script file content](/files/-Mb9VVr-vg8TJprDCvtU)

![Docker Stats after before the run](/files/-MbDV44ifZJMP3Pl7NAx)

![wrk output](/files/-MbDUj26PHTBQrQxtULq)

![Docker Stats after the run](/files/-MbDUYCpbASZhtdpwIRQ)

![Docker Resources - 6 CPU - 4GB RAM](/files/-MbDWwOAo7GQWWPAk4Fe)
