---
# System prepended metadata

title: Load balancer comparision

---

# Load balancer comparision

All the lb were measured by this benchmark https://gitlab.com/shipmonk-company/platform/k6/-/blob/master/src/root-screen-test.ts

Every test was soak test described here https://gitlab.com/shipmonk-company/platform/k6/-/blob/master/src/setup.ts#L16


## Iterations

As described in  https://k6.io/docs/using-k6/scenarios/executors/per-vu-iterations/

| Traefik  | AWS LB   | Nginx plus |
| -------- | -------- | --------   |
| 133413   | 124885   | 100086     |
| 9.264107/s | 8.671681/s | 6.94999/s |

## Error rate

| Traefik  | AWS LB   | Nginx plus |
| -------- | -------- | --------   |
| 0%   | 0.01%   | 0%     |


## Http request duration

Treafik:
```
avg=629.63ms min=32.12ms med=166.6ms max=10.79s p(90)=1.36s p(95)=2.83s
```

AWS LB:
```
avg=672.51ms min=31.46ms med=268.56ms max=1m0s p(90)=1.69s p(95)=2.85s
```

Nginx Plus:

```
avg=838.55ms min=31.96ms med=495.85ms max=14.8s p(90)=1.96s p(95)=3.43s
```


## Misc


Error requests from AWS lb:

```
     █ setup

     █ graphql

       ✗ graphql call AccountSubStatusMapping
        ↳  99% — ✓ 124882 / ✗ 3
       ✗ graphql call Countries
        ↳  99% — ✓ 124884 / ✗ 1
       ✗ graphql call UserWarehouses
        ↳  99% — ✓ 124883 / ✗ 2
       ✓ graphql call GetMyPermissionRoles
       ✗ graphql call UserStoreTypes
        ↳  99% — ✓ 124884 / ✗ 1

     █ getters

       ✗ http GET /api/v1/users/me
        ↳  99% — ✓ 124882 / ✗ 3
       ✗ http GET /api/v1/shipping/shipping-methods
        ↳  99% — ✓ 124864 / ✗ 21
       ✗ http GET /api/v1/required-web-version
        ↳  99% — ✓ 124882 / ✗ 3
       ✗ http GET /api/v1/orders/filter-options
        ↳  99% — ✓ 124881 / ✗ 4
       ✗ http GET /api/v1/orders/filter-attributes
        ↳  99% — ✓ 124876 / ✗ 9
       ✗ http GET /api/v1/orders/average-days-of-delay
        ↳  99% — ✓ 124880 / ✗ 5

     █ user

       ✗ token validate method
        ↳  99% — ✓ 124880 / ✗ 5
       ✗ current balance check
        ↳  99% — ✓ 124876 / ✗ 4

     █ order

       ✗ order count method
        ↳  99% — ✓ 124875 / ✗ 5
       ✗ order list method
        ↳  99% — ✓ 124869 / ✗ 11
       ✗ order pagination method
        ↳  99% — ✓ 124876 / ✗ 4
```
