June 3, 2019

Make Multiple Api Calls At The Same Time With GoRoutines

Golang is efficient, very efficient. Much of this efficiency is attributed to its unique abstractions when dealing with concurrency. Java for example, maps its threads to OS threads, while Go uses its own goroutines scheduler to further abstract its lightweight goroutines from OS threads. In short, Golang is very frugal with how it uses OS threads; if a goroutine becomes blocked, Go’s scheduler will switch in another goroutine in its place to keep the thread busy as much as possible. Read more

© Ilya Nemtsev 2019

Powered by Hugo.