Skip to content

kevinmichaelchen/go-rest-api

Repository files navigation

Getting started

To build Docker images and spin them up, just run

make

To bring it all down, run

make stop

Using the API

make list-users
make create-user
make list-users

Why should we use Golang?

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.

About

Go REST API on top of MySQL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published