December 29, 2019

Golang Microservices Part 2 - PostgreSQL with gorm

Setting up GORM Continuing from the app we created in Part 1 PostgreSQL is one of the most popular database choices today because it is free and has most of the features that the big guns like Microsoft SQL Server and Oracle offer. To connect our microservice to PostgreSQL, we can simplify our life by using an ORM for GO called GORM… GO-ORM get it? via GIPHY Let's upgrade the gRPC microservice we created in Part 1 to use an actual database instead of just cache. Read more

November 29, 2019

Golang Microservices Part 1 - gRPC Communication

Summary - Setting up gRPC communication gRPC is a modern, highly-efficient method of communication between systems built by Google. gRPC uses the new and efficient HTTP/2 network protocol as well Google’s Protocol Buffers (Protobuf) method of serialization which allows for more light-weight and predictable communication. Protocol Buffers can be used with any technology stack out there; code can be generated from the .proto file for nearly every programming language available. ProtoBuf Before setting up our server and client, we need to define the message/contract structure and service definitions using Protocol Buffers in a .proto file. If you need a guide on the protocol buffer language, you can read about it here; although the language is quite simplistic and you may be able to get away with just looking at these examples for now. Read more

© Ilya Nemtsev 2025

Powered by Hugo.