Designing a contract data service: exactly-once ingestion and sub-50ms reads

A systems design write-up of a contract data service: workflow-engine ingestion, Redis locks, MySQL reads under 50 ms, batch mode, and AI-extracted facts.

Ingest, exactly once Documents Workflow Extract Callers gRPC API Read model Read, under 50 ms Facts in MySQL
Two lines, one store of facts. Ingest runs each contract exactly once. Reads come back in under 50 ms.