# GetById with Caching on 4 GB Linode

> Cached GetById on 4 GB Linode — ~180K requests in 60 seconds, ~115 MB read. Fast, efficient data retrieval.

Source: https://docs.apimaker.dev/v1/docs/performance/api-maker/Linode/20-Server/GetByIdWithcache.html

## [Plan: Linode 4 GB | Region: Mumbai, IN]

⭐ $24 Linode Ubuntu 22.04 LTS, 4GB RAM, 2vCPU, 4TB Bandwidth

- MongoDB 6, Redis are inside server installed using docker.
- Server Location: Mumbai
- Benchmark taken by server location: Mumbai
- Date: 17-Apr-2023

## API Maker Benchmarking of Get By ID with caching using $24 linode server
```

% autocannon -d 60 -p 15 "http://172.232.67.15/api/schema/admin/mongo/northwind/customers_benchmark/get-by-id/60ae24c8c37cd955cc144162"
Running 60s test @ http://172.232.67.15/api/schema/admin/mongo/northwind/customers_benchmark/get-by-id/60ae24c8c37cd955cc144162
10 connections with 15 pipelining factor

┌─────────┬───────┬───────┬───────┬───────┬──────────┬──────────┬────────┐
│ Stat    │ 2.5%  │ 50%   │ 97.5% │ 99%   │ Avg      │ Stdev    │ Max    │
├─────────┼───────┼───────┼───────┼───────┼──────────┼──────────┼────────┤
│ Latency │ 26 ms │ 52 ms │ 81 ms │ 89 ms │ 52.67 ms │ 15.47 ms │ 221 ms │
└─────────┴───────┴───────┴───────┴───────┴──────────┴──────────┴────────┘
┌───────────┬─────────┬────────┬─────────┬───────┬─────────┬────────┬─────────┐
│ Stat      │ 1%      │ 2.5%   │ 50%     │ 97.5% │ Avg     │ Stdev  │ Min     │
├───────────┼─────────┼────────┼─────────┼───────┼─────────┼────────┼─────────┤
│ Req/Sec   │ 2041    │ 2473   │ 2813    │ 3083  │ 2821.07 │ 160.2  │ 2041    │
├───────────┼─────────┼────────┼─────────┼───────┼─────────┼────────┼─────────┤
│ Bytes/Sec │ 1.32 MB │ 1.6 MB │ 1.82 MB │ 2 MB  │ 1.83 MB │ 104 kB │ 1.32 MB │
└───────────┴─────────┴────────┴─────────┴───────┴─────────┴────────┴─────────┘
```
Req/Bytes counts sampled once per second of samples: 60
## 169k requests in 60.04s, 110 MB read
