Skip to content

Instantly share code, notes, and snippets.

@danielezonca
Created January 25, 2021 15:31
Show Gist options
  • Save danielezonca/cf650bd6caea2c73fcbfe2fca8419a3b to your computer and use it in GitHub Desktop.
Save danielezonca/cf650bd6caea2c73fcbfe2fca8419a3b to your computer and use it in GitHub Desktop.
title Counterfactual (message)
AuditUI->TrustyService:CounterfactualRequest
activate AuditUI
activate TrustyService
note over TrustyService:Add distribution data\n(if available)
database Kafka
TrustyService->Kafka:CounterfactualRequest(id)
AuditUI<-TrustyService:CounterfactualRequest(id)
deactivate AuditUI
deactivate TrustyService
Kafka->ExplainableService:CounterfactualRequest(id)
activate ExplainableService
ExplainableService->ExplainableService:PartialResult
ExplainableService->Kafka:PartialResult(id)
Kafka->TrustyService:PartialResult(id)
note over TrustyService:Store
AuditUI->TrustyService:PollingCounterfactual(id)
activate TrustyService
activate AuditUI
TrustyService->AuditUI:PartialResult(id)
deactivate AuditUI
deactivate TrustyService
ExplainableService->ExplainableService:FinalResult
ExplainableService->Kafka:FinalResult(id)
deactivate ExplainableService
Kafka->TrustyService:FinalResult(id)
note over TrustyService:Store
AuditUI->TrustyService:PollingCounterfactual(id)
activate TrustyService
activate AuditUI
TrustyService->AuditUI:FinalResult(id)
deactivate AuditUI
deactivate TrustyService
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment