Hacker News new | ask | show | jobs
by lossolo 2900 days 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

2 comments

Is postgres on the same machine or on a separate one?
Same machine, everything is on the same machine (dedicated server aka bare metal, not vps/cloud).
Thanks 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?
are you using any specific Go web framework or just the standard library?
I am using fasthttp[1]

1. https://github.com/valyala/fasthttp