Tag

#Concurrency

Every article tagged Concurrency, in one place.

  • 8 articles
  • 11 min of reading
  • 15 Sep, 2026 last updated

Showing 8 articles

Go 1 min read

Goroutines and Channels in Go Explained

A goroutine is a lightweight thread managed by the Go runtime. You can run hundreds of thousands of them. Channels let goroutines pass data safely. Start goroutines and wait for them var wg sync.WaitGroup urls := []string{"https://go.dev", "https://pkg.go.dev"...

15 Sep, 2026 Author 611 131
Read article
Redis 2 min read

Distributed Locks with Redis

When several app instances run the same scheduled job, you often want exactly one of them to do the work. A Redis lock is a simple way to coordinate. Acquire with SET NX PX import { randomUUID } from 'node:crypto'; async function acquireLock(name, ttlMs) { con...

21 Aug, 2026 Author 460 44
Read article