Download event, status, and trace data are sent to Datadog / audit path
11. Build final response
Document service returns file response to BFF
12. Return file payload
BFF returns final download response to the frontend
13. Deliver file to user
UI starts the authorized file download for the user
Controlled download path: The browser never reads storage directly. Download actions are mediated through the BFF and Document Management Service.
Separated resolution path: Metadata is resolved from DocumentDB first, then binary content is retrieved from ADLS Gen2 using the backend-controlled reference.
Auditable access: Download events, failures, and success outcomes are observable through Datadog and audit-oriented backend logging.
User actionFrontend / returned fileBFF orchestrationDocument service logicMetadata lookupFile retrievalObservability / audit