FastAPI Async Event Loop.
The OMEGA Gateway is a massive ~105,500 LOC Python backend exposing ~390 FastAPI routes. Designed to run on embedded Linux (e.g. Raspberry Pi 5) deployed directly at the coastal shore, it acts as the master ingestion point for the entire Delay Tolerant Network.
Database Architecture: Telemetry arrives asynchronously via UDP and Serial ports at massive volumes. A standard SQLite configuration would instantly lock and crash under this concurrent write pressure. The Python backend physically rewrites the SQLite PRAGMA at boot, enforcing Write-Ahead Logging (WAL) mode and NORMAL synchronous behavior. This decouples the read/write locks, allowing the Mission Portal to execute massive SELECT queries over the historical arrays while the edge node bridges concurrently INSERT live TLV frames without blocking.
Heavy normalization operations are relegated to Starlette background tasks, ensuring the endpoint returns a 202 Accepted instantly.