To build Docker images and spin them up, just run
make
To bring it all down, run
make stop
make list-users
make create-user
make list-users
Our Golang server has a much lighter memory footprint than our Spring Boot apps, which do more or less the same thing.
Language | Framework | Memory Footprint | Video (asciinema) |
---|---|---|---|
Java | Spring Boot | 500 MB | vid |
Golang | net/http | 5 MB | vid |
See this gist for a fuller explanation. At best, embedded Tomcat runs at 120MB, which is still 24x higher than what Golang consumes. Out of the box, embedded Tomcat runs 100x higher than Golang.