-
Book Overview & Buying
-
Table Of Contents
Practical Systems Programming in Go
By :
Go's simplicity and strong performance make it an excellent choice for developing web services — especially since its built-in context package provides a clean way to manage request lifecycles, cancellations, and timeouts across distributed systems. With its powerful net/http package and efficient concurrency model, you can go from handling a single HTTP request to running a complete web service in just a few lines of code. Rather than enforcing strict concurrency control, the context package provides a lightweight and flexible way to pass signals across goroutines. It is up to your code to cooperate by listening to these signals and respecting time limits when appropriate. In this chapter, we explore how to create and manage HTTP servers and clients, build a proxy server, and learn how to profile and monitor web applications for performance insights. You will also put these skills into practice by developing a simple yet functional note-taking REST...