Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
190 changes: 190 additions & 0 deletions .architecture/2026-07-10-bec433e1/diagrams-bpmn/crawl-flow.bpmn
Original file line number Diff line number Diff line change
@@ -0,0 +1,190 @@
<?xml version="1.0" encoding="UTF-8"?>
<bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" id="Definitions_crawl_flow" targetNamespace="http://readplace.com/architecture/bpmn">
<bpmn:process id="Process_crawl_flow" name="crawl-flow" isExecutable="false">
<bpmn:startEvent id="n_celp" name="CrawlEmailLinkPreview userId, receivedAtMessageId, ordinal, url">
<bpmn:outgoing>f_0</bpmn:outgoing>
<bpmn:outgoing>f_3</bpmn:outgoing>
<bpmn:messageEventDefinition />
</bpmn:startEvent>
<bpmn:businessRuleTask id="n_hrule" name="crawl-email-link-preview-rule (hutch, current)">
<bpmn:incoming>f_0</bpmn:incoming>
<bpmn:outgoing>f_1</bpmn:outgoing>
</bpmn:businessRuleTask>
<bpmn:intermediateCatchEvent id="n_hq" name="crawl-email-link-preview SQS (hutch, current)">
<bpmn:incoming>f_1</bpmn:incoming>
<bpmn:outgoing>f_2</bpmn:outgoing>
<bpmn:outgoing>f_6</bpmn:outgoing>
<bpmn:messageEventDefinition />
</bpmn:intermediateCatchEvent>
<bpmn:endEvent id="n_hdlq" name="crawl-email-link-preview DLQ + alarm">
<bpmn:incoming>f_6</bpmn:incoming>
<bpmn:errorEventDefinition />
</bpmn:endEvent>
<bpmn:serviceTask id="n_hl" name="crawl-email-link-preview Lambda (hutch, current)">
<bpmn:incoming>f_2</bpmn:incoming>
<bpmn:outgoing>f_8</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:serviceTask id="n_irule" name="inbox-crawl-email-link-preview-rule">
<bpmn:incoming>f_3</bpmn:incoming>
<bpmn:outgoing>f_4</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:serviceTask id="n_iq" name="inbox-crawl-email-link-preview SQS">
<bpmn:incoming>f_4</bpmn:incoming>
<bpmn:outgoing>f_5</bpmn:outgoing>
<bpmn:outgoing>f_7</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:endEvent id="n_idlq" name="inbox-crawl-email-link-preview DLQ + alarm">
<bpmn:incoming>f_7</bpmn:incoming>
<bpmn:errorEventDefinition />
</bpmn:endEvent>
<bpmn:serviceTask id="n_il" name="inbox-crawl-email-link-preview Lambda same handler code, re-homed">
<bpmn:incoming>f_5</bpmn:incoming>
<bpmn:outgoing>f_9</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:businessRuleTask id="n_ssrf" name="validateSaveableUrl + isBlockedIpAddress on every hop">
<bpmn:incoming>f_8</bpmn:incoming>
<bpmn:incoming>f_9</bpmn:incoming>
<bpmn:outgoing>f_11</bpmn:outgoing>
</bpmn:businessRuleTask>
<bpmn:serviceTask id="n_crawl" name="crawlAndFinalizeArticle metadata only — body discarded">
<bpmn:incoming>f_11</bpmn:incoming>
</bpmn:serviceTask>
<bpmn:dataStoreReference id="n_img" name="shared content bucket lead-image upload, served via save-link content-media CDN"></bpmn:dataStoreReference>
<bpmn:dataStoreReference id="n_outcome" name="hutch-inbox-email-links setLinkOutcome UpdateItem crawled / failed — converging, last write wins"></bpmn:dataStoreReference>
<bpmn:sequenceFlow id="f_0" name="" sourceRef="n_celp" targetRef="n_hrule" />
<bpmn:sequenceFlow id="f_1" name="" sourceRef="n_hrule" targetRef="n_hq" />
<bpmn:sequenceFlow id="f_2" name="" sourceRef="n_hq" targetRef="n_hl" />
<bpmn:sequenceFlow id="f_3" name="" sourceRef="n_celp" targetRef="n_irule" />
<bpmn:sequenceFlow id="f_4" name="" sourceRef="n_irule" targetRef="n_iq" />
<bpmn:sequenceFlow id="f_5" name="" sourceRef="n_iq" targetRef="n_il" />
<bpmn:sequenceFlow id="f_6" name="genuine fault only" sourceRef="n_hq" targetRef="n_hdlq" />
<bpmn:sequenceFlow id="f_7" name="genuine fault only" sourceRef="n_iq" targetRef="n_idlq" />
<bpmn:sequenceFlow id="f_8" name="" sourceRef="n_hl" targetRef="n_ssrf" />
<bpmn:sequenceFlow id="f_9" name="" sourceRef="n_il" targetRef="n_ssrf" />
<bpmn:sequenceFlow id="f_11" name="ok" sourceRef="n_ssrf" targetRef="n_crawl" />
<bpmn:association id="f_10" sourceRef="n_ssrf" targetRef="n_outcome" associationDirection="One" />
<bpmn:association id="f_12" sourceRef="n_crawl" targetRef="n_img" associationDirection="One" />
<bpmn:association id="f_13" sourceRef="n_crawl" targetRef="n_outcome" associationDirection="One" />
</bpmn:process>
<bpmndi:BPMNDiagram id="Diagram_crawl_flow">
<bpmndi:BPMNPlane id="Plane_crawl_flow" bpmnElement="Process_crawl_flow">
<bpmndi:BPMNShape id="n_celp_di" bpmnElement="n_celp">
<dc:Bounds x="404.05" y="28" width="40" height="40" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="n_hrule_di" bpmnElement="n_hrule">
<dc:Bounds x="206.8" y="185" width="198" height="52" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="n_hq_di" bpmnElement="n_hq">
<dc:Bounds x="285.8" y="295" width="40" height="40" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="n_hdlq_di" bpmnElement="n_hdlq">
<dc:Bounds x="80.6" y="431" width="40" height="40" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="n_hl_di" bpmnElement="n_hl">
<dc:Bounds x="209.2" y="441" width="191" height="52" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="n_irule_di" bpmnElement="n_irule">
<dc:Bounds x="440.8" y="185" width="200.5" height="52" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="n_iq_di" bpmnElement="n_iq">
<dc:Bounds x="414.4" y="305" width="200.5" height="52" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="n_idlq_di" bpmnElement="n_idlq">
<dc:Bounds x="726.4" y="431" width="40" height="40" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="n_il_di" bpmnElement="n_il">
<dc:Bounds x="436.2" y="425" width="200.5" height="84" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="n_ssrf_di" bpmnElement="n_ssrf">
<dc:Bounds x="339.42" y="567" width="169.25" height="68" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="n_crawl_di" bpmnElement="n_crawl">
<dc:Bounds x="334.3" y="693" width="179.5" height="68" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="n_img_di" bpmnElement="n_img">
<dc:Bounds x="218.94" y="825.75" width="185.24" height="48" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="n_outcome_di" bpmnElement="n_outcome">
<dc:Bounds x="440.18" y="819" width="188.98" height="48" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="f_0_di" bpmnElement="f_0">
<di:waypoint x="424.05" y="68" />
<di:waypoint x="424.05" y="126.5" />
<di:waypoint x="305.8" y="126.5" />
<di:waypoint x="305.8" y="185" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="f_1_di" bpmnElement="f_1">
<di:waypoint x="305.8" y="237" />
<di:waypoint x="305.8" y="295" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="f_2_di" bpmnElement="f_2">
<di:waypoint x="305.8" y="335" />
<di:waypoint x="304.7" y="441" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="f_3_di" bpmnElement="f_3">
<di:waypoint x="424.05" y="68" />
<di:waypoint x="424.05" y="126.5" />
<di:waypoint x="541.05" y="126.5" />
<di:waypoint x="541.05" y="185" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="f_4_di" bpmnElement="f_4">
<di:waypoint x="541.05" y="237" />
<di:waypoint x="541.05" y="271" />
<di:waypoint x="514.65" y="271" />
<di:waypoint x="514.65" y="305" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="f_5_di" bpmnElement="f_5">
<di:waypoint x="514.65" y="357" />
<di:waypoint x="514.65" y="391" />
<di:waypoint x="536.45" y="391" />
<di:waypoint x="536.45" y="425" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="f_6_di" bpmnElement="f_6">
<di:waypoint x="305.8" y="335" />
<di:waypoint x="305.8" y="383" />
<di:waypoint x="100.6" y="383" />
<di:waypoint x="100.6" y="431" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="f_7_di" bpmnElement="f_7">
<di:waypoint x="514.65" y="357" />
<di:waypoint x="514.65" y="394" />
<di:waypoint x="746.4" y="394" />
<di:waypoint x="746.4" y="431" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="f_8_di" bpmnElement="f_8">
<di:waypoint x="304.7" y="493" />
<di:waypoint x="304.7" y="530" />
<di:waypoint x="424.05" y="530" />
<di:waypoint x="424.05" y="567" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="f_9_di" bpmnElement="f_9">
<di:waypoint x="536.45" y="509" />
<di:waypoint x="536.45" y="538" />
<di:waypoint x="424.05" y="538" />
<di:waypoint x="424.05" y="567" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="f_11_di" bpmnElement="f_11">
<di:waypoint x="424.05" y="635" />
<di:waypoint x="424.05" y="693" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="f_10_di" bpmnElement="f_10">
<di:waypoint x="424.05" y="635" />
<di:waypoint x="424.05" y="727" />
<di:waypoint x="534.67" y="727" />
<di:waypoint x="534.67" y="819" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="f_12_di" bpmnElement="f_12">
<di:waypoint x="424.05" y="761" />
<di:waypoint x="424.05" y="793.38" />
<di:waypoint x="311.56" y="793.38" />
<di:waypoint x="311.56" y="825.75" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="f_13_di" bpmnElement="f_13">
<di:waypoint x="424.05" y="761" />
<di:waypoint x="424.05" y="790" />
<di:waypoint x="534.67" y="790" />
<di:waypoint x="534.67" y="819" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading