@startuml
!include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Context.puml
' uncomment the following line and comment the first to use locally
' !include C4_Context.puml

LAYOUT_WITH_LEGEND()

title System Context diagram for AIND Data Transfer Service

Person(user, "User", "A scientist or engineer that wants to upload data to the cloud.")
System(transfer_service, "AIND Data Transfer Service", "Allows people to send job requests to compress (or transform) and upload raw data assets.")
System_Ext(aind_airflow_service, "AIND Airflow Service", "Receives job requests, does additional validation checks, submits and monitors jobs.")
System_Ext(slurm, "Slurm", "High performance computing cluster that runs data transformation and data upload jobs.")

Rel(user, transfer_service, "Uses", "web portal or REST API")
Rel_Back(user, aind_airflow_service, "Sends e-mails to", "SMTP")
Rel(transfer_service, aind_airflow_service, "Uses", "REST API")
Rel(aind_airflow_service, slurm, "Uses", "REST API")
@enduml
