1@startuml Clearing-via-Marqeta 2autonumber "<b> [00]" 3 4Title Clearing via Marqeta 5 6box "External Network" 7participant "Scheme" as sch 8participant "Marqeta" as mar 9end box 10 11box "Bankable - DMZ VLAN" 12participant "Firewall\nWAN/DMZ" 13participant "Loadbalancer/WAF" as lb 14participant "Firewall\nDMZ/Private" 15end box 16 17box "Bankable - Private VLAN" 18participant "Firewall\nPrivate/DMZ" 19participant "HAProxy" as ws 20participant "card-event-listener-service" as cels 21participant "Database" as db 22participant "clearing-service" as c 23participant "Processor" as p 24participant "HSM\n172.18.0.26" as hsm 25participant "Storage" as s 26participant "Firewall\nPrivate/VPN" 27end box 28 29group Scheme\Processor 30sch->mar: Send clearing instructions 31end group 32 33group TLS 34mar->ws: Send clearing instruction 35end group 36 37ws->cels: Send clearing instruction 38cels->db: insert clearing instruction to the database 39 40c<->db: retrive clearing instructions from database (polling) 41c<->hsm: get token for PAN 42c->db: insert clearing instructions to database 43 44c<->db: process clearing instructions 45 46c->p: initiate settlement 47 48 49@enduml 50