Best of GolangOctober 2025

  1. 1
    Video
    Avatar of letsgetrustyLet's Get Rusty·29w

    Rust intern saved TikTok $300K

    A TikTok intern rewrote CPU-intensive payment service endpoints from Go to Rust, reducing average latency by 30%, P99 latency by 76%, and cutting compute costs by 50%—saving $300K annually. The migration used a gradual rollout strategy with separate Rust clusters under the same service name, avoiding upstream code changes. Key challenges included adapting Go's zero values to Rust's Option enum and optimizing memory allocations. The main lesson: Rust delivers performance gains at the cost of developer productivity, making it ideal for high-usage, stable components where economies of scale justify the rewrite effort.

  2. 2
    Article
    Avatar of devtoDEV·30w

    Why Do You Push Code During Work Hours?" - How an Interview Question Led Me to Build a Delayed Commit Feature

    A developer built a delayed commit feature for GoCommit after an interviewer questioned their GitHub commit timestamps during work hours. The tool allows developers to schedule commits outside restricted hours, addressing privacy concerns and work-life boundaries. It intercepts commits during configured work hours, presents alternative timestamps, and uses Git's native date flags to set both author and committer dates. The feature integrates with GoCommit's AI-powered commit message generator and raises questions about whether coding schedules should be public information.

  3. 3
    Article
    Avatar of infoworldInfoWorld·30w

    What’s the Go language really good for?

    Go has evolved from a curiosity to a battle-tested language powering major cloud-native projects like Docker and Kubernetes. Known for its simplicity, fast compilation, and built-in concurrency features (goroutines and channels), Go excels at building distributed network services, cloud applications, and standalone tools. While it offers automatic memory management and cross-platform portability, it deliberately omits features like macros and produces larger binaries. The language recently added generics in version 1.18 after years of deliberation. Go's future remains strong in cloud infrastructure and network services, with emerging interest in AI workloads, though it faces competition from Python in ML/AI and Rust in systems programming.

  4. 4
    Article
    Avatar of freecodecampfreeCodeCamp·34w

    Build a Full Stack Movie Streaming App with Go, React, MongoDB, OpenAI

    A comprehensive 15-hour course teaches building MagicStream, a production-ready movie streaming application with AI-powered recommendations. The stack includes Go with Gin-Gonic for the backend API, React for the frontend, MongoDB for data storage, and OpenAI integration via LangChainGo for intelligent movie suggestions. The course covers secure authentication with http-only cookies, token validation middleware, and deployment to Atlas, Render, and Vercel.

  5. 5
    Article
    Avatar of systemdesigncodexSystem Design Codex·31w

    How Paypal Built JunoDB?

    PayPal open-sourced JunoDB, a distributed key-value store handling 350 billion daily requests with 99.9999% availability. Built in Go for multi-core support and CPU-intensive operations like encryption, JunoDB uses a proxy-based architecture with RocksDB for storage. Unlike Redis's single-threaded, memory-bound design, JunoDB is optimized for CPU-bound workloads. Common use cases include caching with flexible TTLs, implementing idempotency for payment processing, tracking counters for rate limiting, and bridging replication latency between data centers in active-active database configurations.

  6. 6
    Article
    Avatar of hnHacker News·33w

    Five Years as a Startup CTO: How, Why, and Was It Worth It?

    A CTO reflects on five years leading technology at an early stage startup, from inheriting a broken Salesforce implementation to building a 20+ person engineering team and custom SaaS platform. The journey involved migrating from Salesforce to a custom stack (AWS, Kubernetes, Golang, React), establishing effective team structures across platform, backend, frontend, QA and design, and learning crucial lessons about technical leadership, hiring, remote work, and maintaining work-life balance during the startup grind.

  7. 7
    Article
    Avatar of eexhvzfp824uaxinoymgzKashitsuwa·32w

    I finally built the Go project generator I always wanted: Goca (Beta)

    Goca is an open-source CLI tool that automatically generates production-ready Go features following Clean Architecture principles. It creates entities, use cases, repositories, and HTTP handlers to eliminate repetitive boilerplate code when starting new Go services. Currently in beta with MIT license, the tool aims to reduce setup time while enforcing architectural best practices.

  8. 8
    Video
    Avatar of dreamsofcodeDreams of Code·32w

    Why I decided to migrate away from Stripe

    A developer shares their experience migrating from Stripe to Polar.sh, a merchant of record payment provider. The primary motivation was eliminating the burden of sales tax compliance, registration, and remittance across multiple jurisdictions. While Stripe excels at payment processing, it doesn't handle tax remittance, requiring manual quarterly filings that became increasingly time-consuming. Polar.sh offers a 4% fee (vs Stripe's 2.9%) but assumes legal responsibility for sales, handling all tax compliance automatically. The migration involved database schema changes, adapting to differences in product/price models and customer references, and implementing the Polar SDK alongside existing Stripe infrastructure. The author found the tradeoff worthwhile for reclaiming time previously spent on tax paperwork.

  9. 9
    Article
    Avatar of cloudflareCloudflare·33w

    How we found a bug in Go's arm64 compiler

    Cloudflare discovered a race condition in Go's arm64 compiler that caused sporadic crashes during stack unwinding. The bug occurred when async preemption interrupted a split stack pointer adjustment in function epilogues, leaving the stack in an invalid state. Through systematic debugging involving coredumps, disassembly analysis, and reproducer creation, they traced crashes to a one-instruction race where the runtime preempted between two ADD opcodes adjusting RSP. The fix ensures stack pointer modifications happen atomically by building offsets in temporary registers first.

  10. 10
    Article
    Avatar of freecodecampfreeCodeCamp·33w

    Learn How to Use Pointers in Go – With Example Code

    A comprehensive guide to understanding and using pointers in Go, covering memory fundamentals, pointer declaration and dereferencing, common pitfalls like nil pointers, and practical applications including pointer receivers for struct methods. The guide explains how pointers enable efficient memory usage by avoiding unnecessary copies, allow shared state mutation, and are essential for method receivers. It also introduces weak pointers in Go 1.24+ for advanced memory management scenarios like caching, and includes practical exercises with solutions.

  11. 11
    Article
    Avatar of metalbearMetalBear·30w

    Introducing DB Branching in mirrord: Run Against a Shared Environment With a Personal, Isolated Database

    mirrord introduces DB Branching, a feature that creates temporary, isolated database branches for testing schema changes and migrations safely. When enabled, it automatically overrides database connection strings to point to a separate branch that mirrors the main database, allowing developers to test changes without affecting shared staging environments. The feature currently supports MySQL databases and is available in mirrord for Teams, with a step-by-step guide demonstrating how to test schema changes using a Go service on Kubernetes.

  12. 12
    Article
    Avatar of golangnutsGo Developers·32w

    I finally built the Go project generator I always wanted: Goca (Beta)

    Goca is an open-source CLI tool that automatically generates production-ready Go features following Clean Architecture principles. It creates entities, use cases, repositories, and HTTP handlers to eliminate repetitive boilerplate code when starting new Go services. Currently in beta with MIT license, the tool aims to reduce setup time while enforcing architectural best practices.

  13. 13
    Article
    Avatar of antonzAnton Zhiyanov·31w

    Go proposal: Compare IP subnets

    Go 1.26 introduces a new Compare method for the netip.Prefix type, enabling standardized comparison and sorting of IP subnets. The method follows IANA conventions and Python's netaddr implementation, ordering prefixes by validity, address family (IPv4 before IPv6), masked IP address, prefix length, and unmasked address. This eliminates the need for developers to write custom comparison logic when organizing routing tables or sorting IP subnets.

  14. 14
    Article
    Avatar of habrhabr·32w

    Predicate Pattern in Go

    Explores implementing the predicate pattern in Go to create elegant, filterable search methods. Demonstrates building a process finder that accepts predicate functions (functions returning bool) through builder methods like ByTitle() and ByPID(). Shows how to enhance developer experience by converting filter functions into methods on an empty struct, enabling IDE autocomplete for filter options while maintaining clean, idiomatic code.

  15. 15
    Article
    Avatar of medium_jsMedium·30w

    Protocol Buffers Over HTTP: You Don’t Need gRPC to Use Protobuf

    Protocol Buffers can be used directly over standard HTTP without gRPC. The article demonstrates building a Go HTTP server that serves Protobuf-encoded binary data, proving that Protobuf is just a serialization format independent of the transport layer. It includes a working example with two endpoints: one returning Protobuf binary data and another decoding it back to JSON, showing how to leverage Protobuf's benefits (smaller payload size, faster serialization, type safety) while maintaining existing HTTP infrastructure.

  16. 16
    Article
    Avatar of freecodecampfreeCodeCamp·30w

    How to Use Closures in Go

    Closures in Go are functions that capture and retain access to variables from their surrounding scope, even after the outer function has finished executing. The guide covers how Go's escape analysis moves captured variables to the heap, common pitfalls like the loop variable trap where all closures reference the same variable, and practical patterns including memoization, event handlers, and concurrent pipelines. It explains how to create closures through various methods, handle them safely in goroutines using channels or mutexes, and addresses memory implications of heap-allocated captured variables.

  17. 17
    Article
    Avatar of hnHacker News·30w

    Making a micro Linux distro

    A hands-on guide to building a minimal Linux distribution from scratch on RISC-V architecture using QEMU. Covers compiling the Linux kernel, creating an initramfs filesystem, writing init processes in C and Go, and using u-root to build a functional userspace with networking capabilities. Explains core OS concepts including kernel responsibilities, user space vs kernel space, the boot process, and how distributions layer infrastructure on top of the kernel.

  18. 18
    Article
    Avatar of threedotslabsThree Dots Labs·31w

    Durable Background Execution with Go and SQLite

    Durable execution guarantees correct program output despite system failures. This guide demonstrates implementing durable execution in Go using SQLite and Watermill by persisting input events immediately after validation, ensuring idempotent event handlers through database constraints and deduplication, and proving atomicity with chaos engineering tests. The approach uses SQLite's persistent storage as a drop-in replacement for ephemeral backends, combined with the outbox pattern and single-transaction handlers to achieve reliable recovery from network outages, service failures, and other interruptions.

  19. 19
    Article
    Avatar of javarevisitedJavarevisited·30w

    Top 5 Frontend Masters Courses to Learn Golang in 2026

    A curated list of five Frontend Masters courses for learning Go programming in 2026, ranging from fundamentals to production-ready web applications. The guide covers beginner courses on Go basics, advanced courses on building professional web applications, full-stack development with vanilla JavaScript, backend architecture patterns, and essential Linux command-line skills. Includes recommended learning paths for different career goals (beginner, full-stack, backend architecture, DevOps) and practical advice on maximizing the learning experience through hands-on projects and consistent practice.