Tag

errgroup

0 views collected around this technical thread.

Raymond Ops
Raymond Ops
Mar 6, 2025 · Backend Development

Why Switch from PHP to Go? Mastering Concurrency with WaitGroup and ErrGroup

This article explains why backend developers are moving from PHP to Go, outlines the concurrency challenges of high‑traffic live streaming services, and demonstrates two practical Go patterns—sync.WaitGroup and errgroup.Group—with code examples, while also warning about common closure pitfalls in loops.

Backend DevelopmentConcurrencyGo
0 likes · 9 min read
Why Switch from PHP to Go? Mastering Concurrency with WaitGroup and ErrGroup
Raymond Ops
Raymond Ops
Feb 15, 2025 · Backend Development

Why Switch from PHP to Go? Boosting Concurrency for Live Streaming

This article explains why backend developers are moving from PHP to Go, demonstrates how Go's built-in concurrency primitives like sync.WaitGroup and errgroup simplify high‑traffic live‑streaming services, and warns about common closure pitfalls when launching goroutines in loops.

ClosureConcurrencyGo
0 likes · 10 min read
Why Switch from PHP to Go? Boosting Concurrency for Live Streaming
High Availability Architecture
High Availability Architecture
May 13, 2022 · Backend Development

Error Handling and Errgroup Usage in Go

This article explains Go's built-in error interface, distinguishes errors from exceptions, compares three common error-handling patterns, discusses wrapping errors with packages like pkg/errors, and demonstrates centralized error handling using errgroup, including usage examples and best-practice recommendations for backend Go development.

ConcurrencyError HandlingGo
0 likes · 17 min read
Error Handling and Errgroup Usage in Go
Tencent Cloud Developer
Tencent Cloud Developer
May 9, 2022 · Backend Development

Error Handling and ErrGroup Patterns in Go

The article explains Go’s built‑in error interface, distinguishes errors, exceptions and panics, presents three handling patterns—classic returns, stateful objects, and functional deferred execution—shows how to wrap errors for context, and demonstrates using the errgroup concurrency primitive (including an extended version) for safe parallel processing.

Backend DevelopmentConcurrencyError Handling
0 likes · 15 min read
Error Handling and ErrGroup Patterns in Go