Our great sponsors
-
Gin
Gin is a HTTP web framework written in Go (Golang). It features a Martini-like API with much better performance -- up to 40 times faster. If you need smashing performance, get yourself some Gin.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
The desired username is checked in the database before allowing the creation of the account, to ensure accounts have unique usernames. The problem occurs when multiple users attempt to create accounts with the same username at the same time. I'm using the Gin framework, and since these requests happen concurrently in Gin, it's possible that multiple accounts can be created with the same username.