title: “Go for Cloud & Network Services” linkTitle: “Cloud & Network Services” description: “With a strong ecosystem of tools and APIs on major cloud providers, it is easier than ever to build services with Go.” date: 2019-10-04T15:26:31-04:00 series: Use Cases icon: file: cloud-green.svg alt: cloud icon iconDark: file: cloud-white.svg alt: cloud icon
Overview {#overview .sectionHeading}
{{quote author: Ruchi Malik title: developer at Choozle link: https://builtin.com/software-engineering-perspectives/golang-advantages quote: | Go makes it very easy to scale as a company. This is very important because, as our engineering team grows, each service can be managed by a different unit.
}}
Key Benefits {#key-benefits .sectionHeading}
Address tradeoff between development cycle time and server performance
Go was created to address exactly these concurrency needs for scaled applications, microservices, and cloud development. In fact, over 75 percent of projects in the Cloud Native Computing Foundation are written in Go.
Go helps reduce the need to make this tradeoff, with its fast build times that enable iterative development, lower memory and CPU utilization. Servers built with Go experience instant start up times and are cheaper to run in pay-as-you-go and serverless deployments.
Address challenges with the modern cloud, delivering standard idiomatic APIs
Go addresses many challenges developers face with the modern cloud, delivering standard idiomatic APIs, and built in concurrency to take advantage of multicore processors. Go’s low-latency and “no knob” tuning make Go a great balance between performance and productivity - granting engineering teams the power to choose and the power to move.
Use Case {#use-case .sectionHeading}
Use Go for Cloud Computing
Go's strengths shine when it comes to building services. Its speed and built-in support for concurrency results in fast and efficient services, while static typing, robust tooling, and emphasis on simplicity and readability help build reliable and maintainable code.
Go has a strong ecosystem supporting service development. The standard library includes packages for common needs like HTTP servers and clients, JSON/XML parsing, SQL databases, and a range of security/encryption functionality, while the Go runtime includes tools for race detection, benchmarking/profiling, code generation, and static code analysis.
The major Cloud providers (GCP, AWS, Azure) have Go APIs for their services, and popular open source libraries provide support for API tooling (Swagger), transport (protocol buffers, gRPC), monitoring (OpenCensus), Object-Relational Mapping (gORM), and authentication (JWT). The open source community has also provided several service frameworks, including Go Kit, Go Micro, and Gizmo, which can be a great way to get started quickly.
Go tools for Cloud Computing
{{toolsblurbs `
- title: Docker url: https://www.docker.com/ iconSrc: /images/logos/docker.svg paragraphs:
- Docker is a platform-as-a-service that delivers software in containers. Containers bundle software, libraries, and config files, are hosted by a Docker Engine, and are run by a single operating-system kernel (utilizing less system resources than virtual machines).
- Cloud developers use Docker to manage their Go code and support multiple platforms, as Docker supports the development workflow and deployment process.
- title: Kubernetes url: https://kubernetes.io/ iconSrc: /images/logos/kubernetes.svg paragraphs:
- Kubernetes is an open-source container-orchestration system, written in Go, for automating web app deployment. Web apps are often built using containers (as noted above) packaged with their dependencies and configurations. Kubernetes helps deploying and managing those containers at scale. Cloud programmers use Kubernetes to build, deliver, and scale containerized apps quickly—managing the growing complexity via APIs that controls how the containers will run. `}}
{{projects `
- company: Google url: http://cloud.google.com/go logoSrc: google-cloud.svg logoSrcDark: google-cloud.svg desc: Google Cloud uses Go across its ecosystem of products and tools, including Kubernetes, gVisor, Knative, Istio, and Anthos. Go is fully supported on Google Cloud across all APIs and runtimes. ctas:
- company: Capital One url: https://www.capitalone.com/ logoSrc: capitalone_light.svg logoSrcDark: capitalone_dark.svg desc: Capital One uses Go to power the Credit Offers API, a critical service. The engineering team is also building their serverless architecture with Go, citing Go’s speed and simplicity, and mentioning that “[they] didn’t want to go serverless without Go.” ctas:
- company: Dropbox url: https://www.dropbox.com/ logoSrc: dropbox.svg logoSrcDark: dropbox.svg desc: Dropbox was built on Python, but in 2013 decided to migrate their performance-critical packends to Go. Today, most of the company’s infrastructure is written in Go. ctas:
- company: Mercado Libre url: https://www.mercadolibre.com.ar/ logoSrc: mercadolibre_light.svg logoSrcDark: mercadolibre_dark.svg desc: MercadoLibre uses Go to scale its eCommerce platform. Go produces efficient code that readily scales as MercadoLibre’s online commerce grows. Go improves their productivity while streamlining and expanding MercadoLibre services. ctas:
- company: The New York Times url: https://www.nytimes.com/ logoSrc: the-new-york-times-icon.svg logoSrcDark: the-new-york-times-icon.svg desc: The New York Times adopted Go “to build better back-end services”. As the usage of Go expanded with in the company they felt the need to create a toolkit to “to help developers quickly configure and build microservice APIs and pubsub daemons”, which they have open sourced. ctas:
- company: Twitch url: https://www.twitch.tv/ logoSrc: twitch.svg logoSrcDark: twitch.svg desc: Twitch uses Go to power many of its busiest systems that serve live video and chat to millions of users. ctas:
- company: Uber url: https://www.uber.com/ logoSrc: uber_light.svg logoSrcDark: uber_dark.svg desc: Uber uses Go to power several of its critical services that impact the experience of millions of drivers and passengers around the world. From their real-time analytics engine, AresDB, to their microservice for Geo-querying, Geofence, and their resource scheduler, Peloton. ctas:
Get Started {#get-started .sectionHeading}
Go books for cloud computing
{{books `
{{libraries `