It's interesting that you look into fasthttp for rest api as the (rightfully) fastest http implementation in go, but then shoot yourself in the foot by using logrus, the slowest logger go has to offer. Logrus does so much type inference to let you log whatever you want without headaches that it can become in itself a bottleneck for high load APIs. You should *really* look into something like Zap

--

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store