Writing a simple Go async message queue server 0 ▲ Bytepawn - Marton Trencseni 170 days ago · 10 min read2035 words · Tech · hide · Fediverse post Introduction After writing async message queue servers in Python, Javascript and C++, and then one more in Rust, I wrote one final version, in Go. Of all the languages in this series, Go is arguably the most purpose-built for exactly this task. It was designed at Google for networked, concurrent server software, with goroutines and channels as first-class citizens. So if there is a language that should make a small async message queue server feel natural, it is this one. As before, the same checklist applies — this is a good toy precisely because it touches the parts that matter: it has sockets it has concurrency it has shared mutable state it has parsing and validation This post walks through the Go implementation, with attention to the Go-specific parts, and in particular to the one place where Go pushed back. The full code is on Github. What the server does The Go version follows the same exact protocol as the previous implementations, and passes exactly the same unit tests.… Commenting on Bubbles has been removed. Why? If you want to talk about this post, write to the author, use the comments on their blog if it has them, or reply with a "RE:" post on your own blog. Suggestions? feedback@bubbles.town