Write Once, Use Many - A Handy Package to Call Internal HTTP APIs
Offered By: Gopher Academy via YouTube
Course Description
Overview
Explore a powerful package for making consistent, simple, and easily maintainable internal HTTP API calls in Go. Learn about Bitly's system architecture, standard library HTTP calls, and how to encapsulate functionality into a reusable package. Discover the inner workings of the 'bitlyservice' package, including service discovery, application startup, and service validation. Gain insights into unit testing with hooks and the intricacies of HTTP calls. This GopherCon 2020 talk by Michael Richman provides a comprehensive look at streamlining internal service communication in Go applications.
Syllabus
Intro
Bitly System Architecture
Standard lib HTTP calls
Solution - Encapsulate it all into a reusable package
Under the covers - bitlyservice does all the work
bitlyservice. NewRequest() - What does it do?
First piece: Service Discovery
Application Startup
Service Validation - MustAddNamedAPI()
Unit testing with hooks
The HTTP call and all things surrounding it
Climbing back out...
Taught by
Gopher Academy
Related Courses
A Holistic Go ExperienceGopher Academy via YouTube Safe, Fast, and Easy - Building a Plugin System with WebAssembly
Gopher Academy via YouTube A Journey Through Integration Testing with Go - What Could Go Wrong?
Gopher Academy via YouTube Kraken Wrangling for Dummies - Go Module Dependency Management at Scale
Gopher Academy via YouTube Go, the Data Engineer's Missing Tool?
Gopher Academy via YouTube