© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2023
N. TolaramSoftware Development with Gohttps://doi.org/10.1007/978-1-4842-8731-6_9

9. Simple Networking

Nanik Tolaram1  
(1)
Sydney, NSW, Australia
 
In this chapter, you will learn how to write networking code using Go. You will understand how to write client and server code for the TCP and UDP protocols. You will also look at writing a network server that can process requests concurrently using goroutines. By the end of the chapter, you will know how to do the following:
  • Write a network client for TCP and UDP

  • Write a network server for TCP and UDP

  • Use goroutines to process requests

  • Load test a network server

Source Code

The source code for this chapter is available ...

Get Software Development with Go: Cloud-Native Programming using Golang with Linux and Docker now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.