Skip to main content
Status: Accepted Decision date: 2025-08-01 Implementation: Confirmed in the repository at commit 27045ec.

Context and decision drivers

Report generation and email delivery are sequential steps that may take time and fail independently. The service was intended for low request volume and small scale. The team wanted a simple setup with persisted workflow state and a way for callers to check progress.

Options considered

Decision and rationale

Use an Azure Durable Functions orchestration with separate report-generation and email activities. This meets the workflow need without introducing a separate messaging platform for the expected volume. As part of this solution, the report-generation activity uploads the PDF to the report-files Blob container and the email activity downloads it. Blob Storage is an artifact handoff within this decision, rather than a separate ADR.

Consequences

  • The workflow has persisted execution state and a status response for callers.
  • The activities can access the same PDF without relying on a shared local file system.
  • The service depends on Durable Functions storage and Blob Storage.
  • PDF retention, cleanup, and access controls need an operational policy.
  • Failure handling and orchestration replay behavior need explicit verification.

Implementation evidence

The orchestrator starts both activities and returns a status response. The report service uploads the PDF. The email activity downloads the PDF before sending it.

Revisit when

Reconsider the orchestration or artifact handoff if report volume, workflow complexity, retention requirements, or recovery requirements exceed this approach.