SIGHUP Signal for Configuration Reloads ❤️
SIGHUP is a signal caught between two worlds. It was born from the physical "hang up" of terminal lines, and its original meaning — the loss of a controlling terminal — still applies.
Link to the article
#go #go@digest_golang #article #article@digest_golang
SIGHUP is a signal caught between two worlds. It was born from the physical "hang up" of terminal lines, and its original meaning — the loss of a controlling terminal — still applies.
Link to the article
#go #go@digest_golang #article #article@digest_golang
Please open Telegram to view this post
VIEW IN TELEGRAM
2🔥4👍3
Graceful Shutdown in Go: Practical Patterns 🔨
Graceful shutdowns can be the difference between a smooth user experience with reliable data and frustrated users (or yourself) dealing with data corruption. By following and adapting this five-step approach, you can shut down safely and avoid potential problems.
Link to the article
#go #go@digest_golang #article #article@digest_golang
Graceful shutdowns can be the difference between a smooth user experience with reliable data and frustrated users (or yourself) dealing with data corruption. By following and adapting this five-step approach, you can shut down safely and avoid potential problems.
Link to the article
#go #go@digest_golang #article #article@digest_golang
Please open Telegram to view this post
VIEW IN TELEGRAM
🔥4👍3
Centralize HTTP Error Handling in Go 🔨
Link to the article
#go #go@digest_golang #article #article@digest_golang
In this short post, I'll share with you a simple pattern I use to centralize error handling for my HTTP handlers.
Link to the article
#go #go@digest_golang #article #article@digest_golang
Please open Telegram to view this post
VIEW IN TELEGRAM
2🔥3👍2❤1
How Go Scheduler Works 📆
Understanding the Go scheduler is crucial for Go programmer to write efficient concurrent programs. It also helps us become better at troubleshooting performance issues or tuning the performance of our Go programs. In this post, we will explore how Go scheduler evolved over time, and how the Go code we write happens under the hood.
Link to the article
#go #go@digest_golang #article #article@digest_golang
Understanding the Go scheduler is crucial for Go programmer to write efficient concurrent programs. It also helps us become better at troubleshooting performance issues or tuning the performance of our Go programs. In this post, we will explore how Go scheduler evolved over time, and how the Go code we write happens under the hood.
Link to the article
#go #go@digest_golang #article #article@digest_golang
Please open Telegram to view this post
VIEW IN TELEGRAM
2🔥3❤2👍1
Which Go router should I use? 🧙
Link to the article
#go #go@digest_golang #article #article@digest_golang
For this blog post, I've evaluated 30 of the most popular third-party routers on GitHub (along with http.ServeMux), created a shortlist of the best options, and made a comparison table you can use to help make your choice.
Link to the article
#go #go@digest_golang #article #article@digest_golang
Please open Telegram to view this post
VIEW IN TELEGRAM
🔥4❤3👍1
Getting Started with the OpenAI Responses API Using Go: An Introductory Guide ❤️
The OpenAI Responses API simplifies building agentic AI systems, and Go (Golang) is a perfect fit for integrating it in production. This guide walks through real, working examples using the official OpenAI Go SDK, covering state management, tool calling, structured output, file search, and more.
Link to the article
#go #go@digest_golang #article #article@digest_golang
The OpenAI Responses API simplifies building agentic AI systems, and Go (Golang) is a perfect fit for integrating it in production. This guide walks through real, working examples using the official OpenAI Go SDK, covering state management, tool calling, structured output, file search, and more.
Link to the article
#go #go@digest_golang #article #article@digest_golang
Please open Telegram to view this post
VIEW IN TELEGRAM
1👍6❤3🔥2
Go Cryptography Security Audit 🔨
Trail of Bits reviewed Go’s standard cryptographic libraries (ECDH, RSA, AES, HMAC, SHA, etc.). Only one minor vulnerability and a few informational notes (e.g., potential timing side channels) were found. All issues have been addressed in Go 1.24 and 1.25. The audit confirmed the high security and code quality of Go’s crypto stack.
Link to the article
#go #go@digest_golang #article #article@digest_golang
Trail of Bits reviewed Go’s standard cryptographic libraries (ECDH, RSA, AES, HMAC, SHA, etc.). Only one minor vulnerability and a few informational notes (e.g., potential timing side channels) were found. All issues have been addressed in Go 1.24 and 1.25. The audit confirmed the high security and code quality of Go’s crypto stack.
Link to the article
#go #go@digest_golang #article #article@digest_golang
Please open Telegram to view this post
VIEW IN TELEGRAM
2🔥3👍2❤1
Building scalable multi-tenant applications in Go 🔨
In this post, we will explore different strategies for building scalable multi-tenant applications in Go based on our experience building the backend for Atlas Cloud.
Link to the article
#go #go@digest_golang #article #article@digest_golang
In this post, we will explore different strategies for building scalable multi-tenant applications in Go based on our experience building the backend for Atlas Cloud.
Link to the article
#go #go@digest_golang #article #article@digest_golang
Please open Telegram to view this post
VIEW IN TELEGRAM
🔥4👍2❤1
You probably don't need a DI framework 📆
When working with Go in an industrial context, I feel like dependency injection (DI) often gets a bad rep because of DI frameworks. But DI as a technique is quite useful. It just tends to get explained with too many OO jargons and triggers PTSD among those who came to Go to escape GoF theology.
Link to the article
#go #go@digest_golang #article #article@digest_golang
When working with Go in an industrial context, I feel like dependency injection (DI) often gets a bad rep because of DI frameworks. But DI as a technique is quite useful. It just tends to get explained with too many OO jargons and triggers PTSD among those who came to Go to escape GoF theology.
Link to the article
#go #go@digest_golang #article #article@digest_golang
Please open Telegram to view this post
VIEW IN TELEGRAM
2👍4🔥2❤1
[ On | No ] syntactic support for error handling 🔨
One of the oldest and most persistent complaints about Go concerns the verbosity of error handling.
The Go team takes community feedback seriously, and so for many years now we have tried to come up with a solution for this problem, together with input from the Go community. If you’re wondering if your particular error handling idea was previously considered, read this document!
Link to the article
#go #go@digest_golang #article #article@digest_golang
One of the oldest and most persistent complaints about Go concerns the verbosity of error handling.
The Go team takes community feedback seriously, and so for many years now we have tried to come up with a solution for this problem, together with input from the Go community. If you’re wondering if your particular error handling idea was previously considered, read this document!
Link to the article
#go #go@digest_golang #article #article@digest_golang
Please open Telegram to view this post
VIEW IN TELEGRAM
2🔥5❤2👍2🤔1
Gist of Go: Race conditions 📆
Preventing data races with mutexes may sound easy, but dealing with race conditions is a whole other matter. Let's learn how to handle these beasts!
Link to the article
#go #go@digest_golang #article #article@digest_golang
Preventing data races with mutexes may sound easy, but dealing with race conditions is a whole other matter. Let's learn how to handle these beasts!
Link to the article
#go #go@digest_golang #article #article@digest_golang
Please open Telegram to view this post
VIEW IN TELEGRAM
2❤3🔥3👍2
The Small Change That Made a Big Impact 📆
In this article, I share an experience that taught me that often the smallest details are enough to solve that big problem in a production system, or to improve the performance of a process that for some unknown reason is taking much longer than expected.
Link to the article
#article #article@digest_golang #go #go@digest_golang
In this article, I share an experience that taught me that often the smallest details are enough to solve that big problem in a production system, or to improve the performance of a process that for some unknown reason is taking much longer than expected.
Link to the article
#article #article@digest_golang #go #go@digest_golang
Please open Telegram to view this post
VIEW IN TELEGRAM
1👍4😁2❤1🔥1
Running a million-board chess MMO in a single process ❤️
One Million Chessboards is a 1000x1000 grid of chess boards. Moving a piece moves it for everyone, instantly. There are no turns, and pieces can move between boards.
In the 10 days after launch, over 150,000 players made over 15,000,000 moves and hundreds of millions of queries. The game runs out of a single process that I didn’t touch over those 10 days
Link to the article
#article #article@digest_golang #go #go@digest_golang
One Million Chessboards is a 1000x1000 grid of chess boards. Moving a piece moves it for everyone, instantly. There are no turns, and pieces can move between boards.
In the 10 days after launch, over 150,000 players made over 15,000,000 moves and hundreds of millions of queries. The game runs out of a single process that I didn’t touch over those 10 days
Link to the article
#article #article@digest_golang #go #go@digest_golang
Please open Telegram to view this post
VIEW IN TELEGRAM
🔥4👍2❤1