schema_version: 1 diagram_type: architecture meta: title: Containers output: containers.html decisions: [postgres-as-source-of-truth] components: - ref: customer pos: [40, 160] size: [130, 60] - ref: web pos: [250, 160] size: [130, 60] - ref: api pos: [460, 160] size: [130, 60] - ref: cache pos: [670, 60] size: [130, 60] - ref: db pos: [670, 260] size: [130, 60] - ref: queue pos: [460, 360] size: [130, 60] decisions: [queue-between-api-and-worker] - ref: worker pos: [670, 460] size: [130, 60] boundaries: - kind: region label: Online Shop wraps: [web, api, cache, db, queue, worker] connections: - { from: customer, to: web, label: HTTPS, variant: emphasis } - { from: web, to: api, label: JSON } - { from: api, to: cache, label: read } - { from: api, to: db, label: SQL } - { from: api, to: queue, label: enqueue, labelAt: [560, 290], decisions: [queue-between-api-and-worker] } - { from: queue, to: worker, label: poll } - { from: worker, to: db, label: SQL, labelAt: [735, 420] }