CDCgov / prime-reportstream

ReportStream is a public intermediary tool for delivery of data between different parts of the healthcare ecosystem.
https://reportstream.cdc.gov
Creative Commons Zero v1.0 Universal
72 stars 40 forks source link

Investigate Azure Event Grid Integration #16262

Open arnejduranovic opened 1 month ago

arnejduranovic commented 1 month ago

DevSecOps Issue

Summary

16237 created a new Azure Function using Blob Trigger to support SFTP ingestion into RS. The Blob Trigger documentation (linked above) notes the following:

Warning Storage logs are created on a "best effort" basis. There's no guarantee that all events are captured. Under some conditions, logs may be missed.

While we don't think we will see this issue any time soon, due to our relatively low volume, we would like to move to the more reliable Azure Event Grid alternative as we scale up.

The Azure Event Grid documentation shows the following diagram, the top flow being our exact use case:

Screenshot 2024-10-18 at 3 49 54 PM

The request for DevOps is to:

  1. Look into what it would take to create Azure Event Grid resource for all environments and give an estimate of size of work
  2. Estimate how long it would take to set Azure Event Grid up for staging (and connect it to the external SFTP bucket) so app devs can try connecting to it
  3. Calculate cost estimates

Environment

Priority

Blocks the following

Blocked by the following

Contact

Team: Platform

Slack Team Channel: prime-reportstream-pipeline

Slack Contact (Full Name): Arnej

Technical Team Lead: Arnej

Definition of Done

devopsmatt commented 6 days ago

@arnejduranovic - https://docs.google.com/document/d/1sdgEx9ssbQypzo8naMkEhBL9NLjvWzTA4KrYeRYZ44w/edit?usp=drive_link