Tag: go
-
Building a CLI Tool in Go with Cobra and Viper
"The elegance of the command line lies in its ability to combine simple tools to accomplish complex tasks effortlessly." – Co-author of Unix Go, with its simplicity and strong concurrency model, is a popular choice for building CLI tools. Cobra and Viper are two powerful libraries in Go for building command-line interfaces and managing configuration,…
-
Tracking Multiple Requests Over a Single Connection with eBPF
Why capturing HTTP Traffic is Crucial for Network Security? Capturing HTTP traffic is like having a digital security camera at your network’s entrance, and it’s essential for keeping your network safe. This ‘camera’ helps you monitor who’s accessing your online space, allowing you to detect and prevent potential security threats, such as cyberattacks and unauthorized…
-
Efficient TCP Server Connection Management
TCP connections, they are everywhere, almost every online interaction you make, whether it’s streaming your favourite video, sending an important email, or just casually browsing through different websites. They are like the foundational building blocks of the internet and so it’s important for them to be consistent and reliable. As you can see TCP servers…
-
Managing Go Processes
Introduction: The Challenge of Managing Blocking Processes While working on an application that required executing a command to run a blocking program, such as a TCP/HTTP server, I encountered an interesting challenge. I needed a way to stop the application and its child processes when a signal was sent to the main program, such as…
-
MongoDB in Mock Mode: Acting the Server Part
Imagine, for a moment, a scenario where instead of writing mocks with pre-defined behaviours, you can duplicate the behaviour of a real-world server. Picture a restaurant where the chef’s apprentice mimics each of the chef’s moves in real time, creating an identical dish concurrently. That’s precisely what we’re diving into here. By leveraging the genuine…
-
A Guide for Observing Go Process with eBPF tracing
Introduction In my journey as a software enthusiast, I’ve constantly sought innovative ways to unravel the intricacies of my Go applications. Recently, I stumbled upon a fascinating technology that has significantly transformed the way I observe and analyze Go processes. In this blog post, We’ll go on a journey of observing Go processes with eBPF.…