Database connection pooling: Overview and benchmark with Go

A wise man said: “If you want to go to the backend, the database is a part that cannot be ignored.” Well, Let’s talk about optimizing database performance on my blog, connection pooling should be the suitable first candidate. So what is connection pooling? How to use the connection pool? Just take a cup of…

Go Slices: Everything You Need to Know

I have been working as a software developer for 4 years, actually, I worked with .NET most of the time, but I primarily worked with Microsoft .NET technology. Last year, I decided to switch to Go because of its performance and simplicity, and because of this reason, many big products and startups choose to use…

Go

The era of serial number IDs is over!

ID is important! ID is so important! I have to mention it twice, as the word, IDs play a crucial role in uniquely identifying records in a database. An ID must be unique in the system, and there are many strategies to generate a unique ID, but not all of them are good for the…

Golang generic functions – mimic Javascript methods: Map, Contains, Filter, Reduce

Go Generics I’ve been working on some Go projects lately, and I gotta say – there’s been a lot of duplicated code going on. It’s weird, because I’ve never seen so much of it in my previous projects. It’s like the more I work with Go, the more I realize that some of its built-in…

TOP 4 frequently asked questions in Go programming (P1)

Go is a popular programming language used for developing fast and efficient applications. When programming with Go, some frequently asked questions arise, just as they do with any other language. In this article, we will go over four of the most common Go programming questions. How to Check if a Map Contains a Key in…

How to remove all local git branches but keep master

Working with Git is very necessary, but sometimes, a bunch of branches were created during our work, and we want to delete them all. And a popular question is: how to delete all local Git branches except for the master branch. Delete a Git branch wont delete the associated commits or data. You just remove…

How to debug Java in Vs Code

Vscode is a perfect editor for programming. In the previous post, I show you how to install vscode on your machine. But with Java developers or newbies of the Java programming world, Java debugging in vscode is a big question. Let me show you how to do it. Install Java SDK You can find and…

Create dynamic Objects in Go like Javascript (JSON)

Recently, I got a new task to implement a new API in our Go microservice to save the telemetry data (event data) into the new MongoDB instance. The problem I realized that the payload of the events does not have a specific schema. Excludes some properties like userId, IP address, and event name, they have…

Top 5 free websites to learn CSS in 2023

CSS – Cascading Style Sheets is a very important language to decorate the presentation of any website. In addition, CSS is also used in the development of user interfaces for mobile applications and even for desktop UI. Is CSS important to learn? The answer is yes. A website’s vital role is to commercialize a business’s…