Cover of Go Programming Cookbook, Second Edition

EPUB · English

Go Programming Cookbook, Second Edition

    Price and availability

    $31.99

    Available in: Andorra, Austria, Australia, Belgium, Bulgaria, Canada, Switzerland, Cyprus, Czechia, Germany, Denmark, Estonia, Spain, Finland, France, United Kingdom, Guernsey, Greece, Croatia, Hungary, Ireland, Isle of Man, Iceland, Italy, Jersey, Japan, Liechtenstein, Lithuania, Luxembourg, Latvia, Monaco, Malta, Netherlands, Norway, Poland, Portugal, Romania, Sweden, Slovenia, Slovakia, San Marino, United States, Vatican City, South Africa

    Stores: US, UK, Canada, EU, Australia.

    Sign in to buy

    The price is re-checked by the server before payment.

    For personal use under the eBook licence.

    Format
    EPUB
    DRM
    Not stated by the publisher
    Language
    English
    Publisher
    Distributed via Draft2Digital
    Published
    27 August 2026
    ISBN
    9798235142374
    Subjects

    About this book

    With Go 1.25, you get a runtime that reads the CPU quota of its own container, a standard library that closes long-standing gaps in filesystem safety and JSON handling, and a testing package that makes concurrent behaviour deterministic. And this second edition puts all of it to excellent use.This book is all about building one system, rather than a bunch of snippets in a folder. This means you can size a connection pool based on its own statistics, run 40,000 jobs on a fixed number of goroutines, retry serialisation conflicts without corrupting a ledger, and hold tens of thousands of open connections without exhausting file descriptors. Each recipe tackles a real problem, and then there's the simplest code to solve it, along with the reasoning behind when to use it again. Whether you're a developer who's already got some experience with Go and now needs it to get by in production, we've got you covered. Key LearningsSize worker pools and concurrency limits from measured CPU and memory budgetsConfine untrusted file paths so traversal attacks fail in the kernelTest 30 secs timeouts in milliseconds using testing/synctest and its virtual clockPropagate one timeout budget across every service hop without starving downstream callersRetry serialisation conflicts and deadlocks safely with bounded, jittered transaction backoffFind goroutine leaks from a profile and prove their absence in testsRead escape analysis and pprof profiles to remove the allocations that matterDrain response bodies so HTTP connections return to the pool and stay reusedShip schema changes across rolling updates using expand, switch, and contract releasesHarden services with govulncheck, minimal images, and secrets that never touch disk Table of ContentUp and Running with Go 1.25Go Advanced and ConcurrencyFile Handling and Data ProcessingBuilding and Managing Go APIsRPC and gRPC ServicesAutomation and Concurrency at ScaleMicroservices ArchitectureStrengthening Database InteractionsPerformance, Profiling and Resource ManagementNetworking, Protocols and Security Target ReadersThis book is for every Go programmer who wants to bring error-free performance, immediate troubleshooting to issues, better reliability and active security. All you need is basics of Go and nothing beyond to pursue this book.

    Bibliographic data © Gardners Books Ltd.