Creating Microservices With Go— Part 1

Nandan Grover
The Startup
Published in
7 min readSep 20, 2020

--

Coming from a JavaScript background, I have always wanted to learn a static-typed programming language, earlier this year I picked up Golang after reading the reviews about the language, Golang is backed by Google. Oh, and of course popular DevOps tools such as Docker, Kubernetes, Terraform, are built with Golang. After picking up the basics from this awesome tutorial by freecodecamp, I decided to build a production-level microservices architecture. This project will have unit tests, CI/CD integration, and robust architecture which can be expanded upon in the future. The frontend will be written in React.

This will be a multipart blog that documents the creation of the whole architecture. The code will be hosted here: https://github.com/nandangrover/go-microservices. The first part of the series, which is what this blog documents can be found in this branch. I will be using Ubuntu for the series but golang sits well with other OS as well so it shouldn’t be a problem.

My code editor of choice is the visual studio and I recommend you to use that. It has a number of benefits out of the box. Visual Studio Code supports Go syntax highlighting out of the box. Additional features are provided by the vscode-go plugin, which integrates with more than a dozen standard Go tools. If you don’t have your GOPATH set, the plugin will ask you to set it as soon as you…

--

--