# GetById with Caching on 4GB Linode

> Cached GetById on 4GB Linode — ~118K requests in 60s, ~76MB read. Demonstrates high-speed data retrieval.

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

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

⭐ $45 Linode Ubuntu 22.04 LTS, 4GB RAM, 2CPU, 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 $45 linode server
```

% autocannon -d 60 -p 15 "http://170.187.237.49/api/schema/admin/mongo/northwind/customers_benchmark/get-by-id/60ae24c8c37cd955cc144162"
Running 60s test @ http://170.187.237.49/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 │ 47 ms │ 76 ms │ 102 ms │ 112 ms │ 75.99 ms │ 15.55 ms │ 244 ms │
└─────────┴───────┴───────┴────────┴────────┴──────────┴──────────┴────────┘
┌───────────┬────────┬─────────┬─────────┬─────────┬─────────┬─────────┬────────┐
│ Stat      │ 1%     │ 2.5%    │ 50%     │ 97.5%   │ Avg     │ Stdev   │ Min    │
├───────────┼────────┼─────────┼─────────┼─────────┼─────────┼─────────┼────────┤
│ Req/Sec   │ 1431   │ 1744    │ 1977    │ 2059    │ 1960.07 │ 88.9    │ 1431   │
├───────────┼────────┼─────────┼─────────┼─────────┼─────────┼─────────┼────────┤
│ Bytes/Sec │ 928 kB │ 1.13 MB │ 1.28 MB │ 1.33 MB │ 1.27 MB │ 57.5 kB │ 927 kB │
└───────────┴────────┴─────────┴─────────┴─────────┴─────────┴─────────┴────────┘
```
Req/Bytes counts sampled once per second of samples: 60
## 118k requests in 60.03s, 76.2 MB read
