The power of Golang and go routines
Anthony Miracho
Senior Golang Developer | Full Stack Developer | Golang Consultant | Website Developer
Concurrency in Go is a powerful feature that allows you to efficiently execute multiple tasks concurrently. Go has built-in support for concurrency through goroutines and channels. Here are some key concepts related to concurrency in Go:
In the screenshot above the image shows some dots clustered together. Well, those dots are actually go-routines similar to the "birds flying together/bird flocking". I bet you have seen an occurrence where thousands of birds fly in a pattern and move as a single unit.
The phenomenon of birds flying together in coordinated patterns is known as bird flocking.
since I cannot attach a video to an article I will associate this article to a post with the video of those dots acting as birds. here is the link to the video
The point is to show how effective, and lightweight a go-routine is, in this instance spinning over 500 go-routines on a machine is easy and viewable.
I cannot take credit for this work it is a tutorial called "Mastering Multithreading Programming with Go (Golang)" by James Cutajar
领英推荐
He talks about all the stuff necessary to understand and work with concurrency in Golang. stuff like
Golang is quite a powerful language, especially in the cloud, and as a result, companies are migrating their systems to work with Golang.
Although Microservices boosts the power of app handling traffic, Golang is quite an effective language. Its ability to utilize go-routines - a lightweight (goroutine starts with a stack space of 2KB) threads that can handle extra work
I borrowed this from Fiber - a Golang framework that shows how a game-changer Golang is
I hope that you find this article resourceful.
Software Developer I like C, Golang and Typescript sometimes.
8 个月I mostly use Mux or Chi. Also 1.22 will bring new nice stuff for std lib
Senior Golang Developer | Full Stack Developer | Golang Consultant | Website Developer
8 个月here is the video https://www.youtube.com/watch?v=XzivX9aGqH4
Open Source Software Analyst / Programmer at Catalyst IT Limited
8 个月Personally I'm not a fan of Fibre because it's built on top of FastHTTP which doesn't support every single feature Golang's builtin net/http supports. But in the Go world people are obsessed with meaningless router framework benchmarks "my router is faster than yours, look!". It's silly, because most of your speed is lost on the database and I/O, not on routing.