Автор: Bartlomiej Plotka
Издательство: O’Reilly Media, Inc.
Год: 2022-09-12
Страниц: 523
Язык: английский
Формат: epub (true), mobi
Размер: 14.5 MB
Software engineers today typically put performance optimizations low on the list of development priorities. But despite significant technological advancements and lower-priced hardware, software efficiency still matters. With this book, Go programmers will learn how to approach performance topics for applications written in this open source language.
How and when should you apply performance efficiency optimization without wasting your time? Author Bartlomiej Plotka provides the tools and knowledge you need to make your system faster using fewer resources. Once you learn how to address performance in your Go applications, you'll be able to bring small but effective habits to your programming and development cycle.
Go is efficient, scalable, and productive. Some programmers find it fun to work in; others find it unimaginative, even boring, ... those are not contradictory positions. Go was designed to address the problems faced in software development at Google, which led to a language that is not a breakthrough research language but is nonetheless an excellent tool for engineering large software projects. I am a huge fan of the Go programming language. The number of things developers around the world were able to achieve with Go is impressive. It is used in many businesses, including bigger tech companies like Apple, American Express, Cloudflare, Dell, Google, Netflix, Red Hat, Twitch and more.
Of course, as with everything, nothing is perfect. I would probably change, remove or add a few things to Go, but If you would wake me up in the middle of the night and ask to write quickly, reliable backend code, I would write it in Go. CLI? In Go. Quick, reliable script? In Go as well. The first language to learn as a junior programmer? Go. Code for IoT, robots and microprocessors? The answer is also Go.1 Infrastructure configuration? As of 2022, I don’t think there is a better tool for robust templating than Go too.
This book shows you how to:
Continuously monitor for performance and efficiency regressions
Find the root cause of performance bottlenecks using metrics, logging, tracing, and profiling
Use tools like pprof, go test, benchstat and k6.io to create reliable micro- and macro-benchmarks
Improve and optimize your code to meet your goals without sacrificing simplicity and readability
Make data-driven decisions by prioritizing changes that make a difference
Introduce basic "performance hygiene" in day-to-day Go programming and testing
Скачать Efficient Go Data-Driven Performance Optimizations (Sixth Early Release)