Concurrency

Singleflight

Singleflight

Why Singleflight? Imagine you are running a service that calls a slow operation, let’s say it makes an expensive query to a database.

Read More

Graceful shutdown of server in Go

Graceful shutdown Graceful shutdown refers to shutting down an application or service in a way that allows it to finish any ongoing tasks or transactions, clean up resources, and exit in an orderly and controlled manner.

Read More