Go scheduler’s job is to distribute runnable goroutines over
multiple worker OS threads that runs on one or more processors.
In multi-threaded computation, two paradigms have emerged in scheduling: work sharing and work stealing.
Work-sharing: When a processor generates ne...
Prelude
If you want to put this post in some better context, I suggest reading the following series of posts, which lay out some other fundamental and relevant design principles:
Language Mechanics On Stacks And Pointers
Language Mechanics On Escape Analysis
Language Mechanics O...
Using gRPC server-side streaming with binary blobs
OOM errors hate this one weird trick
With friends Qunit, Ginkgo and Agouti
Usually at work and at home we use different Git name/email pairs, or even per project. Pushing with correct email guarantees that your commits will be authored with a correct user identity.
Go 1.9 is introducing profiler labels, a way to add arbitrary key-values to the samples collected by the CPU profiler. CPU profilers collect and output hot spots where the CPU spent most time in when executing. A typical CPU profiler output is primarily reports the location of th...
I’ve been working with DigitalOcean, Heroku and AWS for some years now.
Go provides several pprof profiles out of thet box to gather
profiling data from Go programs.
The builtin profiles provided by the runtime/pprof package:
profile: CPU profile determines where a program spends its time while actively consuming CPU cycles (as opposed while sleepin...