Skip to main content
grasp.study
About
Explore
Pricing
Log in
Try it for free
Back to course
👋
Welcome to a Grasp lesson
Create a free account
to keep studying and create your own study path.
Go advanced projects, Kafka, PostgreSQL
·
Module 10
Performance Analysis and Optimization
1
Benchmarking Producer Throughput with testing.B
Write a benchmarking suite using testing.B to measure producer throughput under concurrent load.
2
Benchmarking End-to-End Message Latency
Extend the benchmark suite to measure end-to-end message latency from produce to consume.
3
Profiling Broker Performance with pprof
Instrument the broker with pprof endpoints for live CPU and memory profiling.
4
Profiling CPU Hotspots with pprof
Use pprof to capture and analyze a CPU profile to identify performance hot spots.
5
Profiling Memory Usage with pprof
Use pprof to capture and analyze a heap profile to identify memory allocation patterns and potential goroutine leaks.
Detecting Data Races with the Go Race Detector
Detect and fix data races in concurrent code by running tests with the '-race' flag.
7
Profiling-Driven Optimization and Verification
Apply one targeted optimization based on profiling data and verify its impact using existing benchmarks.
Previous module
Ensuring Reliability: Acknowledgements and Retention
Next module
Building the CLI and Deploying the System