Golang

Basic knowledge of Go/Golang entry

Go is an open source programming language, which is `statically typed`. Although it is statically typed, it is so fast that it feels like an interpreted language

Build Go Dockerfile

Every time I start a new Go project, I repeat many steps. Like setting up .gitignore, CI configuration, Dockerfile,...so I decided to have a baseline Dockerfile like this

Go Redis distributed lock

Why do you need distributed locks? Lock uid, prevent repeated orders, lock inventory, prevent oversold, lock account, prevent concurrent operations...etc