3 ms·
I am running top-1000 site in one of EU countries on one 4 core machine with 20-30% load. Around 1000 http/https reqs/s. Most of those requests do couple of pos
by lossolo 8y ago
I am running top-1000 site in one of EU countries on one 4 core machine with 20-30% load. Around 1000 http/https reqs/s. Most of those requests do couple of postgres reqs (read and write) and couple of redis reqs.
Elasticsearch - for searching/recommendations
Redis - hot data (certain data is only kept in redis)
Postgres - for the rest of data
Clickhouse - analytics
Most of the system is written in Go.
Whole system was tuned for performance from day one.
As to latency, data from the last 21 million requests today:
p99: 17.37 ms
p95: 6.86 ms
avg: 2.37 ms
- tmaly 8y agoare you using any specific Go web framework or just the standard library?
- lossolo 8y agoI am using fasthttp[1] 1. https://github.com/valyala/fasthttp https://github.com/valyala/fasthttp
- digikata 8y agoIs postgres on the same machine or on a separate one?
- lossolo 8y agoSame machine, everything is on the same machine (dedicated server aka bare metal, not vps/cloud).
- digikata 8y agoThanks for the reply! May I ask how far you go with respect to reliability/availability? Do you have a live replicated server on stand by or just replicate a log stream elsewhere, something else?