
At a Glance
528 Pages
23.39 x 15.6 x 3.63
Paperback
RRP $49.50
$46.99
or 4 interest-free payments of $11.75 with
orShips in 5 to 7 business days
Go was born out of necessity, a need to evolving maintainable infrastructure. Introductory material on Go is great (and there are lots of resources on it, more than I can keep up with!), but I find advanced function design and production-grade patterns getting lost. This book fills that gap.
This book is the fruit of many years of hands-on experience developing scalable online businesses and cloud solutions. I prioritize these topics not because of any random whims, but because these concepts are the ones that make or break production systems and more importantly provide a breeding ground for very expensive bugs and ongoing maintenance complexities.
In this book, you'll learn:
- Advanced function design patterns that promote code reuse and maintainability
- Practical concurrency patterns for real-world applications
- Techniques on memory management and performance optimizations
- Coding styles, ideals, techniques that are used in production
- Testing strategies for complex systems
- Scalable error handling patterns
- Debugging and profiling tools and techniques
Most importantly, you won't just learn how to write these patterns, but when and why to do so. This means that every chapter adds on to the concepts already covered, resulting in a thorough understanding of advanced Go development.
Although this book may be read cover-to-cover, each chapter stands alone
as well. If you're dealing with a particular challenge, jump to the chapter
that speaks to that challenge. However, the chapters are ordered to build
on each other, particularly in the progression from function design to
concurrency patterns.
The code examples in this book are practical and inspired by real-life situ-
ations. While they aim to reflect production-like scenarios and highlight
common pitfalls and solutions, they haven't been battle-tested. You're
encouraged to type out and experiment with the code as you read.
Book GitHub Repository
The code examples in this book are available on GitHub. You can find the
repository at:
https://github.com/rezmoss/go-at-scale
About the Author
Rez Moss has more than ten years of experience creating and deploying
Go applications in production. He is a Senior Go Developer, Cloud Ar-
chitect with systems he has architected highâ'traffic cloud systems and
microservices powering critical business operations. His expertise spans:
⢠High-performance Go applications
⢠Cloud-native architectures
⢠Distributed systems
⢠Performance optimization
⢠Production debugging and monitoring
Currently focused on serverless architectures and cloud-native patterns,
Rez regularly contributes to the Go community through open-source
projects, technical talks, and mentoring.
Connect with the author:
⢠Website: rezmoss.com
⢠Email: hi@rezmoss.com
⢠GitHub: github.com/rezmoss
Acknowledgments
This book stands on the shoulders of giants. Thanks to the Go team for
creating such an exceptional language, and to the broader Go community
for their continuous contributions and insights.
My last thank you is to my family, for their patience and support in the
writing process, and to my colleagues who have had hours of discussions
about Go patterns and practices.
Let us dive into advanced golang programming.
Table of Contents
Preface - Why This Book? ⢠Who This Book Is For ⢠What You'll Learn ⢠How to Read This Book ⢠GitHub Repository ⢠About the Author ⢠Acknowledgments ⢠Note to the Reader
Chapter 1: Function Fundamentals Revisited - First-Class Functions ⢠Function Types and Signatures ⢠Anonymous Functions & Closures ⢠Function Options Pattern ⢠Error Handling Patterns
Chapter 2: Higher Order Functions - Composition ⢠Decorators & Middleware ⢠Pipeline Functions ⢠Generic Functions ⢠Type Parameters
Chapter 3: Functional Programming Patterns - Pure Functions ⢠Immutability ⢠Map-Reduce-Filter ⢠Monadic Patterns ⢠Memoization
Chapter 4: Goroutine Patterns - Lifecycle Management ⢠Worker Pools ⢠Fan-Out/Fan-In ⢠Rate Limiting ⢠Backpressure
Chapter 5: Channel Patterns - Channel Design ⢠Pipelines ⢠select & Multiplexing ⢠Done Channels ⢠Error Handling
Chapter 6: Synchronization Patterns - Mutex vs Channel ⢠sync.WaitGroup ⢠Context ⢠Atomics ⢠Deadlock Prevention
Chapter 7: Code Organization - Package Design ⢠Interfaces ⢠Dependency Injection ⢠Testing ⢠Error Handling
Chapter 8: Design Patterns in Go - Creational (Factory, Builder, Singleton) ⢠Structural (Adapter, Decorator, Proxy) ⢠Behavioral (Observer, Strategy, Command)
Chapter 9: Production-Ready Code - Optimization ⢠Memory & Profiling ⢠Logging ⢠Config Management ⢠Graceful Shutdown ⢠Security
Chapter 10: GraphQL Patterns - Schema Design ⢠Resolvers ⢠DataLoader ⢠Subscriptions ⢠Caching ⢠Security
Chapter 11: Event-Driven Architecture - Core Event Flow ⢠Event Sourcing ⢠CQRS ⢠Projection ⢠Streaming ⢠Testing
Chapter 12: Microservices Communication - Sync/Async Patterns ⢠Service Discovery ⢠Circuit Breaking ⢠Tracing ⢠API Versioning
Chapter 13: Disaster Recovery - Backup ⢠Replication ⢠Failover ⢠Validation ⢠Testing
Chapter 14: Data Migration - Zero-Downtime ⢠Schema Evolution ⢠Data Validation ⢠Monitoring ⢠Rollbacks
Appendix A: Go Tooling - Profiling ⢠Race Detection ⢠Code Generation ⢠Module Management ⢠Analysis Tools
Appendix B: Typical Mistakes - Memory ⢠Goroutine Leaks ⢠Concurrency ⢠Testing
Appendix C: Real-World Go Application - Architecture ⢠DB Patterns ⢠Caching ⢠Auth ⢠Observability ⢠Deployment
Appendix D: Pattern Decision Trees - Concurrency ⢠Error Handling ⢠Storage ⢠APIs ⢠Microservices
Appendix E: Pattern Comparison Matrices - Concurrency ⢠Error Handling ⢠API Design
Appendix F: Anti-pattern Catalogs - Concurrency ⢠Interfaces ⢠Performance ⢠Testing
List of Abbreviations
Glossary of Terms
ISBN: 9781069363008
ISBN-10: 1069363006
Published: 10th June 2025
Format: Paperback
Language: English
Number of Pages: 528
Audience: General Adult
Publisher: CloudAid
Dimensions (cm): 23.39 x 15.6 x 3.63
Weight (kg): 0.98
Shipping
| Standard Shipping | Express Shipping | |
|---|---|---|
| Metro postcodes: | $9.99 | $14.95 |
| Regional postcodes: | $9.99 | $14.95 |
| Rural postcodes: | $9.99 | $14.95 |
Orders over $89.00 qualify for free shipping.
How to return your order
At Booktopia, we offer hassle-free returns in accordance with our returns policy. If you wish to return an item, please get in touch with Booktopia Customer Care.
Additional postage charges may be applicable.
Defective items
If there is a problem with any of the items received for your order then the Booktopia Customer Care team is ready to assist you.
For more info please visit our Help Centre.
You Can Find This Book In

Designing Data-Intensive Applications
The Big Ideas Behind Reliable, Scalable, and Maintainable Systems
Paperback
RRP $133.00
$64.75
OFF

Foundations of High Performance Computing
A Comprehensive Guide to Systems, Concepts, and Programming
Paperback
RRP $381.95
$338.75
OFF

Learning Generative AI Tools for Excel
Speed Up Your Everyday Tasks with Microsoft Excel, Copilot, ChatGPT, and Beyond
Paperback
RRP $114.00
$55.75
OFF

Head First Python
3rd Edition - A Learner's Guide to the Fundamentals of Python Programming, a Brain-Friendly Guide
Paperback
RRP $125.50
$100.40
OFF




















