Auto restart mechanism for our Go programs
As a golang developer, ensuring that our Go programs run reliably and uninterrupted is paramount. One way to achieve this is by implementing an auto restart mechanism. However, unlike Node.js, Go does not have a popular process manager like pm2 that provides this functionality out-of-the-box. However, this doesn’t mean that Go developers are left without […]
Golang ticker
Hi guys, I am back again with an another short tutorial. This time we will be looking at an interesting use case for Golang ticker. Apart from tickers we will also make use of channels in this tutorial. So, without any further ado, let’s get started Agenda Recently, while working on a small project of […]
Channels in golang: Usage with examples
Go, also known as Golang, is a powerful programming language that is known for its ability to handle concurrency efficiently. And the feature which enables this is channels. In this blog post, we will explore the power of channels in Golang by looking at some example use cases. We will cover and some advanced techniques […]
Go fiber custom header middleware
Hi guys, today we are back again with an another go fiber middleware tutorial. In this tutorial we will be building a custom header middleware for our go fiber app. In one of our previous tutorial we learn how we can build a custom go fiber middleware and if you haven’t checked that out than […]
Docker Swarm Tutorial
Many a times especially in production environment we may require our app to be available to our users at all times or have the least possible minimum down-time no matter even if one or a few of our app servers are down or has crashed. As long as one instance of our app is running […]
Telegram bot for crypto price alert | Nodejs
Hi guys, in this tutorial we’ll try to walk you guys through the entire process of designing and building a telegram bot for crypto price notification from scratch using the telegram bot API. Although the demo for this tutorial is around crypto price alerts, the same idea can easily be extended to create notification systems […]
Telegram bot webhook tutorial in nodejs
Hi guys, in this telegram bot tutorial series, we will explore the Telegram API and learn to build an image compression bot using the webhook way. Although there are various libraries we can make use of like telegraf, node-telegram-bot-api, etc. However, for a deeper understanding, we will be taking a more bare-bone approach. Agenda We […]
Redis as primary database in nodejs
As a developer working on a project, there are a lot of options to choose from when it comes to databases. Without a second thought, the most popular and widely used types would be Relational(SQL) and NoSQL. But still, sometimes neither SQL nor NoSQL meets our exact requirements. In that case, we may need to […]
Go fiber custom middleware
As a Golang developer coming from a nodejs background, my framework of choice when it comes to REST API like many is Go Fiber. Due to its simplicity and beginner-friendly approach like express.js, it becomes very easy to start and build performant APIs. Also, just like expressjs, it comes with middleware support, routing, template engines […]