title: “Development Operations & Site Reliability Engineering” linkTitle: “Development Operations & Site Reliability Engineering” description: “With fast build times, lean syntax, an automatic formatter and doc generator, Go is built to support both DevOps and SRE.” date: 2019-10-03T17:16:43-04:00 series: Use Cases books: icon: file: devops-green.svg alt: ops icon iconDark: file: devops-white.svg alt: ops icon

Overview {#overview .sectionHeading}

Go helps enterprises automate and scale

Development Operations (DevOps) teams help engineering organizations automate tasks and improve their continuous integration and continuous delivery and deployment (CI/CD) process. DevOps can topple developmental silos and implement tooling and automation to enhance software development, deployment, and support.

Site Reliability Engineering (SRE) was born at Google to make the company’s “large-scale sites more reliable, efficient, and scalable,” writes Silvia Fressard, an independent DevOps consultant. “And the practices they developed responded so well to Google’s needs that other big tech companies, such as Amazon and Netflix, also adopted them.” SRE requires a mix of development and operations skills, and “empowers software developers to own the ongoing daily operation of their applications in production.”

Go serves both siblings, DevOps and SRE, from its fast build times and lean syntax to its security and reliability support. Go's concurrency and networking features also make it ideal for tools that manage cloud deployment—readily supporting automation while scaling for speed and code maintainability as development infrastructure grows over time.

DevOps/SRE teams write software ranging from small scripts, to command-line interfaces (CLI), to complex automation and services, and Go’s feature set has benefits for every situation.

Key Benefits {#key-benefits .sectionHeading}

Easily build small scripts with Go’s robust standard library and static typing

Go’s fast build and startup times. Go’s extensive standard library—including packages for common needs like HTTP, file I/O, time, regular expressions, exec, and JSON/CSV formats—lets DevOps/SREs get right into their business logic. Plus, Go’s static type system and explicit error handling make even small scripts more robust.

Quickly deploy CLIs with Go’s fast build times

Every site reliability engineer has written “one-time use” scripts that turned into CLIs used by dozens of other engineers every day. And small deployment automation scripts turn into rollout management services. With Go, DevOps/SREs are in a great position to be successful when software scope inevitably creeps. Starting with Go puts you in a great position to be successful when that happens.

Scale and maintain larger applications with Go’s low memory footprint and doc generator

Go’s garbage collector means DevOps/SRE teams don’t have to worry about memory management. And Go’s automatic documentation generator (godoc) makes code self-documenting–lowering maintenance overhead and establishing best practices from the get-go.

{{projects `

  • company: Docker url: https://docker.com/ logoSrc: docker.svg logoSrcDark: docker.svg desc: Docker is a software-as-a-service (SaaS) product, written in Go, that DevOps/SRE teams leverage to “drive secure automation and deployment at massive scale,” supporting their CI/CD efforts. ctas:
  • company: Drone url: https://github.com/drone logoSrc: drone.svg logoSrcDark: drone.svg desc: Drone is a Continuous Delivery system built on container technology, written in Go, that uses a simple YAML configuration file, a superset of docker-compose, to define and execute Pipelines inside Docker containers. ctas:
  • company: etcd url: https://github.com/etcd-io/etcd logoSrc: etcd.svg logoSrcDark: etcd.svg desc: etcd is a strongly consistent, distributed key-value store that provides a reliable way to store data that needs to be accessed by a distributed system or cluster of machines, and it's written in Go. ctas:
  • company: IBM url: https://ibm.com/ logoSrc: ibm.svg logoSrcDark: ibm.svg desc: IBM’s DevOps teams use Go through Docker and Kubernetes, plus other DevOps and CI/CD tools written in Go. The company also supports connection to it’s messaging middleware through a Go-specific API. ctas:
  • company: Netflix url: http://netflix.com/ logoSrc: netflix.svg logoSrcDark: netflix.svg desc: Netflix uses Go to handle large scale data caching, with a service called Rend, which manages globally replicated storage for personalization data. ctas:
  • company: Microsoft url: https://microsoft.com/ logoSrc: microsoft_light.svg logoSrcDark: microsoft_dark.svg desc: Microsoft uses Go in Azure Red Hat OpenShift services. This Microsoft solution provides DevOps teams with OpenShift clusters to maintain regulatory compliance and focus on application development. ctas:
  • company: Terraform url: https://terraform.io/ logoSrc: terraform-icon.svg logoSrcDark: terraform-icon.svg desc: Terraform is a tool for building, changing, and versioning infrastructure safely and efficiently. It supports a number of cloud providers such as AWS, IBM Cloud, GCP, and Microsoft Azure - and it’s written in Go. ctas:
  • company: Prometheus url: https://github.com/prometheus/prometheus logoSrc: prometheus.svg logoSrcDark: prometheus.svg desc: Prometheus is an open-source systems monitoring and alerting toolkit originally built at SoundCloud. Most Prometheus components are written in Go, making them easy to build and deploy as static binaries. ctas:
  • company: YouTube url: https://youtube.com/ logoSrc: youtube.svg logoSrcDark: youtube.svg desc: YouTube uses Go with Vitess (now part of PlanetScale), its database clustering system for horizontal scaling of MySQL through generalized sharding. Since 2011 it’s been a core component of YouTube’s database infrastructure, and has grown to encompass tens of thousands of MySQL nodes. ctas:

Get Started {#get-started .sectionHeading}

Go books on DevOps & SRE

{{books `

{{libraries `