Programming language and tools

Our UsersService will be written in Go; the tools we use in this programming language have already been described in Chapter 2, The Microservice Tools. However, it is necessary to download the dependencies of the project to start development. This is done using the following commands:

 $ go get github.com/gorilla/mux $ go get github.com/lib/pq $ go get github.com/codegangsta/negroni $ go get github.com/jmoiron/sqlx 

Muxer is responsible for application handles and is our initial dependency. The gorilla/mux will be responsible for the UsersService synchronous communication layer, at first. This communication will be with HTTP/JSON.

The PQ is the interface responsible for communication between our software and ...

Get Microservice Patterns and Best Practices now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.