[Go] Is It Okay to Run 100 Million Goroutines?

Goroutines are one of the key advantages of the Go language, known for being lightweight—even when spawning hundreds of thousands or more. However, what happens if these goroutines remain in a parked state for extended periods? This article explains the operational principles of goroutine parking and delves into the internals of Go’s GMP runtime model. It explores the system load and performance impact when many goroutines are inactive, and introduces practical strategies to detect and prevent such issues.

May 20, 2025 · 12 min · 2346 words · dingyu

[Go] Go Convention

Efficient Go Project Structure Guide

January 12, 2025 · 3 min · 550 words · dingyu

[Go] Gophercon 2024 - Building Minimalistic Backend Microservice in Go

No more unnecessary frameworks—pure Go is the ultimate form of tuning. Learn how to build minimalistic applications with vanilla Go.

November 5, 2024 · 3 min · 435 words · dingyu

[Go] Gophercon 2024 - Go Project Guide from A to Z

How to structure projects in Go, a language without rigid frameworks like Spring. This post introduces practical patterns for feature-driven development and enterprise-level application design.

November 5, 2024 · 2 min · 422 words · dingyu

[Go] Gophercon 2024 - Kubernetes Platform Programming

How to use the Kubernetes API with Go… and deploy applications using Operators

November 5, 2024 · 2 min · 413 words · dingyu

[Go] Profiling Worker Pool vs. Async Processing

Is it better to distribute tasks across multiple workers or handle each task asynchronously? Let’s find out through performance profiling.

October 27, 2024 · 3 min · 521 words · dingyu

[Go] Tuning GC with pprof

Ever heard of “many a mickle makes a muckle”? By identifying bottlenecks and minimizing memory allocations, you can reduce GC overhead and build highly optimized applications!

September 13, 2024 · 4 min · 671 words · dingyu

[Third-Party] Integrating Sentry in Go

A tool that supports both APM and error traceability?

September 11, 2024 · 3 min · 627 words · dingyu