High speed Beego with NGINX
Although Go is a relatively new programming language, its popularity has been rapidly increasing as the demand for higher performance and greater scalability increases. Go is derived from Google's desire to scale rapidly, yet safely, and already has a number of web frameworks available.
One of the most popular frameworks is Beego, an easy to use MVC-based web framework with integrated REST and code hot compile. By harnessing the performance of Go, Beego can outperform other frameworks (using a different programming language) by more than ten times in many instances.

Getting ready
In this recipe we're going to use the example todo
code. This is available at https://github.com/beego/samples/tree/master/todo.
It's important to build this rather than just using go run
, otherwise you'll have issues. Consider the following example:
cd $GOPATH/src/github.com/beego/samples/todo go build ./main
How to do it...
We'll create a separate NGINX configuration file with the server
block...