Making REST API Requests in Golang using the HTTP Client
In most web applications, we need to make HTTP requests to external services. For example, we might need to make a request to a third-party API to fetch some data.…
How to Use Context in Golang (Deadlines, Cancellation, and Passing Values)
In this post, we’ll learn about Go’s context package, and more specifically, how we can use it to improve our applications performance.
A Guide On SQL Database Transactions In Go
This article explains what SQL database transactions are, and how to implement them in Go (Golang). Transactions are very useful when you want to perform multiple operations on a database,…
Using a PostgreSQL Database in Go (in Production)
This post will go through how to interact with an PostgreSQL database in Go, and how to make your application production ready when it comes to connecting and querying your…
Implementing JWT based authentication in Golang
In this post, we will learn how JWT(JSON Web Token) based authentication works, and how to build a server application in Go to implement it using the golang-jwt/jwt library. If…
Build a gRPC API using Go and gRPC-gateway
In this guide, we’ll begin by exploring the fundamentals of gRPC, understanding its purpose and use cases. Following that, we’ll look at how Protocol Buffers work and how to write…
Building Production Grade Microservices with Go and gRPC – A Step-by-Step Developer Guide with Example
Microservices have emerged as a powerful architectural paradigm for developing complex, scalable, and maintainable software systems. By breaking down applications into smaller, loosely coupled services, developers can create a more…
gRPC-gateway — REST API and gRPC API in the single definition
In this article, we are going to look into, grpc-gateway The gRPC-Gateway is a plugin of the Google protocol buffers compiler protoc. It reads protobuf service definitions and generates a…
Create Simple gRPC-Gateway in Go
In this article, we will learn how to create a simple grpc-gateway with Go. For this, we need to prepare our Go project for the grpc-gateway. You can find detailed…