Tech Talk

How to Leverage Go for Your Networking Needs

Published on November 11, 2020

Sneha Inguva

How to Leverage Go for Your Networking Needs


About the Talk

This session highlights Sneha Inguva’s networking journey through Go. She discusses the useful packages, key learnings, and struggles faced while building a variety of networking services within and outside of DigitalOcean. Walk away with a clear understanding of how to specifically leverage Go for your own networking needs.

What You’ll Learn

  • How to leverage Go’s net package and several open-source packages to build common networking primitives such as load balancers, port scanners, and DHCP servers
  • Go’s packages for leveraging various connections (Unix sockets, raw sockets, and packet sockets) to send packets or frames
  • Networking protocols used by the aforementioned services
  • Concurrency benefits of Go and struggles of testing networking services


Sneha’s Networking Journey Through Go

“My foray into Go began a few years ago when I started working at DigitalOcean. While building an abstraction layer on top of Kubernetes and familiarizing myself with the language, I began to love it. Syntactically simple, with amazing concurrency primitives and a wonderful community, Go was an excellent choice for a cloud-hosting company with a variety of low-level, server-side microservices.

Two year ago, however, I joined the software-defined networking team and learned of another application of Go; networking services. The networking team at DigitalOcean uses Go for a variety of purposes — from DHCP servers to IP address management services, to even wrappers around virtual switch tooling. Intrigued, I decided to also investigate how Go could be used to build other services such as port scanners and load-balancers.

This session highlights my networking journey via Go. I discuss useful packages, key learnings, and even struggles faced while building a variety of networking services within and outside of DigitalOcean. I discuss both relevant packages within the standard library and open-source packages used to implement key network protocols. Through this talk, I hope you gain an understanding of how to specifically leverage Go for your own networking needs.”

About the Presenter

Sneha Inguva is a Software Engineer on the networking team at DigitalOcean. She enjoys building cloud products by day and debugging ominous context-cancelled errors by night. Interestingly, her journey through this fantastical field has taken her from casino gaming to 3D printing startups. In her spare time, she professionally lounges about with her cat while WFH.

Thanks for learning with the DigitalOcean Community. Check out our offerings for compute, storage, networking, and managed databases.

Learn more about our products

About the authors
Default avatar
Sneha Inguva


Still looking for an answer?

Ask a questionSearch for more help

Was this helpful?
Leave a comment

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Join the Tech Talk
Success! Thank you! Please check your email for further details.

Please complete your information!

Featured on Community

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel