Skip Navigation

Improving Go API request performance

4rkal.com Improving Go API request performance | 4rkal's blog

In this post I'll show you how I improved the performance of my go based cryptocurrency exchange aggregator. By making small changes, like using goroutines, switching JSON libraries and reusing HTTP handlers.

Improving Go API request performance | 4rkal's blog
1
1 comments
  • Goroutines are amazing and extremely easy to use. You should include them wherever possible. But always be careful of Data Races

    Goroutines are amazing and extremely easy to use. However, you should absolutely not include them wherever possible. Using them can in fact slow down a program for which they are not suited (context switching still has a cost), and they introduce non-trivial complexity.

    Still, it's nice to see a post with some start-here optimization ideas; many Go optimization articles assume a deep experience with Go and can be daunting.