Overview
Explore the concept of black box debugging in Python through this insightful PyCon US talk. Learn how to implement low footprint, encoded debug logs in production code to increase bug detection without impacting performance. Discover the unexpected benefits of using In-Memory NoSQL databases for persistent logging. Examine the black box architecture, state machine implementation, and encoded logging techniques. Gain practical insights into logging strategies, database write optimizations, and the overall architecture of this innovative debugging approach. Understand how this method can help diagnose production issues without requiring additional logs or bug recurrence, potentially saving time and resources in troubleshooting complex Python applications.
Syllabus
Intro
Airplane Black Boxes are
Black Box Architecture
The State Machine - Miniature Version
Example
The encoded Logging - Create a mapping Table
The log files will look like
Black Box Debugging - Things we need at our end
Some Logging Strategies
To be able to behave like Black Box
The Architecture
Second Try - SQL Database Write
After Third Try - NoSQL In-Memory Database Write
NoSQL In-Memory Database write - Further Optimization
Taught by
PyCon US