Decision 01 / 07
Server written in Go, on Gin
- Decision
- The server is written in Go with the Gin framework; dependencies are pinned with Go Modules.
- Rationale
- Go compiles to native code, with fast execution and low resource usage; goroutines and channels give it a strong concurrency model; its syntax is minimal and pulls in few dependencies. Against NestJS and Flask, the comparison on file rates Go highest on performance and scalability. Code factorisation and middleware simplify route management.
- Trade-off
- The same comparison rates Go's learning curve as moderate and its ecosystem as less mature than NestJS or Flask.