{"id":"6b09ab659843bccb708a3ca3","slug":"hld-complete-example","title":"A complete HLD by example: the VoltGo charging network – document, diagrams, ADRs and tools","summary":"A full, realistic High-Level Design document walked through section by section on the VoltGo electric-vehicle charging platform: a driver app, 4,000 chargers over OCPP, reservations, ad hoc payments through a payment service provider and a network operations dashboard. NFRs in numbers, C4 Context and Container, three sequence diagrams, a deployment diagram, a weighted options matrix, ADR excerpts and a risk register – plus a downloadable HLD template and the complete example document, and a tour of the tools: Structurizr, Mermaid, PlantUML, draw.io, Excalidraw, IcePanel, arc42, ADRs, OpenAPI/AsyncAPI, Threat Dragon and cloud cost calculators.","servedLang":"en","availableLangs":["pl","en"],"topics":["solution-architecture","event-driven-architecture","modular-monolith","api-security"],"techs":["general","typescript"],"tags":["solution-architect","hld","c4-model","architecture-documentation","adr","structurizr","arc42","ev-charging","ocpp","threat-modeling"],"level":"intermediate","kind":"tutorial","access":"members","status":"published","cover":null,"author":{"id":"6b08bd2e80884893657cc8cf","name":"Redakcja Art of Devs","avatar":null,"handle":"redakcja","community":false},"readingMinutes":49,"stats":{"views":3,"likes":0,"bookmarks":0,"comments":0},"publishedAt":"2026-11-27T16:10:13.676Z","updatedAt":"2026-11-27T17:23:40.621Z","requestedLang":"en","theme":{"hero":"classic","heroMedia":null,"accent":"teal","background":"grid","weaveResources":true,"toc":"right"},"seoDescription":"A complete HLD (High-Level Design) example for an EV charging platform: goal and scope, NFRs in numbers, C4 Context and Container in Mermaid, sequence and deployment diagrams, a decision matrix, ADRs, a risk register, a downloadable HLD template and the tools that help you write an HLD (Structurizr ","wordCount":9766,"doc":{"type":"doc","content":[{"type":"paragraph","content":[{"type":"text","text":"HLDs are easy to talk about in theory: “goal and scope, NFRs, context, options…”. It is much harder to find "},{"type":"text","text":"a whole, real document","marks":[{"type":"bold"}]},{"type":"text","text":" where you can see how those chapters connect: where a number in the NFRs comes from, which decision follows from which requirement, why exactly this arrow is on the diagram. This article is such a document – the HLD of the "},{"type":"text","text":"VoltGo","marks":[{"type":"bold"}]},{"type":"text","text":" electric-vehicle charging platform – walked through chapter by chapter, with a template and the full version to download, plus a tour of the tools that help you write it."}]},{"type":"callout","attrs":{"variant":"tip","title":"In short"},"content":[{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"A good HLD is "},{"type":"text","text":"a chain of justifications","marks":[{"type":"bold"}]},{"type":"text","text":": business goal → NFRs in numbers → weighted options → decision in an ADR → components and flows that implement that decision → the risks that remain."}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"Every chapter answers a reviewer’s specific questions: security looks for trust boundaries, infrastructure for numbers and deployment, the teams for component responsibilities."}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"Tools come second, but well-chosen ones save weeks: "},{"type":"text","text":"diagrams and decisions as code in Git","marks":[{"type":"bold"}]},{"type":"text","text":" (Structurizr/Mermaid, ADRs) plus one tool for workshops and one for threat modelling."}]}]}]}]},{"type":"stats","attrs":{"items":[{"value":"4,000 → 10,000","label":"charge points","hint":"today and in 2029"},{"value":"1,000 msg/s","label":"charger telemetry","hint":"on average, 3,000 at peak"},{"value":"99.95%","label":"charging core availability","hint":"≤ 22 min of downtime a month"},{"value":"11","label":"HLD chapters","hint":"from goal to risks"}]}},{"type":"callout","attrs":{"variant":"info","title":"What you can download"},"content":[{"type":"paragraph","content":[{"type":"text","text":"The code download button gives you a ZIP with: "},{"type":"text","text":"templates/HLD-template.md","marks":[{"type":"code"}]},{"type":"text","text":" (a template with guiding questions), "},{"type":"text","text":"examples/HLD-VoltGo-v1.0.md","marks":[{"type":"code"}]},{"type":"text","text":" (the complete example document), two ADRs, "},{"type":"text","text":"diagrams/workspace.dsl","marks":[{"type":"code"}]},{"type":"text","text":" (Structurizr: Context, Container and Deployment from one model) and the contract "},{"type":"text","text":"contracts/sessions-events.asyncapi.yaml","marks":[{"type":"code"}]},{"type":"text","text":". The nine steps of working on an HLD are covered in a separate article, "},{"type":"text","text":"HLD step by step","marks":[{"type":"link","attrs":{"href":"/en/articles/sa-hld-step-by-step"}}]},{"type":"text","text":" – here we focus on the finished document."}]}]},{"type":"heading","attrs":{"level":2,"id":"how-this-hld-came-about"},"content":[{"type":"text","text":"How this HLD came about"}]},{"type":"paragraph","content":[{"type":"text","text":"A document like this is not written in one evening. At VoltGo it took five weeks of the architect’s work (about 60% of their time), with workshops and one PoC along the way:"}]},{"type":"timeline","attrs":{"items":[{"date":"Week 1","title":"Kick-off and context","text":"Goal, scope, stakeholders, constraints. An NFR workshop with operations, finance and the PO – numbers instead of adjectives."},{"date":"Week 2","title":"AS-IS and Event Storming","text":"A current-state workshop (the old CSMS, the ERP, RFID cards) and a big-picture Event Storming of the charging process on a Miro board. Three solution options."},{"date":"Week 3","title":"Options, decision, PoC","text":"A decision matrix with weights agreed with stakeholders beforehand, ADR-0001 accepted “conditionally”. PoC-01 starts: can our own OCPP gateway handle telemetry from 10,000 chargers?"},{"date":"Week 4","title":"TO-BE and threat modelling","text":"C4 diagrams, sequences, deployment, data. A STRIDE session with security in OWASP Threat Dragon. Version 0.5 goes to team review."},{"date":"Week 5","title":"Review and approval","text":"Comments from the teams, security and the platform team; the PoC-01 result added to the ADR. Version 0.9 goes to the architecture board, 1.0 after fixes."}]}},{"type":"paragraph","content":[{"type":"text","text":"Versions matter: "},{"type":"text","text":"0.1","marks":[{"type":"bold"}]},{"type":"text","text":" is a draft for the teams, "},{"type":"text","text":"0.5","marks":[{"type":"bold"}]},{"type":"text","text":" the first complete version for technical review, "},{"type":"text","text":"0.9","marks":[{"type":"bold"}]},{"type":"text","text":" the candidate for the board, "},{"type":"text","text":"1.0","marks":[{"type":"bold"}]},{"type":"text","text":" the approved document from which the teams start epics and LLDs. After approval the HLD lives on: every changed decision means a new ADR and a version bump."}]},{"type":"heading","attrs":{"level":2,"id":"the-product-voltgo-in-one-paragraph"},"content":[{"type":"text","text":"The product: VoltGo in one paragraph"}]},{"type":"paragraph","content":[{"type":"text","text":"VoltGo","marks":[{"type":"bold"}]},{"type":"text","text":" (a fictional company with very real problems) runs a network of public chargers in Poland: 1,100 sites and 4,000 charge points from three manufacturers, 30% of them fast DC chargers. Today the network is managed by a vendor’s licensed system (CSMS – "},{"type":"text","text":"Charging Station Management System","marks":[{"type":"italic"}]},{"type":"text","text":") delivered as SaaS with a generic app: a 2.9 rating in the app stores, no reservations, payment only by topping up a wallet, and 6% of charging starts end with an error. The licence costs EUR 9 per charge point per month and grows with the network, and the contract expires in 13 months. On top of that comes "},{"type":"text","text":"AFIR","marks":[{"type":"bold"}]},{"type":"text","text":" (EU Regulation 2023/1804): ad hoc charging without a contract, the price per kWh known before the start, and availability data shared publicly."}]},{"type":"paragraph","content":[{"type":"text","text":"Chargers talk to the backend using "},{"type":"text","text":"OCPP","marks":[{"type":"bold"}]},{"type":"text","text":" ("},{"type":"text","text":"Open Charge Point Protocol","marks":[{"type":"italic"}]},{"type":"text","text":") – in version 1.6J these are JSON messages over WebSocket: "},{"type":"text","text":"BootNotification","marks":[{"type":"code"}]},{"type":"text","text":", "},{"type":"text","text":"Heartbeat","marks":[{"type":"code"}]},{"type":"text","text":", "},{"type":"text","text":"StatusNotification","marks":[{"type":"code"}]},{"type":"text","text":", "},{"type":"text","text":"Authorize","marks":[{"type":"code"}]},{"type":"text","text":", "},{"type":"text","text":"StartTransaction","marks":[{"type":"code"}]},{"type":"text","text":", "},{"type":"text","text":"MeterValues","marks":[{"type":"code"}]},{"type":"text","text":", "},{"type":"text","text":"StopTransaction","marks":[{"type":"code"}]},{"type":"text","text":", and remote commands from the backend such as "},{"type":"text","text":"RemoteStartTransaction","marks":[{"type":"code"}]},{"type":"text","text":". The protocol sets most of this project’s constraints."}]},{"type":"heading","attrs":{"level":2,"id":"1-goal-and-scope"},"content":[{"type":"text","text":"1. Goal and scope"}]},{"type":"paragraph","content":[{"type":"text","text":"The first page of an HLD must be readable by the CEO. The goal in one sentence, with numbers and a date:"}]},{"type":"pullQuote","attrs":{"text":"By 1 June 2027, launch VoltGo’s own platform for 4,000 charge points (10,000 in 2029): charging start from the app in < 5 s, AFIR-compliant ad hoc payment, 99.95% availability of the charging core.","author":"Project goal","role":"VoltGo HLD v1.0"}},{"type":"paragraph","content":[{"type":"text","text":"The goal translates into business metrics by which, a year from now, we will judge whether the project succeeded:"}]},{"type":"table","content":[{"type":"tableRow","content":[{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Metric"}]}]},{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Today"}]}]},{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Target after 12 months"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Sessions started from the app or a QR code"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"35%"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"70%"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Failed charging starts"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"6%"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"< 2%"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"App store rating"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"2.9"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"≥ 4.5"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Licence or cloud cost per charge point per month"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"~PLN 39 (SaaS licence)"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"≤ PLN 7 (cloud at 10,000 points; team cost counted in the TCO)"}]}]}]}]},{"type":"paragraph","content":[{"type":"text","text":"We write the scope down explicitly – especially what we are "},{"type":"text","text":"not","marks":[{"type":"bold"}]},{"type":"text","text":" doing. “Out of scope” items are not a bin for rejected ideas but a deliberate deferral: each has a phase or an owner."}]},{"type":"table","content":[{"type":"tableRow","content":[{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"In MVP scope (1 June 2027)"}]}]},{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Out of scope / phase 2"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"iOS/Android driver app: map with live availability, 15-min reservation, remote start and stop, history, invoices"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"OCPP 2.0.1 and Plug & Charge (ISO 15118) – phase 2"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"ad hoc payment: card, Apple Pay, Google Pay through a payment service provider; a payment page opened from a QR code with no app install"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"roaming with other networks (OCPI) – phase 2"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"RFID cards and subscriptions of existing customers (account migration)"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"B2B fleet portal – phase 2"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"operator dashboard (NOC): live network status, alarms, remote commands, tariffs"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"payment terminals in DC chargers – supplied by the manufacturer"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"OCPP 1.6J for all 4,000 points, dynamic load management at 120 sites"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"field service and installations – existing field service system"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"reporting prices and availability to EIPA (the Polish national register of charging points, run by UDT, the Office of Technical Inspection), invoices through the ERP"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"energy trading, dynamic exchange-based tariffs"}]}]}]}]},{"type":"paragraph","content":[{"type":"text","text":"Stakeholders:","marks":[{"type":"bold"}]},{"type":"text","text":" COO (sponsor), driver app PO, Head of Operations (NOC), finance (settlement, ERP), legal and the DPO, CISO, the cloud platform team, three development teams – "},{"type":"text","text":"Charging","marks":[{"type":"bold"}]},{"type":"text","text":" (OCPP gateway, sessions), "},{"type":"text","text":"Driver","marks":[{"type":"bold"}]},{"type":"text","text":" (app, payments), "},{"type":"text","text":"Operations","marks":[{"type":"bold"}]},{"type":"text","text":" (NOC dashboard, load management) – and the charger manufacturers."}]},{"type":"paragraph","content":[{"type":"text","text":"Constraints:","marks":[{"type":"bold"}]},{"type":"text","text":" a deadline before the summer holiday season; AWS as the company cloud (an EU region, "},{"type":"text","text":"eu-central-1","marks":[{"type":"code"}]},{"type":"text","text":"); TypeScript and Node.js as the teams’ skill set, React Native for the app; personal data in the EU; card data never in our systems; the ERP and its integration with KSeF (the Polish national e-invoicing system) stay as they are; the old CSMS runs in parallel until 31 December 2027."}]},{"type":"heading","attrs":{"level":2,"id":"2-requirements-and-nfrs"},"content":[{"type":"text","text":"2. Requirements and NFRs"}]},{"type":"paragraph","content":[{"type":"text","text":"Key use cases – only those that shape the architecture:"}]},{"type":"orderedList","attrs":{"start":1},"content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"UC-1 Find and reserve","marks":[{"type":"bold"}]},{"type":"text","text":" – the driver sees connector availability on the map (delay < 5 s) and reserves a connector for 15 minutes."}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"UC-2 Start charging","marks":[{"type":"bold"}]},{"type":"text","text":" – from the app, with a QR code (no account) or an RFID card; ad hoc payment with pre-authorisation."}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"UC-3 Stop and settle","marks":[{"type":"bold"}]},{"type":"text","text":" – stop from the app, from the charger or by unplugging the cable; capture of the actual amount, a receipt or an invoice."}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"UC-4 Supervise the network","marks":[{"type":"bold"}]},{"type":"text","text":" – the dispatcher sees alarms and the live status of 4,000 points and sends commands (reset, unlock connector, set unavailable)."}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"UC-5 Limit site power","marks":[{"type":"bold"}]},{"type":"text","text":" – the total power of a site’s chargers never exceeds the grid connection capacity (meter reading every 5 s)."}]}]}]},{"type":"paragraph","content":[{"type":"text","text":"Non-functional requirements are the heart of an HLD. Each has a number, conditions and "},{"type":"text","text":"a way to verify it","marks":[{"type":"bold"}]},{"type":"text","text":" – without that it is only a wish:"}]},{"type":"table","content":[{"type":"tableRow","content":[{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"ID"}]}]},{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Area"}]}]},{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Requirement"}]}]},{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"How we will verify it"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"NFR-01"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Scale"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"4,000 points connected today, 10,000 in 2029; designed for "},{"type":"text","text":"20,000","marks":[{"type":"bold"}]},{"type":"text","text":" (2× headroom)"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"k6 load test (PoC-01)"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"NFR-02"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Throughput"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"telemetry "},{"type":"text","text":"1,000 msg/s","marks":[{"type":"bold"}]},{"type":"text","text":" on average (10,000 × 1 message / 10 s), 3,000 msg/s at peak"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"PoC-01, then a pre-launch test"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"NFR-03"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Latency"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"OCPP gateway ingress → live state "},{"type":"text","text":"p95 < 300 ms","marks":[{"type":"bold"}]},{"type":"text","text":"; in the app < 5 s (the charger’s cellular network is outside the budget)"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"PoC-01, SLO in production"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"NFR-04"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Charging start"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"“Start” in the app → accepted by the charger "},{"type":"text","text":"p95 < 5 s","marks":[{"type":"bold"}]},{"type":"text","text":"; session confirmation p95 < 15 s"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"E2E test in the lab with 3 models"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"NFR-05"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Availability"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"charging core (authorisation, start/stop, payment) "},{"type":"text","text":"99.95%","marks":[{"type":"bold"}]},{"type":"text","text":" per month"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"SLO, monthly report"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"NFR-06"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Availability"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"app (map, history) 99.9%; NOC dashboard 99.9% 24/7"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"SLO"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"NFR-07"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Resilience"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"a backend outage does not interrupt ongoing sessions; RFID cards are authorised from the charger’s local list, transactions are buffered"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"chaos test: gateway cut off for 15 min"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"NFR-08"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Reconnect storm"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"10,000 chargers reconnect within ≤ 5 min after a network outage, with no lost transactions"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"PoC-01, scenario 2"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"NFR-09"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"RPO/RTO"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"sessions and payments: RPO ≤ 1 min, RTO 30 min; region failure: RPO 15 min, RTO 4 h"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"DR drill every six months"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"NFR-10"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Payments"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"no card data in VoltGo (PCI DSS SAQ A); zero double captures"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"security review, idempotency test"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"NFR-11"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Data"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"sessions and invoices 5 years; raw telemetry 90 days readily available, then a 2-year archive; a driver’s charging history anonymised after 24 months"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"review with the DPO"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"NFR-12"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Security"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"chargers: OCPP security profile 2 (TLS + a password per charger) at minimum, profile 3 (mTLS) for new ones; operators SSO + MFA; 100% of remote commands audited"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"pentest, configuration review"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"NFR-13"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Compliance"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"AFIR, GDPR, NIS2 (early incident warning within 24 h), reporting to EIPA"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"legal review, incident drill"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"NFR-14"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Cost"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"cloud ≤ PLN 35,000 per month at 4,000 points; cost per point falls with scale"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"AWS calculator, then cost reports"}]}]}]}]},{"type":"paragraph","content":[{"type":"text","text":"The numbers do not come out of thin air. Below the NFR table it is worth leaving "},{"type":"text","text":"back-of-the-envelope calculations","marks":[{"type":"bold"}]},{"type":"text","text":" so the reviewer can check them:"}]},{"type":"codeBlock","attrs":{"language":"plaintext","filename":"capacity.txt"},"content":[{"type":"text","text":"Telemetry (worst case: every point is charging):\n  10,000 points × 1 message / 10 s               = 1,000 msg/s\n  peak (reconnect storm + StatusNotification)    ≈ 3,000 msg/s\n  ~600 B of JSON per message → 0.6 MB/s           ≈ 52 GB/day raw\n  Kafka: ~4× compression, 3× replication, 7 days ≈ 270 GB\nWebSocket connections:\n  designed for 20,000 points, limit 5,000 per gateway instance → 4 instances\n  + loss of one of 3 availability zones → 6 instances (2 per zone)\nSessions: 2,000 concurrent today, 8,000 in 2029; driver API: 500 req/s at peak"}]},{"type":"callout","attrs":{"variant":"warning","title":"An NFR without a way to verify it is a wish"},"content":[{"type":"paragraph","content":[{"type":"text","text":"“The system must be fast and reliable” will not survive any review. “Charging start p95 < 5 s, measured from the API request to "},{"type":"text","text":"RemoteStartTransaction.conf","marks":[{"type":"code"}]},{"type":"text","text":", in a lab with three charger models” will – because it can be checked and defended. Where to get such numbers and how to run an NFR workshop – in the article "},{"type":"text","text":"Requirements and NFRs","marks":[{"type":"link","attrs":{"href":"/en/articles/sa-requirements-and-nfr"}}]},{"type":"text","text":"."}]}]},{"type":"heading","attrs":{"level":2,"id":"3-system-context"},"content":[{"type":"text","text":"3. System context"}]},{"type":"paragraph","content":[{"type":"text","text":"The context diagram (C4, level 1) shows the platform as a single box and everything it talks to. It is the first diagram every reviewer will see – and the only one the business will understand."}]},{"type":"diagram","attrs":{"kind":"mermaid","code":"flowchart TB\n  drv[\"Driver (person)<br/>finds, reserves, charges, pays\"]\n  noc[\"NOC dispatcher (person)<br/>supervises the network 24/7\"]\n  fin[\"Accounting (person)<br/>settlement and invoices\"]\n  vg[\"VoltGo platform<br/>sessions, reservations, payments, telemetry\"]\n  cp[\"Chargers<br/>4,000 points, 3 manufacturers\"]\n  psp[\"Payment service provider (PSP)<br/>tokenisation, pre-authorisation\"]\n  idp[\"Identity provider<br/>Amazon Cognito, company SSO\"]\n  erp[\"ERP<br/>invoices, KSeF\"]\n  eipa[\"EIPA (UDT)<br/>register of points and prices\"]\n  met[\"Grid connection meters<br/>120 sites\"]\n  push[\"FCM / APNs<br/>push notifications\"]\n  fsm[\"Field service system<br/>work orders for technicians\"]\n  old[\"Old CSMS (SaaS)<br/>until 31 Dec 2027\"]\n  roam[\"OCPI roaming hub<br/>phase 2\"]\n  drv -- \"app, HTTPS\" --> vg\n  noc -- \"NOC dashboard, HTTPS\" --> vg\n  fin -- \"reports\" --> vg\n  cp -- \"OCPP 1.6J, WSS\" --> vg\n  vg -- \"pre-authorisation and capture, HTTPS\" --> psp\n  vg -- \"OIDC\" --> idp\n  vg -- \"invoice requests\" --> erp\n  vg -- \"prices and availability\" --> eipa\n  met -- \"readings every 5 s, MQTT\" --> vg\n  vg -- \"push\" --> push\n  vg -- \"fault reports\" --> fsm\n  old -. \"migration of accounts and RFID cards\" .-> vg\n  vg -. \"phase 2\" .-> roam","caption":"C4 – level 1, Context: the VoltGo platform and its surroundings"}},{"type":"resourceRef","attrs":{"resourceId":"6b09ab5e3c96f2d34d0bc20a"}},{"type":"paragraph","content":[{"type":"text","text":"What goes from the AS-IS workshop into the HLD is "},{"type":"text","text":"constraints","marks":[{"type":"bold"}]},{"type":"text","text":", not a story: (1) the backend address in chargers is changed with the manufacturers’ tools, and 8% of models require a service visit; (2) chargers connect over LTE modems – network latency of 50–500 ms is outside our control; (3) the ERP accepts invoice requests only over REST between 6:00 and 23:00, so at night we queue; (4) the old CSMS offers only a CSV export of accounts and RFID cards."}]},{"type":"heading","attrs":{"level":2,"id":"4-options-and-decision"},"content":[{"type":"text","text":"4. Options and decision"}]},{"type":"paragraph","content":[{"type":"text","text":"We consider three realistic options. Criteria and "},{"type":"text","text":"weights are agreed with the stakeholders before anyone sees the scores","marks":[{"type":"bold"}]},{"type":"text","text":" – otherwise the matrix becomes a tool for justifying a decision made earlier."}]},{"type":"table","content":[{"type":"tableRow","content":[{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Option"}]}]},{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Description"}]}]},{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Strength"}]}]},{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Weakness"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"A. SaaS CSMS"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"a new white-label vendor + our own app on its API"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"fastest start, ready support for many charger models"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"licence grows with the network, limited control over UX and tariffs, data at the vendor"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"B. Own platform","marks":[{"type":"bold"}]}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"OCPP gateway, domain core, telemetry – on AWS, in TypeScript"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"full control, cost does not grow linearly with the number of points"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"the most work, risk of charger compatibility issues and of missing the deadline"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"C. Open source + own domain"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"an open-source OCPP server with our own services around it"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"faster start on the protocol part"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"a fork to maintain, data model imposed by the project"}]}]}]}]},{"type":"table","content":[{"type":"tableRow","content":[{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Criterion (weight)"}]}]},{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"A"}]}]},{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"B"}]}]},{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"C"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Time to MVP (20%)"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"5"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"2"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"3"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Control over UX, tariffs, reservations (20%)"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"2"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"5"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"4"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"5-year TCO at 10,000 points (20%)"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"2 – ~PLN 25 m"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"4 – ~PLN 20 m"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"4 – ~PLN 19 m"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Scalability and reliability: 20,000 points, 99.95% (15%)"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"3"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"4"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"3"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"OCPP 1.6J/2.0.1 support and charger models (10%)"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"5"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"3"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"3"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Data ownership and compliance: GDPR, NIS2, AFIR (15%)"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"2"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"5"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"4"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Weighted score","marks":[{"type":"bold"}]}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"3.05","marks":[{"type":"bold"}]}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"3.85","marks":[{"type":"bold"}]}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"3.55","marks":[{"type":"bold"}]}]}]}]}]},{"type":"chart","attrs":{"type":"bar","title":"Weighted score of the options (scale 1–5)","caption":"Weights agreed in a workshop before scoring. Sensitivity analysis: with a 35% weight on “time to MVP” (taken from TCO) the scores are B 3.55, A 3.50, C 3.40 – B still leads, but by a small margin.","data":{"labels":["A. SaaS CSMS","B. Own platform","C. Open source + domain"],"series":[{"name":"Weighted score","values":[3.05,3.85,3.55]}]}}},{"type":"paragraph","content":[{"type":"text","text":"Sensitivity analysis","marks":[{"type":"bold"}]},{"type":"text","text":" is one sentence that saves an hour of discussion at the board: we check whether a reasonable change of weights reverses the result. Here it does not, but B’s lead shrinks to 0.05 points when the deadline is what matters most – which is why the decision has a condition and a scope-cutting plan. We record the decision in an ADR (MADR format, shortened):"}]},{"type":"codeBlock","attrs":{"language":"plaintext","filename":"adr/0001-own-csms-platform.md"},"content":[{"type":"text","text":"# ADR-0001: Own CSMS platform instead of a licensed SaaS\n\n- Status: accepted conditionally – condition: the result of PoC-01 (ADR-0003)\n- Date: 2026-11-12\n- Deciders: solution architect, CTO, Head of Operations, driver app PO\n- Consulted: Charging, Driver and Operations teams, security, finance\n\n## Context\nThe contract for the current charging station management system (CSMS), delivered\nas SaaS, ends on 31 Dec 2027. The licence costs EUR 9 per charge point per month and\ngrows with the network (4,000 points today, 10,000 in 2029). The system has no\nreservations and no ad hoc payment as required by AFIR, and the vendor's app is rated\n2.9 in the app stores. We need control over the driver experience, tariffs and data.\n\n## Considered options\n- A. A new SaaS CSMS (white-label) + our own app on the vendor's API\n- B. Our own platform: OCPP gateway, domain core, telemetry processing\n- C. An open-source OCPP server + our own domain services around it\n\n## Decision\nWe choose **B**: 3.85 points versus 3.55 for C and 3.05 for A (criteria and weights:\nHLD, chapter 4). The result is robust to weight changes – with a 35% weight on\n\"time to MVP\", B still leads (3.55 versus 3.50 for A). We limit the deadline risk by\ncutting the MVP scope: OCPP 1.6J only, no roaming and no fleet portal.\n\n## Consequences\n- (+) control over UX, tariffs, reservations and data; cost does not grow linearly with the number of points\n- (+) 5-year TCO of ~PLN 20 m versus ~PLN 25 m for A (estimate ±30%)\n- (−) the most in-house work: 15 people for 18 months, then 10\n- (−) risk of compatibility with manufacturers' OCPP implementations (R1) and of gateway performance (R2)\n\n## Confirmation\n- PoC-01: 10,000 simulated chargers, telemetry p95 < 300 ms (ADR-0003)\n- a lab with three charger models before the pilot\n- decision review after the pilot at 20 sites"}]},{"type":"resourceRef","attrs":{"resourceId":"6b09ab5e3c96f2d34d0bc20d"}},{"type":"paragraph","content":[{"type":"text","text":"The HLD does not repeat the content of the ADRs – it links them and summarises them in a decision index:"}]},{"type":"table","content":[{"type":"tableRow","content":[{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"ADR"}]}]},{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Decision"}]}]},{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Status"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"ADR-0001"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Own CSMS platform (option B)"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"accepted conditionally → accepted after PoC-01"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"ADR-0002"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Core as a modular monolith; OCPP gateway and telemetry processor as separate services"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"accepted"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"ADR-0003"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Kafka (Amazon MSK) as the telemetry bus, partition key = charger identifier"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"accepted after PoC-01 (with conditions)"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"ADR-0004"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Ad hoc payment: PLN 150 pre-authorisation and capture after the session"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"accepted"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"ADR-0005"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Raw telemetry in S3 (Parquet), only minute aggregates in the database"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"accepted"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"ADR-0006"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Commands to chargers through a connection registry in Redis and a call to the right gateway instance"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"accepted"}]}]}]}]},{"type":"heading","attrs":{"level":2,"id":"5-target-architecture"},"content":[{"type":"text","text":"5. Target architecture"}]},{"type":"paragraph","content":[{"type":"text","text":"Level 2 of the C4 model (Container) shows what the platform is made of: applications, services, databases and buses – each with its technology and responsibility."}]},{"type":"diagram","attrs":{"kind":"mermaid","code":"flowchart LR\n  app[\"Driver app<br/>React Native\"]\n  nocui[\"NOC dashboard<br/>React SPA\"]\n  cp[\"Chargers<br/>OCPP 1.6J\"]\n  subgraph vg[\"VoltGo platform (AWS eu-central-1)\"]\n    gw[\"OCPP gateway ×6<br/>Node.js, ws<br/>WebSocket connections\"]\n    core[\"VoltGo Core – NestJS<br/>modular monolith<br/>charge points · sessions and reservations<br/>tariffs and payments · power · integrations\"]\n    tel[\"Telemetry processor ×4<br/>Node.js\"]\n    k[[\"Kafka (MSK)<br/>ocpp.inbound.v1<br/>sessions.events.v1<br/>site.meters.v1\"]]\n    db[(\"Aurora PostgreSQL<br/>accounts, sessions, tariffs, outbox\")]\n    rd[(\"Redis<br/>live state,<br/>connection registry\")]\n    s3[(\"S3<br/>telemetry archive\")]\n  end\n  app -- \"Driver API, HTTPS\" --> core\n  nocui -- \"Operator API,<br/>HTTPS + WebSocket\" --> core\n  cp -- \"WSS, profile 2/3\" --> gw\n  gw -- \"MeterValues,<br/>StatusNotification\" --> k\n  gw -- \"Authorize, Start/Stop<br/>(synchronous)\" --> core\n  core -- \"remote commands\" --> gw\n  k --> tel\n  tel --> rd\n  tel -- \"minute aggregates\" --> db\n  core --> db\n  core --> rd\n  core -- \"events (outbox)\" --> k\n  k -- \"MSK Connect\" --> s3\n  core -- \"pre-authorisation,<br/>capture\" --> psp[\"Payment service provider\"]\n  core --> erp[\"ERP\"]\n  core --> eipa[\"EIPA\"]","caption":"C4 – level 2, Container: what is inside the VoltGo platform"}},{"type":"paragraph","content":[{"type":"text","text":"Every box gets a table row in the HLD. This is where the teams check whether the boundaries make sense and infrastructure checks how it scales:"}]},{"type":"table","content":[{"type":"tableRow","content":[{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Component"}]}]},{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Responsibility"}]}]},{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Technology"}]}]},{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Scaling"}]}]},{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Team"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"OCPP gateway"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"holds WebSocket connections, authenticates chargers, translates OCPP into events and calls"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Node.js 24, "},{"type":"text","text":"ws","marks":[{"type":"code"}]},{"type":"text","text":", TypeScript"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"by number of connections: ≤ 5,000 per instance, min. 2 per zone"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Charging"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"VoltGo Core"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"sessions, reservations, tariffs, payments, accounts, load management, integrations; Driver API and Operator API"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"NestJS, modular monolith"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"by CPU and request rate (HPA)"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Charging, Driver, Operations (modules)"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Telemetry processor"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"live connector state, minute aggregates, anomaly detection"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Node.js, KafkaJS"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"by consumer lag"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Operations"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Kafka"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"telemetry and domain event bus, buffer during outages"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Amazon MSK, 3 brokers"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"partitions: 24 for telemetry"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Platform"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Aurora PostgreSQL"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"transactional data, outbox, aggregates (daily partitions)"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Aurora PostgreSQL 16"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"vertically + read replica"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Platform"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Redis"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"live state, connection registry, reservation locks"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"ElastiCache (Redis OSS)"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"replica in a second zone"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Platform"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Driver app, NOC dashboard"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"UI"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"React Native, React"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"CDN"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Driver, Operations"}]}]}]}]},{"type":"paragraph","content":[{"type":"text","text":"Three decisions shape this diagram the most:"}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"Two OCPP paths.","marks":[{"type":"bold"}]},{"type":"text","text":" Telemetry ("},{"type":"text","text":"MeterValues","marks":[{"type":"code"}]},{"type":"text","text":", "},{"type":"text","text":"StatusNotification","marks":[{"type":"code"}]},{"type":"text","text":", "},{"type":"text","text":"Heartbeat","marks":[{"type":"code"}]},{"type":"text","text":") goes asynchronously through Kafka – the gateway acknowledges it only after the Kafka write. "},{"type":"text","text":"Authorize","marks":[{"type":"code"}]},{"type":"text","text":", "},{"type":"text","text":"StartTransaction","marks":[{"type":"code"}]},{"type":"text","text":" and "},{"type":"text","text":"StopTransaction","marks":[{"type":"code"}]},{"type":"text","text":" go synchronously to the core, because the response must carry a decision (e.g. the "},{"type":"text","text":"transactionId","marks":[{"type":"code"}]},{"type":"text","text":" and the card status)."}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"A modular monolith in the core","marks":[{"type":"bold"}]},{"type":"text","text":" (ADR-0002). Three teams, one database, clear modules with their own schemas. We scale separately only what scales differently: the gateway (connections) and the telemetry processor (throughput). More on this approach: "},{"type":"text","text":"Modular monolith","marks":[{"type":"link","attrs":{"href":"/en/articles/modular-monolith"}}]},{"type":"text","text":"."}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"Commands through a connection registry","marks":[{"type":"bold"}]},{"type":"text","text":" (ADR-0006). The connection to a charger lives on one specific gateway instance. The core looks up in Redis which instance that is and calls it over internal HTTP; the gateway waits for the "},{"type":"text","text":"CALLRESULT","marks":[{"type":"code"}]},{"type":"text","text":" and returns it in the response."}]}]}]},{"type":"heading","attrs":{"level":2,"id":"6-key-flows"},"content":[{"type":"text","text":"6. Key flows"}]},{"type":"paragraph","content":[{"type":"text","text":"We draw sequence diagrams for the flows that carry the most risk. At VoltGo there are three: charging start (NFR-04, payment), telemetry (NFR-02/03) and stop and settlement (money)."}]},{"type":"heading","attrs":{"level":3,"id":"starting-a-charge-from-the-app"},"content":[{"type":"text","text":"Starting a charge from the app"}]},{"type":"diagram","attrs":{"kind":"mermaid","code":"sequenceDiagram\n  autonumber\n  participant A as App\n  participant C as VoltGo Core\n  participant R as Redis\n  participant P as Payment provider\n  participant G as OCPP gateway\n  participant L as Charger\n  participant K as Kafka\n  A->>C: POST /v1/sessions (connectorId, payment token, Idempotency-Key)\n  C->>R: connector state + lock (SET NX, 60 s)\n  C->>P: pre-authorise PLN 150 (token)\n  P-->>C: held (paymentId)\n  C->>R: which gateway instance holds the charger?\n  C->>G: RemoteStartTransaction (connectorId, session idTag)\n  G->>L: [2, id, RemoteStartTransaction, ...]\n  L-->>G: Accepted\n  G-->>C: Accepted\n  C-->>A: 202 Accepted, status STARTING (p95 < 5 s)\n  L->>G: StartTransaction (idTag, meterStart)\n  G->>C: start-transaction (synchronous)\n  C->>C: session ACTIVE + outbox SessionStarted\n  C-->>G: transactionId, idTagInfo Accepted\n  G-->>L: StartTransaction.conf\n  C-)K: SessionStarted (outbox relay)\n  K-)C: notifications module consumes SessionStarted\n  C-)A: push “Charging started” (FCM/APNs)\n  Note over C,L: No Accepted within 10 s or Rejected: release the hold and show a message. No StartTransaction within 90 s (cable not plugged in): cancel the pre-authorisation.","caption":"Charging start: pre-authorisation, remote command and synchronous StartTransaction"}},{"type":"heading","attrs":{"level":3,"id":"telemetry-and-live-state"},"content":[{"type":"text","text":"Telemetry and live state"}]},{"type":"diagram","attrs":{"kind":"mermaid","code":"sequenceDiagram\n  autonumber\n  participant L as Charger\n  participant G as OCPP gateway\n  participant K as Kafka\n  participant T as Telemetry processor\n  participant R as Redis\n  participant N as NOC dashboard / app\n  L->>G: MeterValues (energy, power, SoC)\n  G->>K: publish, key = charger, acks = all\n  K-->>G: written\n  G-->>L: MeterValues.conf\n  K->>T: batch of messages (partition)\n  T->>R: connector state + PUBLISH change\n  R-)N: update over the core’s WebSocket\n  T->>T: minute aggregate (written every 60 s)\n  Note over G,K: Kafka unavailable: no acknowledgement, the charger retries (transaction-related OCPP messages are buffered).","caption":"Telemetry: acknowledged after the Kafka write, live state in Redis at p95 < 300 ms"}},{"type":"paragraph","content":[{"type":"text","text":"If the NFR says “300 ms”, every step of the path gets its allocation and the remainder is kept for surprises. Such a budget also gives you ready-made alert thresholds:"}]},{"type":"chart","attrs":{"type":"bar","title":"Telemetry latency budget: gateway → live state, 300 ms (p95)","caption":"Design values verified in PoC-01. The cellular network between the charger and the gateway is outside the budget (50–500 ms, outside our control).","unit":"ms","data":{"labels":["Parsing and validation","Micro-batch (flush every 5 ms)","Kafka write (acks=all)","Consumer fetch","Processing","Redis write","Push to the dashboard","Reserve"],"series":[{"name":"Budget","values":[5,5,30,50,10,5,20,175]}]}}},{"type":"heading","attrs":{"level":3,"id":"stop-and-settlement"},"content":[{"type":"text","text":"Stop and settlement"}]},{"type":"diagram","attrs":{"kind":"mermaid","code":"sequenceDiagram\n  autonumber\n  participant L as Charger\n  participant G as OCPP gateway\n  participant C as VoltGo Core\n  participant P as Payment provider\n  participant K as Kafka\n  participant E as ERP adapter\n  L->>G: StopTransaction (meterStop, reason)\n  G->>C: stop-transaction (synchronous)\n  C->>C: pricing: kWh × tariff + idle fee\n  C-->>G: idTagInfo Accepted\n  G-->>L: StopTransaction.conf\n  C->>P: capture PLN 87.40 (Idempotency-Key = sessionId)\n  P-->>C: captured, rest of the hold released\n  C->>C: session SETTLED + outbox SessionSettled\n  C-)K: SessionSettled\n  K-)E: SessionSettled\n  E->>E: invoice request in the ERP (queued at night)\n  Note over C,P: Capture error: 3 retries with exponential backoff, then status “payment needs review” and an alert for the NOC.","caption":"Ending a session: StopTransaction, pricing, capture and an invoice via an event"}},{"type":"paragraph","content":[{"type":"text","text":"Payment is a separate decision with its own trade-offs – recorded in ADR-0004:"}]},{"type":"codeBlock","attrs":{"language":"plaintext","filename":"adr/0004-ad-hoc-payment-pre-authorisation.md"},"content":[{"type":"text","text":"# ADR-0004: Ad hoc payment – pre-authorisation and capture after the session\n\n- Status: accepted\n- Date: 2026-11-20\n- Deciders: solution architect, driver app PO, finance\n- Consulted: security, legal, payment service provider (PSP)\n\n## Context\nAFIR requires that a car can be charged without a contract or registration, with the\nprice per kWh known before the start. The final amount is unknown when charging starts –\nit depends on the energy delivered and on idle time. Card data must not enter VoltGo's\nsystems (PCI DSS scope: SAQ A).\n\n## Considered options\n1. Prepaid wallet – top up before charging (how it works today)\n2. Pre-authorisation of a fixed amount and capture of the actual amount after the session\n3. Charge after the session without pre-authorisation\n\n## Decision\nOption 2. The app, or a payment page opened from the charger's QR code, tokenises\nthe card in the payment service provider's SDK – VoltGo receives only a token. Before\nthe start we hold PLN 150, after `StopTransaction` we capture the actual amount and\nrelease the rest of the hold. The idempotency key of the capture is `sessionId`. When\nthe session value reaches 95% of the hold, the core stops charging\n(`RemoteStopTransaction`).\n\nRejected: (1) requires registration and a top-up – it does not meet the ad hoc\ncharging requirement; (3) risk of unpaid sessions and payment disputes.\n\n## Consequences\n- (+) AFIR compliance, no card data on our side, no unpaid sessions\n- (+) the same flow in the app and on the QR-code payment page\n- (−) a PLN 150 hold can feel high – a clear message before the start\n- (−) a pre-authorisation expires after a few days (depending on the card scheme) –\n  the capture must happen immediately; failures go to a retry queue with an alert\n- the wallet stays for subscriptions and RFID cards (that is not ad hoc charging)\n\n## Confirmation\n- test in the PSP sandbox: partial capture and release of the rest of the hold (A2)\n- metric: zero double captures, failed capture rate < 0.5%"}]}]},"toc":[{"id":"how-this-hld-came-about","text":"How this HLD came about","level":2,"locked":false},{"id":"the-product-voltgo-in-one-paragraph","text":"The product: VoltGo in one paragraph","level":2,"locked":false},{"id":"1-goal-and-scope","text":"1. Goal and scope","level":2,"locked":false},{"id":"2-requirements-and-nfrs","text":"2. Requirements and NFRs","level":2,"locked":false},{"id":"3-system-context","text":"3. System context","level":2,"locked":false},{"id":"4-options-and-decision","text":"4. Options and decision","level":2,"locked":false},{"id":"5-target-architecture","text":"5. Target architecture","level":2,"locked":false},{"id":"6-key-flows","text":"6. Key flows","level":2,"locked":false},{"id":"starting-a-charge-from-the-app","text":"Starting a charge from the app","level":3,"locked":false},{"id":"telemetry-and-live-state","text":"Telemetry and live state","level":3,"locked":false},{"id":"stop-and-settlement","text":"Stop and settlement","level":3,"locked":false},{"id":"7-integrations-and-contracts","text":"7. Integrations and contracts","level":2,"locked":true},{"id":"8-data","text":"8. Data","level":2,"locked":true},{"id":"9-security","text":"9. Security","level":2,"locked":true},{"id":"10-deployment-and-operations","text":"10. Deployment and operations","level":2,"locked":true},{"id":"11-risks-and-open-issues","text":"11. Risks and open issues","level":2,"locked":true},{"id":"template-and-complete-document-to-download","text":"Template and complete document to download","level":2,"locked":true},{"id":"tools-that-help","text":"Tools that help","level":2,"locked":true},{"id":"diagrams-as-code-structurizr-dsl","text":"Diagrams as code: Structurizr DSL","level":3,"locked":true},{"id":"what-to-start-with","text":"What to start with","level":3,"locked":true},{"id":"the-most-common-hld-gaps-that-surface-in-review","text":"The most common HLD gaps that surface in review","level":2,"locked":true},{"id":"related","text":"Related","level":2,"locked":true},{"id":"check-yourself","text":"Check yourself","level":2,"locked":true}],"locked":true,"paywall":null,"previewRatio":0.3,"totalBlocks":116,"visibleBlocks":62,"resources":[{"id":"6b09ab5e3c96f2d34d0bc20a","type":"video","provider":"youtube","url":"https://www.youtube.com/watch?v=x2-rSnhpw0g","embedUrl":"https://www.youtube-nocookie.com/embed/x2-rSnhpw0g","title":"Visualising software architecture with the C4 model - Simon Brown, Agile on the Beach 2019","description":"Simon Brown explains why most architecture diagrams fail and how the four C4 levels (context, containers, components, code) plus a simple notation make them readable for developers and the business.","author":"Agile on the Beach","thumbnailUrl":"https://i.ytimg.com/vi/x2-rSnhpw0g/hqdefault.jpg","durationSec":null,"lang":"en","topics":["solution-architecture"],"techs":["general"],"tags":["software-architecture","c4","architecture-documentation"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"manual","publishedAt":null,"popularity":72,"verifiedAt":"2026-11-27T15:40:00.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-27T16:10:06.319Z","updatedAt":"2026-11-27T16:10:06.319Z"},{"id":"6b0857b63c96f2d34d0b3b2b","type":"podcast","provider":"apple-podcasts","url":"https://podcasts.apple.com/us/podcast/the-c4-model-visualizing-software-architecture-simon/id1559093928?i=1000779234208","embedUrl":"https://embed.podcasts.apple.com/us/podcast/id1559093928?i=1000779234208","title":"The C4 Model: Visualizing Software Architecture • Simon Brown & Susanne Kaiser","description":"This interview was recorded for the GOTO Book Club. http://gotopia.tech/bookclub Check out more here: https://gotopia.tech/episodes/449 Simon Brown - Author & Creator of \"The C4 Model\" Susanne Kaiser - Independent Tech Consultant & Author of \"Architecture for Flow\" RESOURCES Simon…","author":"GOTO - The Brightest Minds in Tech","thumbnailUrl":"https://is1-ssl.mzstatic.com/image/thumb/Podcasts211/v4/3a/79/83/3a7983c0-1e6a-3867-08a3-2aed2781ef8f/mza_17712790496893491979.jpg/600x600bb.jpg","durationSec":1690,"lang":"en","topics":[],"techs":["general"],"tags":["podcast","software-architecture"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"itunes","publishedAt":"2026-07-31T07:00:00.000Z","popularity":74,"verifiedAt":"2026-11-26T11:03:13.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:53.924Z","updatedAt":"2026-11-26T16:00:53.924Z"},{"id":"6b09ab5e3c96f2d34d0bc20e","type":"video","provider":"youtube","url":"https://www.youtube.com/watch?v=m2FlZNRELYA","embedUrl":"https://www.youtube-nocookie.com/embed/m2FlZNRELYA","title":"Lesson 94 - Guidelines For Architecture Diagrams","description":"Why architecture diagrams are hard to read without standards, and practical guidelines for the \"lines\" in a diagram: solid vs dotted lines, arrows, labels and what each should communicate.","author":"Software Architecture Monday","thumbnailUrl":"https://i.ytimg.com/vi/m2FlZNRELYA/hqdefault.jpg","durationSec":null,"lang":"en","topics":["solution-architecture"],"techs":["general"],"tags":["software-architecture","architecture-documentation","diagrams"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"manual","publishedAt":"2020-08-03T00:00:00.000Z","popularity":58,"verifiedAt":"2026-11-27T15:40:00.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-27T16:10:06.319Z","updatedAt":"2026-11-27T16:10:06.319Z"},{"id":"6b09ab5e3c96f2d34d0bc211","type":"podcast","provider":"apple-podcasts","url":"https://podcasts.apple.com/us/podcast/39-o-driverach-architektonicznych-z-kub%C4%85-pilimonem/id1508298430?i=1000579991455","embedUrl":"https://embed.podcasts.apple.com/us/podcast/id1508298430?i=1000579991455","title":"39. O driverach architektonicznych z Kubą Pilimonem","description":"Drivery architektoniczne: wymagania jakościowe, ograniczenia i cele biznesowe, które naprawdę kształtują architekturę – jak je wydobyć i zapisać, zanim narysuje się pierwszy diagram.","author":"Better Software Design","thumbnailUrl":"https://is1-ssl.mzstatic.com/image/thumb/Podcasts115/v4/a9/6d/bb/a96dbb46-a01a-9cf6-40ef-27a27cef3c73/mza_18038037312547630971.jpg/600x600bb.jpg","durationSec":3884,"lang":"pl","topics":["solution-architecture"],"techs":["general"],"tags":["podcast","software-architecture","requirements"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"manual","publishedAt":"2022-09-19T23:00:00.000Z","popularity":56,"verifiedAt":"2026-11-27T15:40:00.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-27T16:10:06.319Z","updatedAt":"2026-11-27T16:10:06.319Z"},{"id":"6b09ab5e3c96f2d34d0bc20d","type":"video","provider":"youtube","url":"https://www.youtube.com/watch?v=LMBqGPLvonU","embedUrl":"https://www.youtube-nocookie.com/embed/LMBqGPLvonU","title":"Lesson 55 - Architecture Decision Records","description":"Mark Richards describes Architecture Decision Records – a lightweight, necessary tool for documenting the decisions an architect makes – building on Michael Nygard's original format.","author":"Software Architecture Monday","thumbnailUrl":"https://i.ytimg.com/vi/LMBqGPLvonU/hqdefault.jpg","durationSec":null,"lang":"en","topics":["solution-architecture"],"techs":["general"],"tags":["software-architecture","adr","architecture-decisions"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"manual","publishedAt":"2019-04-01T00:00:00.000Z","popularity":60,"verifiedAt":"2026-11-27T15:40:00.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-27T16:10:06.319Z","updatedAt":"2026-11-27T16:10:06.319Z"},{"id":"6b0857b93c96f2d34d0b3d76","type":"podcast","provider":"apple-podcasts","url":"https://podcasts.apple.com/us/podcast/gernot-starke-on-architecture-documentation-using-arc42/id120906714?i=1000487353217","embedUrl":"https://embed.podcasts.apple.com/us/podcast/id120906714?i=1000487353217","title":"Gernot Starke on Architecture Documentation using arc42","description":"Gernot Starke talks about arc42: an open-source set of templates he developed to document software architecture based on his practical experience with real projects. Also Gernot and host Eberhard then discuss how documenting architecture fits into agile processes and how to find the right amount…","author":"Software Engineering Radio - the podcast for professional software developers","thumbnailUrl":"https://is1-ssl.mzstatic.com/image/thumb/Podcasts116/v4/cf/da/b9/cfdab986-4a2c-61c4-42a5-ec511eea0b1a/mza_8712856294784819153.png/600x600bb.jpg","durationSec":3130,"lang":"en","topics":[],"techs":["general"],"tags":["podcast","software-architecture","testing"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"itunes","publishedAt":"2015-12-16T18:37:43.000Z","popularity":57,"verifiedAt":"2026-11-26T11:01:07.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:55.661Z","updatedAt":"2026-11-26T16:00:55.661Z"},{"id":"6b09ab5e3c96f2d34d0bc210","type":"podcast","provider":"apple-podcasts","url":"https://podcasts.apple.com/us/podcast/60-o-technikach-living-documentation-i-modelu-p3-z/id1508298430?i=1000613149296","embedUrl":"https://embed.podcasts.apple.com/us/podcast/id1508298430?i=1000613149296","title":"60. O technikach Living Documentation i modelu P3 z Marcinem Markowskim","description":"Rozmowa o technikach żywej dokumentacji (Living Documentation): jak trzymać dokumentację blisko kodu, co generować automatycznie, a co pisać ręcznie – i dlaczego część dokumentacji nigdy nie powinna powstać.","author":"Better Software Design","thumbnailUrl":"https://is1-ssl.mzstatic.com/image/thumb/Podcasts115/v4/a9/6d/bb/a96dbb46-a01a-9cf6-40ef-27a27cef3c73/mza_18038037312547630971.jpg/600x600bb.jpg","durationSec":4220,"lang":"pl","topics":["solution-architecture"],"techs":["general"],"tags":["podcast","software-architecture","architecture-documentation"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"manual","publishedAt":"2023-05-15T23:00:00.000Z","popularity":56,"verifiedAt":"2026-11-27T15:40:00.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-27T16:10:06.319Z","updatedAt":"2026-11-27T16:10:06.319Z"},{"id":"6b09ab5e3c96f2d34d0bc212","type":"podcast","provider":"apple-podcasts","url":"https://podcasts.apple.com/us/podcast/creating-software-with-modern-diagramming-techniques/id1559093928?i=1000656616767","embedUrl":"https://embed.podcasts.apple.com/us/podcast/id1559093928?i=1000656616767","title":"Creating Software with Modern Diagramming Techniques • Ashley Peacock & Stefan Hofer","description":"Diagramming as a design tool: Mermaid and other diagrams-as-code, sequence and C4-style diagrams, and how lightweight visual techniques help teams agree on a design before coding.","author":"GOTO - The Brightest Minds in Tech","thumbnailUrl":"https://is1-ssl.mzstatic.com/image/thumb/Podcasts221/v4/5d/ec/20/5dec2009-2976-10ae-1504-dd0c972288f5/mza_2475307277379157464.jpg/600x600bb.jpg","durationSec":2170,"lang":"en","topics":["solution-architecture"],"techs":["general"],"tags":["podcast","software-architecture","diagrams"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"manual","publishedAt":"2024-05-24T09:00:00.000Z","popularity":55,"verifiedAt":"2026-11-27T15:40:00.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-27T16:10:06.319Z","updatedAt":"2026-11-27T16:10:06.319Z"},{"id":"6b09ab5e3c96f2d34d0bc213","type":"podcast","provider":"apple-podcasts","url":"https://podcasts.apple.com/us/podcast/dokumentacja/id1477067604?i=1000468318117","embedUrl":"https://embed.podcasts.apple.com/us/podcast/id1477067604?i=1000468318117","title":"Dokumentacja","description":"Odcinek o dokumentacji w projektach IT: ile jej potrzeba, gdzie ją trzymać, jak nie dopuścić, żeby się zestarzała, i które artefakty architektoniczne naprawdę ktoś czyta.","author":"Patoarchitekci","thumbnailUrl":"https://is1-ssl.mzstatic.com/image/thumb/Podcasts211/v4/0b/1b/74/0b1b74e8-cf76-e6c9-7dd7-6dd08be7ccf8/mza_15330516425045544077.jpg/600x600bb.jpg","durationSec":1862,"lang":"pl","topics":["solution-architecture"],"techs":["general"],"tags":["podcast","software-architecture","architecture-documentation"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"manual","publishedAt":"2020-03-13T12:30:58.000Z","popularity":55,"verifiedAt":"2026-11-27T15:40:00.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-27T16:10:06.319Z","updatedAt":"2026-11-27T16:10:06.319Z"},{"id":"6b09ab5e3c96f2d34d0bc215","type":"article","provider":"web","url":"https://owasp.org/www-project-threat-dragon/","embedUrl":null,"title":"OWASP Threat Dragon","description":"Free, open-source threat modelling tool (web and desktop): draw data-flow diagrams, apply STRIDE or LINDDUN and keep the threat model next to the code.","author":"OWASP Foundation","thumbnailUrl":"https://owasp.org/images/og/owasp-default.png","durationSec":null,"lang":"en","topics":["solution-architecture"],"techs":["general"],"tags":["threat-modeling","security","stride"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"manual","publishedAt":null,"popularity":60,"verifiedAt":"2026-11-27T15:40:00.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-27T16:10:06.319Z","updatedAt":"2026-11-27T16:10:06.319Z"},{"id":"6b0857b53c96f2d34d0b38d4","type":"article","provider":"web","url":"https://c4model.com/","embedUrl":null,"title":"The C4 model for visualising software architecture (2017)","description":"C4 model","author":"C4 model","thumbnailUrl":null,"durationSec":null,"lang":"en","topics":[],"techs":["general"],"tags":["software-architecture","hacker-news"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"hn","publishedAt":"2023-10-22T09:36:47.000Z","popularity":71,"verifiedAt":"2026-11-26T11:07:48.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:52.228Z","updatedAt":"2026-11-26T16:00:52.228Z"},{"id":"6b0857bf3c96f2d34d0b42b5","type":"article","provider":"web","url":"https://arc42.org/overview","embedUrl":null,"title":"arc42 Template Overview","description":"The twelve sections of the arc42 template at a glance. Each one links straight to its detailed documentation on docs.arc42.org.","author":"arc42","thumbnailUrl":"https://arc42.org/images/splash/arc42-splash-landingpage.jpg","durationSec":null,"lang":"en","topics":[],"techs":["general"],"tags":["software-architecture"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"manual","publishedAt":null,"popularity":60,"verifiedAt":"2026-11-26T11:26:17.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:01:02.417Z","updatedAt":"2026-11-26T16:01:02.417Z"}],"challenges":[{"id":"6b093dc191bd8fbaf2a0c8d0","slug":"inventory-cqrs","title":"Inventory with CQRS – separate write and read models","summary":"Warehouse commands validated on their own write model, events on a bus and a projection building a read model with a low-stock report. The read model can be rebuilt from events alone.","servedLang":"en","availableLangs":["pl","en"],"kind":"code","category":"architecture","status":"published","difficulty":"medium","topics":["cqrs","event-driven-architecture"],"techs":["typescript","javascript","python","dotnet","java","go"],"tags":["cqrs","read-model","projection","events","inventory"],"languages":["typescript","javascript","python","csharp","java","go"],"questionCount":null,"xp":20,"stats":{"attempts":0,"solves":0,"solutions":0,"comments":0},"solveRate":null,"publishedAt":"2026-11-27T08:22:25.519Z"}],"attachments":[],"hasCode":true,"repoUrl":null,"series":[{"slug":"solution-architect-path","title":"How to become a Solution Architect","items":[{"slug":"solution-architecture","title":"Who is a Solution Architect? The role, its responsibilities and the career map","current":false},{"slug":"sa-daily-duties","title":"A day in the life of a Solution Architect: duties, rhythm and priorities","current":false},{"slug":"sa-requirements-and-nfr","title":"Requirements and NFRs: getting the numbers out of the business that actually shape the system","current":false},{"slug":"sa-hld-step-by-step","title":"HLD step by step: from a blank page to an approved architecture","current":false},{"slug":"hld-complete-example","title":"A complete HLD by example: the VoltGo charging network – document, diagrams, ADRs and tools","current":true},{"slug":"poc-guide","title":"PoC, spike, prototype, MVP – how to plan and run a PoC (with a working example)","current":false},{"slug":"sa-decisions-and-adr","title":"Architecture decisions and ADRs: how to choose, weigh trade-offs and record the “why”","current":false},{"slug":"sa-integrations-and-contracts","title":"Integrations and contracts: APIs, events and cross-team dependencies without surprises","current":false},{"slug":"sa-security-and-operations","title":"Security and operations in the design: STRIDE, OAuth2, SLOs and runbooks","current":false},{"slug":"sa-estimation-cost-tco","title":"Estimation, cost and TCO: what it costs and how many servers you really need","current":false},{"slug":"sa-governance-and-reviews","title":"Governance and reviews: how to defend a design in front of the Architecture Review Board","current":false},{"slug":"sa-migrations-as-is-to-be","title":"AS-IS → TO-BE migration without downtime: transitional architecture, strangler fig and CDC","current":false},{"slug":"sa-how-to-become","title":"How to become a Solution Architect: skills, path, interview and the first 90 days","current":false}]}],"prev":{"slug":"sa-hld-step-by-step","title":"HLD step by step: from a blank page to an approved architecture"},"next":{"slug":"poc-guide","title":"PoC, spike, prototype, MVP – how to plan and run a PoC (with a working example)"},"featured":false,"authorCard":{"id":"6b08bd2e80884893657cc8cf","name":"Redakcja Art of Devs","avatar":null,"handle":"redakcja","headline":"Wzorce projektowe · Architektura · AI i LLM","community":false,"reputation":{"points":3900,"level":{"key":"mentor","label":"Mentor"}},"articles":104,"skills":[{"key":"typescript","title":"TypeScript","level":5,"levelLabel":"Authority","articles":90},{"key":"dotnet","title":".NET","level":5,"levelLabel":"Authority","articles":61},{"key":"python","title":"Python","level":5,"levelLabel":"Authority","articles":59},{"key":"java","title":"Java","level":5,"levelLabel":"Authority","articles":46}]}}