Start with traces and metrics to see where a service spends its time. For a concrete case, read the performance section of the Go and Postgres authorization article: a bottleneck can be in the database, not the Go loop. Then move on to SIMD and the shorter notes on memory and vector lanes as they’re published.
Go Performance · 3 entries · RSS ↗
From observing a Go service to understanding what happens in its hottest loops.
How I Implemented Authorization in My Go App With RLS (Postgres)
In this article, I will show you how I set up Authorization with Row Level Security (RLS) specifically with Postgres in my web app in Go. A quick distinction …