Understand the TurboAPI component layers
mainTurboAPI is composed of three primary layers:
- Python Layer (
python/turboapi/): Provides a FastAPI-compatible interface. It includesTurboAPI(base class),ZigIntegratedTurboAPI(handles Zig integration and handler classification), andNativeIntegratedTurboAPI. - Zig Core (
zig/src/): The high-performance engine. It includes the TCP server, a Radix trie router, the Python C-API bridge (py.zig), and thedhi_validator.zigfor pre-GIL validation. - Build System (
zig/build.zig): Manages the compilation of the C extension, linking against Python anddhilibraries.