Skip to main content

3 posts tagged with "Golang"

View All Tags

Database Migrations in Go with go-migrate

· 4 min read

Introduction

As applications evolve, database schemas change as well. You might need to add new tables, modify existing columns, or remove outdated ones. Managing these changes manually quickly becomes difficult, especially when multiple developers are working on the same project.

Database migration tools solve this problem by keeping track of schema changes and applying them in a predictable way. They also make it easy to roll back changes if something goes wrong.

In this article, we'll learn how to manage database migrations in Go using go-migrate. We'll install the CLI, create migration files, apply them to a PostgreSQL database, and roll them back.

Photo by Jan Antonin Kolar on Unsplash

gRPC for Go Developers: A Practical Guide

· 5 min read

What is gRPC ?

gRPC stands for Google Remote Procedure Calls and it is a framework for building APIs. It uses HTTP/2 which allows developers to build high performance APIs. Though it has limited browser support, it is better suited for internal systems that require real-time streaming and has large data loads. In this tutorial we would code some simple gRPC APIs. Checkout this video if you wish to know more about gRPC

Photo by Lucian Alexe on Unsplash

How to Upload a File to S3: A Step-by-Step Guide

· 5 min read

Introduction

Amazon S3 (Simple Storage Service) is a scalable object storage service used widely for various data storage needs. This guide will walk you through the process of uploading a file to an S3 bucket, from creating the bucket and setting up the necessary permissions, to writing and testing the code that performs the upload. Let's get started!