Service for generating serial unique identifiers in UUID format. Can be used for systems with data shared across multiple databases.
Build and run go application. Setup connection to PostgreSQL database via environment variable UUIDGEN_DATABASE_URL
.
dep ensure
go build
export UUIDGEN_DATABASE_URL=postgres://user:password@localhost/generator?sslmode=disable
./serial-uuid-generator
- storing sequence in PostgreSQL
- generating sequential part by database sequence
- request parameters validation
- load config from environment
- logging
- database connection check on startup
- automatic table creation on startup
- statistics
- docker build in ci
- concurrency testing
- load testing
- quality and coverage badges