Goroutines and Networking
This lesson flashes back to the standard operations and their syntaxes defined on goroutines and networking.
We'll cover the following...
A rule of thumb if you use parallelism to gain efficiency over serial computation:
"The amount of work done inside goroutines has to be much larger than the costs associated with creating goroutines and sending data back and forth between them."
- Using buffered channels for performance: A buffered channel can easily double its throughput depending on the context, and the performance gain can be 10x or more. You can further try to optimize by adjusting the capacity of the channel.
- Limiting the number of items in a channel and packing them in arrays: Channels become a bottleneck if you pass a lot of