Get 'Go'ing with Microservices
summary
Builds a Go microservice that calculates unit price using protobufs and gRPC, generates Go clients/servers from .proto files, and serves on TCP port 20001 so BloomRPC can call calculateUnitPrice and return a fake value. Implements clients for cache, prices and fund services, uses Shopify decimal library, stubs those clients in tests, and exercises unit tests with stubs and a table-driven style. Code compiles, gRPC stubs work, and tests pass locally.
AI-written summary · about
chapters (22)
- 0:00Introduction
- 1:09About the speaker
- 2:13About Spaceship
- 4:02Microservices overview
- 5:09gRPC and protobufs
- 7:40Unit price calculation
- 11:13Service dependencies
- 13:40Setting up the project
- 14:43Creating proto files
- 22:32Generating service code
- 24:10Basic service implementation
- 30:02Running the service
- 31:50Connecting to clients
- 39:54Importance of testing
- 40:18Testing microservices
- 42:03Writing unit tests
- 48:19Refactoring tests
- 51:11Testing fund service
- 53:25Testing stock value
- 55:33Test cases and fixtures
- 59:57Table-driven tests
- 1:00:42Testing best practices
related talks
31mBuilding a microservices architecture with Go
38mMicroservices in Go using Micro
42mgRPC and Go: Developing Efficient and Type-Safe Services
24m"Building Scalable Microservices with Go"
59mBuilding Microservices w/gRPC & Kubernetes: A practical intro
51mMicroservices in Go
31mSuccessful Go for microservices architecture
01h 02mBuilding Microservice Architectures with Go
