Concurrency in Go (Paperback)
Christopher J. Chaplin
Sold by CitiRetail, Stevenage, United Kingdom
AbeBooks Seller since 29 June 2022
New - Soft cover
Condition: New
Ships from United Kingdom to U.S.A.
Quantity: 1 available
Add to basketSold by CitiRetail, Stevenage, United Kingdom
AbeBooks Seller since 29 June 2022
Condition: New
Quantity: 1 available
Add to basketPaperback. Does your application freeze under heavy load? Do your users complain about slow response times? Are you afraid of starting a new goroutine because you've heard horror stories about "data races" and "goroutine leaks"?If so, you're not alone. Concurrency is one of the most difficult topics in programming. In many languages, it's an "expert-only" feature, full of traps that can crash your entire application.But Go was built to change this. Go's core philosophy is: "Don't communicate by sharing memory; instead, share memory by communicating."This simple shift in thinking is the key to writing clean, safe, and efficient code. In this book, I'll guide you through that mental shift. I won't just show you what to type; I'll show you why you're typing it. We will move from a simple "Hello, Goroutine!" to building complex, fault-tolerant systems that can gracefully handle thousands of requests, all without fear.What's InsideThis book is packed with practical examples, code walkthroughs, and real-world patterns. You will learn: The Foundation: The critical difference between concurrency (managing tasks) and parallelism (doing tasks).Goroutines & WaitGroups: How to launch goroutines with the go keyword and how to correctly wait for them to finish using sync.WaitGroup.Channels: A deep dive into Go's "pipes." We'll cover buffered vs. unbuffered channels, directional channels, and how to use for range to process data streams.The select Statement: How to manage multiple channels at once, implement timeouts, and build responsive workers.Traditional Concurrency: When not to use a channel. You'll learn to use sync.Mutex and sync.RWMutex to protect shared state.The context Package: This is the most important tool for building reliable servers. You'll master cancellation, timeouts, and deadlines to prevent goroutine leaks forever.Production-Ready Patterns: We'll build a Worker Pool, a Rate Limiter, a Circuit Breaker, and use the powerful errgroup package to manage parallel tasks.Testing & Debugging: How to prove your code is safe with Go's "superpower," the Race Detector. You'll also learn to find leaks with pprof and measure your speed with benchmarks.Who It's Meant ForI wrote this book for you if: You are a Go developer who is comfortable with the language basics (structs, functions, interfaces) but feels "stuck" or "intimidated" when it comes to the go keyword.You are a backend engineer who needs to build high-performance APIs, microservices, or data pipelines that can handle high throughput.You are a developer from another language (like Python, Java, or C#) and find traditional multi-threading to be complex, difficult, and full of bugs.Stop guessing about concurrency. Stop worrying about data races and mysterious crashes. The ability to write safe, fast, and concurrent code is what separates a good Go programmer from a great one.This book provides the tools, the patterns, and the mental models you need to write concurrent code with confidence.Your journey to building truly professional, high-performance Go applications starts right here. Let's get started. This item is printed on demand. Shipping may be from our UK warehouse or from our Australian or US warehouses, depending on stock availability.
Seller Inventory # 9798271760556
Does your application freeze under heavy load? Do your users complain about slow response times? Are you afraid of starting a new goroutine because you've heard horror stories about "data races" and "goroutine leaks"?
If so, you're not alone. Concurrency is one of the most difficult topics in programming. In many languages, it's an "expert-only" feature, full of traps that can crash your entire application.
But Go was built to change this. Go's core philosophy is:
"Don't communicate by sharing memory; instead, share memory by communicating."
This simple shift in thinking is the key to writing clean, safe, and efficient code. In this book, I'll guide you through that mental shift. I won't just show you what to type; I'll show you why you're typing it. We will move from a simple "Hello, Goroutine!" to building complex, fault-tolerant systems that can gracefully handle thousands of requests, all without fear.
What's Inside
This book is packed with practical examples, code walkthroughs, and real-world patterns. You will learn:
I wrote this book for you if:
Stop guessing about concurrency. Stop worrying about data races and mysterious crashes. The ability to write safe, fast, and concurrent code is what separates a good Go programmer from a great one.
This book provides the tools, the patterns, and the mental models you need to write concurrent code with confidence.
Your journey to building truly professional, high-performance Go applications starts right here. Let's get started.
"About this title" may belong to another edition of this title.
Orders can be returned within 30 days of receipt.
If you are a consumer you can withdraw from the contract in accordance with the following. Consumer means any natural person who is acting for purposes which are outside his trade, business, craft or profession.
Information regarding the right of withdrawal
Statutory right to withdraw
You have the right to withdraw from this contract within 14 days without giving any reason.
The withdrawal period will expire after 14 days from the day on which you acquire, or a third party other than the carrier and indicated by you acquires, physical possession of the last good or the last lot or piece.
To exercise the right of withdrawal, electronically fill in and submit a clear statement on our website, under "My Purchases" in "My Account". We will communicate to you an acknowledgement of receipt of such a withdrawal on a durable medium (e.g. by e-mail) without delay.
To meet the withdrawal deadline, it is sufficient for you to send your communication concerning your exercise of the right of withdrawal before the withdrawal period has expired.
Effects of withdrawal
If you withdraw from this contract, we will reimburse to you all payments received from you, including the costs of delivery (except for the supplementary costs arising if you chose a type of delivery other than the least expensive type of standard delivery offered by us).
We may make a deduction from the reimbursement for loss in value of any goods supplied, if the loss is the result of unnecessary handling by you.
We will make the reimbursement without undue delay, and not later than 14 days after the day on which we are informed about your decision to withdraw from this contract.
We will make the reimbursement using the same means of payment as you used for the initial transaction, unless you have expressly agreed otherwise; in any event, you will not incur any fees as a result of such reimbursement.
We may withhold reimbursement until we have received the goods back, or you have supplied evidence of having sent back the goods, whichever is the earliest.
You shall send back the goods or hand them over to CitiRetail, Stevenage, United Kingdom, without undue delay and in any event not later than 14 days from the day on which you communicate your withdrawal from this contract to us. The deadline is met if you send back the goods before the period of 14 days has expired. You will have to bear the direct cost of returning the goods. You are only liable for any diminished value of the goods resulting from the handling other than what is necessary to establish the nature, characteristics and functioning of the goods.
Exceptions to the right of withdrawal
The right of withdrawal does not apply to:
Please note that titles are dispatched from our US, Canadian or Australian warehouses. Delivery times specified in shipping terms. Orders ship within 2 business days. Delivery to your door then takes 7-14 days.
| Order quantity | 7 to 60 business days | 7 to 14 business days |
|---|---|---|
| First item | £ 37.00 | £ 37.00 |
Delivery times are set by sellers and vary by carrier and location. Orders passing through Customs may face delays and buyers are responsible for any associated duties or fees. Sellers may contact you regarding additional charges to cover any increased costs to ship your items.