Invoice sync — Target architecture

flowchart LR
  Q["Service Bus queue"] --> W["wf-invoice-sync"]
  W --> C{"Amount > 10k?"}
  C -- yes --> CC["Credit check API"]
  C -- no --> T["Topic: invoice-sync"]
  CC --> T
  W --> DB["Azure SQL"]