{"id":"6b09ab669843bccb708a3cb3","slug":"poc-guide","title":"PoC, spike, prototype, MVP – how to plan and run a PoC (with a working example)","summary":"How a spike, a PoC, a prototype, an MVP and a pilot differ, when a PoC is really needed and how to run one: a hypothesis, measurable success criteria, a timebox, a scope cut, a plan, a report and a go/no-go decision recorded in an ADR. On the example of the VoltGo EV charging platform: can a Node.js OCPP gateway with Kafka ingest telemetry from 10,000 chargers at p95 < 300 ms? Gateway and consumer code in TypeScript, a k6 script, example results, downloadable plan and report templates, and the “PoC goes to production” trap.","servedLang":"en","availableLangs":["pl","en"],"topics":["solution-architecture","event-driven-architecture","aws-scalability","nodejs-runtime"],"techs":["typescript","node","general"],"tags":["solution-architect","proof-of-concept","spike","prototype","mvp","k6","load-testing","kafka","ocpp","ev-charging"],"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":32,"stats":{"views":3,"likes":0,"bookmarks":0,"comments":0},"publishedAt":"2026-11-27T16:10:14.785Z","updatedAt":"2026-11-27T17:23:54.619Z","requestedLang":"en","theme":{"hero":"classic","heroMedia":null,"accent":"teal","background":"hex","weaveResources":true,"toc":"right"},"seoDescription":"How to plan and run a PoC (proof of concept): PoC vs spike vs prototype vs MVP vs pilot; hypothesis and success criteria, timebox, PoC plan, report and go/no-go decision in an ADR. Example: a k6 load test of an OCPP gateway (Node.js, TypeScript, Kafka) for 10,000 EV chargers, downloadable templates.","wordCount":6352,"doc":{"type":"doc","content":[{"type":"paragraph","content":[{"type":"text","text":"“Let’s do a PoC” is one of the most frequently spoken and least often well-executed sentences in IT projects. Sometimes it ends with a week of playing with a new technology and no decision at all; sometimes – worse – with code that “temporarily” goes to production and stays there for years. A good "},{"type":"text","text":"PoC","marks":[{"type":"bold"}]},{"type":"text","text":" ("},{"type":"text","text":"proof of concept","marks":[{"type":"italic"}]},{"type":"text","text":") is an experiment with a hypothesis, thresholds and a decision date. In this tutorial we plan and run such a PoC for the "},{"type":"text","text":"VoltGo","marks":[{"type":"bold"}]},{"type":"text","text":" EV charging platform – from the question to the ADR – with code you can run."}]},{"type":"callout","attrs":{"variant":"tip","title":"In a nutshell"},"content":[{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"A PoC answers "},{"type":"text","text":"one technical question","marks":[{"type":"bold"}]},{"type":"text","text":" the architecture depends on: “will this work under our conditions?”. A spike asks “how do we do it?”, a prototype – “will users want it?”, an MVP – “will the market pay for it?”."}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"Before the first line of code you have a "},{"type":"text","text":"hypothesis, measurable go/no-go criteria, a timebox, a scope and a decision maker","marks":[{"type":"bold"}]},{"type":"text","text":" with a decision date. Without them the result always reads “it basically works”."}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"PoC code gets "},{"type":"text","text":"thrown away","marks":[{"type":"bold"}]},{"type":"text","text":". What stays are the numbers, the conclusions and the conditions – in the report, in the ADR and in the requirements for the LLD."}]}]}]}]},{"type":"stats","attrs":{"items":[{"value":"10,000","label":"simulated chargers","hint":"4 k6 generators"},{"value":"1,000 msg/s","label":"steady-state telemetry","hint":"peak of 3,000 msg/s"},{"value":"p95 < 300 ms","label":"latency threshold","hint":"gateway → live state"},{"value":"10 days","label":"PoC-01 timebox","hint":"2 people, decision on 24 Nov"}]}},{"type":"callout","attrs":{"variant":"info","title":"Context: the VoltGo HLD"},"content":[{"type":"paragraph","content":[{"type":"text","text":"This article continues "},{"type":"text","text":"A complete HLD by example: VoltGo","marks":[{"type":"link","attrs":{"href":"/en/articles/hld-complete-example"}}]},{"type":"text","text":". In short: VoltGo is building its own platform for 4,000 charge points (10,000 in 2029). The decision to build its own platform (ADR-0001) is "},{"type":"text","text":"conditional","marks":[{"type":"bold"}]},{"type":"text","text":": it depends on whether a Node.js OCPP gateway publishing telemetry to Kafka can handle the scale and latency from the NFRs. That is the question for PoC-01."}]}]},{"type":"heading","attrs":{"level":2,"id":"poc-spike-prototype-mvp-pilot-how-they-differ"},"content":[{"type":"text","text":"PoC, spike, prototype, MVP, pilot – how they differ"}]},{"type":"paragraph","content":[{"type":"text","text":"These words are often used interchangeably, which is asking for trouble: the team thinks it is running a quick experiment, while the business thinks it is getting the first version of the product. The difference is easiest to see in the "},{"type":"text","text":"question","marks":[{"type":"bold"}]},{"type":"text","text":" each form answers:"}]},{"type":"table","content":[{"type":"tableRow","content":[{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph"}]},{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Spike"}]}]},{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"PoC"}]}]},{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Prototype"}]}]},{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"MVP"}]}]},{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Pilot"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Question"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"how do we do it? how long will it take?"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"will it work technically under our conditions?"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"will users understand it and want it?"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"does the product deliver value in the market?"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"does it work for real customers at a small scale?"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Audience"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"the team"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"architect, technical decision makers"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"users, PO, UX"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"market, business"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"selected customers, operations"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Duration"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"hours – a few days"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"1–3 weeks"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"days – weeks"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"months"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"weeks – months"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Code afterwards"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"thrown away"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"thrown away, the knowledge stays"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"thrown away or a mock-up"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"production"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"production"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Measure of success"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"an answer + an estimate"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"go/no-go criteria met"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"results of user tests"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"product metrics"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"pilot KPIs, stability"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"At VoltGo"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"how do we build the connection registry in Redis?"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"can the gateway + Kafka ingest telemetry from 10,000 chargers?"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"a clickable mock-up of starting a charge from a QR code"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"the app with ad hoc payment for the whole network"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"the new platform at 20 sites in Warsaw"}]}]}]}]},{"type":"paragraph","content":[{"type":"text","text":"You will also come across "},{"type":"text","text":"POT","marks":[{"type":"bold"}]},{"type":"text","text":" ("},{"type":"text","text":"proof of technology","marks":[{"type":"italic"}]},{"type":"text","text":" – does the technology do what the vendor promises at all) and "},{"type":"text","text":"proof of value","marks":[{"type":"bold"}]},{"type":"text","text":" (does the solution deliver a measurable business benefit, often in presales). In practice the difference between a POT and a PoC matters less than "},{"type":"text","text":"naming the question","marks":[{"type":"bold"}]},{"type":"text","text":" and not mixing it up with building the product."}]},{"type":"resourceRef","attrs":{"resourceId":"6b0857b73c96f2d34d0b3c02"}},{"type":"heading","attrs":{"level":2,"id":"when-a-poc-is-needed-and-when-it-is-not"},"content":[{"type":"text","text":"When a PoC is needed – and when it is not"}]},{"type":"paragraph","content":[{"type":"text","text":"A PoC costs money: two people for two weeks is tens of thousands of złoty plus a delay to other work. It pays off when "},{"type":"text","text":"the cost of being wrong is higher than the cost of the experiment","marks":[{"type":"bold"}]},{"type":"text","text":" and the answer cannot be found more cheaply."}]},{"type":"diagram","attrs":{"kind":"mermaid","code":"flowchart TD\n  a[\"An assumption the architecture depends on\"] --> b{\"Would a wrong assumption<br/>change the decision or the cost<br/>significantly?\"}\n  b -- \"no\" --> c[\"Record it as an assumption in the HLD<br/>with an owner and a date\"]\n  b -- \"yes\" --> d{\"Is the answer in the documentation,<br/>a benchmark, with an expert<br/>or in another team?\"}\n  d -- \"yes\" --> e[\"Check the source – days, not weeks\"]\n  d -- \"no\" --> f{\"Can it be tested<br/>in 1–3 weeks?\"}\n  f -- \"no\" --> g[\"Split the question<br/>or change the option\"]\n  f -- \"yes\" --> h[\"PoC: hypothesis, criteria,<br/>timebox, decision maker\"]","caption":"Do you need a PoC? A quick decision tree"}},{"type":"paragraph","content":[{"type":"text","text":"Typical signals that a PoC makes sense:"}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"Extreme NFRs","marks":[{"type":"bold"}]},{"type":"text","text":" – scale, latency or availability the team has never achieved (VoltGo: 10,000 persistent WebSocket connections and 1,000 msg/s at p95 < 300 ms)."}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"A technology that is new to the team","marks":[{"type":"bold"}]},{"type":"text","text":" in a critical place – here: Kafka, which the team does not know (risk R5 in the HLD)."}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"An unknown external system","marks":[{"type":"bold"}]},{"type":"text","text":" – a partner API whose behaviour under load nobody has seen."}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"Vendor promises","marks":[{"type":"bold"}]},{"type":"text","text":" – “our product will handle everything” (that is more of a POT)."}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"Cost uncertainty","marks":[{"type":"bold"}]},{"type":"text","text":" – when the cloud bill could change the choice of option."}]}]}]},{"type":"paragraph","content":[{"type":"text","text":"A PoC is "},{"type":"text","text":"not","marks":[{"type":"bold"}]},{"type":"text","text":" needed when the answer is known (do not test whether PostgreSQL can write 50 rows per second), when a wrong assumption is easy to fix later, or when you are really asking about usability – then you need a prototype, not a PoC."}]},{"type":"resourceRef","attrs":{"resourceId":"6b09ab5e3c96f2d34d0bc20c"}},{"type":"heading","attrs":{"level":2,"id":"hypothesis-and-measurable-success-criteria"},"content":[{"type":"text","text":"Hypothesis and measurable success criteria"}]},{"type":"paragraph","content":[{"type":"text","text":"A hypothesis turns a vague “let’s check out Kafka” into a sentence that can be disproved. The format is simple: "},{"type":"text","text":"we believe that","marks":[{"type":"bold"}]},{"type":"text","text":" solution X "},{"type":"text","text":"will let us achieve","marks":[{"type":"bold"}]},{"type":"text","text":" Y "},{"type":"text","text":"under","marks":[{"type":"bold"}]},{"type":"text","text":" conditions Z; "},{"type":"text","text":"we will consider it true if","marks":[{"type":"bold"}]},{"type":"text","text":" criteria K are met."}]},{"type":"pullQuote","attrs":{"text":"We believe that a Node.js OCPP gateway that publishes telemetry to Kafka (MSK) and acknowledges it after the write will ingest data from 10,000 chargers (1,000 msg/s, peak 3,000) with p95 latency < 300 ms and no message loss – also during a reconnect storm and an instance restart.","author":"PoC-01 hypothesis","role":"VoltGo"}},{"type":"paragraph","content":[{"type":"text","text":"The criteria must be "},{"type":"text","text":"measurable, set before the start and approved by the decision maker","marks":[{"type":"bold"}]},{"type":"text","text":". We split them into “must” (not met = no-go or a change of option) and “should” (not met = a condition or a risk):"}]},{"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":"Criterion"}]}]},{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Threshold"}]}]},{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"How we measure"}]}]},{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Weight"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"K1"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"MeterValues","marks":[{"type":"code"}]},{"type":"text","text":" acknowledgement (CALL → CALLRESULT)"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"p95 < 300 ms at 1,000 and 3,000 msg/s"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"the "},{"type":"text","text":"ocpp_ack_ms","marks":[{"type":"code"}]},{"type":"text","text":" trend in k6"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"must"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"K2"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"end-to-end: charger timestamp → processed in the consumer"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"p95 < 300 ms"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"percentiles in the consumer"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"must"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"K3"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"message loss"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"0"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"gaps in numbering + comparison: acknowledged in k6 = processed in the consumer"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"must"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"K4"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"gateway process CPU at 5,000 connections and 500 msg/s"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"< 70% of one core"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"instance metrics, "},{"type":"text","text":"loop_p99","marks":[{"type":"code"}]}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"must"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"K5"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"storm: 10,000 reconnects within ~10 s"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"all accepted ≤ 5 min, acknowledgements p95 < 300 ms"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"k6 + dashboard"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"must"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"K6"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"restart of one of 3 gateway instances"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"chargers back < 60 s, 0 gaps"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"k6 + consumer"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"should"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"K7"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"cost of the telemetry path at 10,000 charge points"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"≤ PLN 8,000 per month"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"AWS Pricing Calculator"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"should"}]}]}]}]},{"type":"callout","attrs":{"variant":"warning","title":"A criterion you cannot fail is not a criterion"},"content":[{"type":"paragraph","content":[{"type":"text","text":"“The gateway performs well”, “Kafka does the job” or “the team is happy” – after such a PoC any result can be declared a success. A good criterion has a number, load conditions, a duration and a measurement method, and it was written down "},{"type":"text","text":"before","marks":[{"type":"bold"}]},{"type":"text","text":" you saw the result. Moving the threshold after the fact is the most common way to invalidate a PoC."}]}]},{"type":"heading","attrs":{"level":2,"id":"timebox-and-scope-cut"},"content":[{"type":"text","text":"Timebox and scope cut"}]},{"type":"paragraph","content":[{"type":"text","text":"A "},{"type":"text","text":"timebox","marks":[{"type":"bold"}]},{"type":"text","text":" is not a deadline but a budget: after 10 days we make a decision with what we know – even if the answer is “we did not get to K6”. Extending a PoC by “just one more week” is a sign that the question was too broad."}]},{"type":"paragraph","content":[{"type":"text","text":"We cut the scope by a single rule: only what "},{"type":"text","text":"affects the answer","marks":[{"type":"bold"}]},{"type":"text","text":" stays. Everything else – however tempting – goes, with a justification:"}]},{"type":"table","content":[{"type":"tableRow","content":[{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"In scope"}]}]},{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Out of scope (and why it is safe to skip)"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"BootNotification","marks":[{"type":"code"}]},{"type":"text","text":", "},{"type":"text","text":"MeterValues","marks":[{"type":"code"}]},{"type":"text","text":", "},{"type":"text","text":"StatusNotification","marks":[{"type":"code"}]}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Start/StopTransaction","marks":[{"type":"code"}]},{"type":"text","text":" – the synchronous path, a separate risk, tested in the lab"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"TLS terminated in the gateway (as in security profile 2)"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"per-charger passwords – negligible cost compared with TLS, a separate security test"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Kafka on MSK (3 brokers, "},{"type":"text","text":"acks=all","marks":[{"type":"code"}]},{"type":"text","text":") – as in production"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Redis – known write cost (~1 ms); in the PoC the state lives in the consumer’s memory"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"a consumer that measures latency and gaps"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"real chargers – risk R1, the lab with 3 models"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"reconnect storm, instance restart"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"cross-region DR, UI, operator authorisation"}]}]}]}]},{"type":"paragraph","content":[{"type":"text","text":"The day-by-day plan is part of the PoC too, because without it “the environment” can eat half of the timebox:"}]},{"type":"timeline","attrs":{"items":[{"date":"Day 1 (9 Nov)","title":"Plan and criteria","text":"Hypothesis, K1–K7, scope and scenarios approved by the CTO and the Charging team lead. Branch `poc/telemetry-ingest`."},{"date":"Days 2–4","title":"Code","text":"Gateway, consumer, k6 script; a local smoke test with Redpanda and 500 chargers."},{"date":"Day 5","title":"Environment","text":"An AWS sandbox account with Terraform: NLB, 3 gateway instances, MSK, consumer, 4 k6 generators, Grafana."},{"date":"Days 6–7","title":"S1 scenarios","text":"Steady state with 10,000 chargers, a peak of 3,000 msg/s, one instance with 5,000 connections."},{"date":"Days 8–9","title":"S2–S3 scenarios","text":"Reconnect storm (two rounds), gateway instance restart."},{"date":"Day 10 (23 Nov)","title":"Report and decision","text":"Report, dashboard demo, go/no-go decision; ADR-0003 and the HLD updated on 24 Nov. `terraform destroy`."}]}},{"type":"paragraph","content":[{"type":"text","text":"You write the plan down in a short document – a downloadable template:"}]},{"type":"codeBlock","attrs":{"language":"plaintext","filename":"templates/PoC-plan.md"},"content":[{"type":"text","text":"# PoC-<no>: <the question in one sentence, ending with a question mark>\n\n| Owner | Team | Timebox | Start | Decision (date, who) |\n|---|---|---|---|---|\n| <architect> | <2–3 people> | <e.g. 10 working days> | YYYY-MM-DD | YYYY-MM-DD, <decision maker> |\n\n## 1. Why this PoC\n<!-- Which assumption from the HLD/ADR are we testing? What happens to the architecture if it turns out to be false? -->\n- Assumption / risk: <A1, R2 from the HLD register>\n- Decision that depends on it: <ADR-XXXX>\n- Cost of being wrong without a PoC: <e.g. rewriting the gateway after launch, PLN X thousand more per month>\n\n## 2. Hypothesis\nWe believe that **<solution>** will let us **<achieve the outcome>** under **<conditions / scale>**.\nWe will consider the hypothesis confirmed if **<measurable criteria from section 3>**.\n\n## 3. Success criteria (go / no-go)\n| ID | Criterion | Threshold | How we measure | Weight (must / should) |\n|---|---|---|---|---|\n| K1 | | | | must |\n| K2 | | | | should |\n\n## 4. Scope\n| In scope | Out of scope (and why it is safe to skip) |\n|---|---|\n| | |\n\n## 5. Test scenarios\n| Scenario | Load / event | Duration | What we observe |\n|---|---|---|---|\n| S1 steady state | | | |\n| S2 peak / storm | | | |\n| S3 failure | | | |\n\n## 6. Environment and tools\n- Infrastructure: <sandbox account, region, instance types – as close to production as possible>\n- Load generators: <k6, how many machines, how many VUs per machine>\n- Measurement: <metrics, dashboard, where raw results are stored>\n- Code: branch `poc/<name>` – **never merged to main**; archived with a tag after the decision\n\n## 7. Day-by-day plan\n| Day | Goal |\n|---|---|\n| 1 | plan and criteria approved by the decision maker |\n| … | |\n| last | report, demo, decision |\n\n## 8. PoC budget and risks\n- Environment cost: <amount> · People: <person-days>\n- What stops the PoC early: <e.g. no access to the vendor sandbox>"}]},{"type":"heading","attrs":{"level":2,"id":"example-poc-01-telemetry-from-10-000-chargers"},"content":[{"type":"text","text":"Example: PoC-01 – telemetry from 10,000 chargers"}]},{"type":"paragraph","content":[{"type":"text","text":"The PoC architecture is deliberately minimal: simulated chargers (k6) → OCPP gateway → Kafka → a consumer that measures latency and counts gaps. Nothing more is needed to answer the question."}]},{"type":"diagram","attrs":{"kind":"mermaid","code":"flowchart LR\n  subgraph gen[\"4 k6 generators (c7g.2xlarge)\"]\n    k1[\"2,500 VUs = 2,500 chargers<br/>MeterValues every 10 s\"]\n  end\n  subgraph aws[\"AWS sandbox account, eu-central-1\"]\n    nlb[\"NLB<br/>TLS passed to the gateway\"]\n    gw[\"OCPP gateway ×3<br/>Node.js 24, ws\"]\n    msk[[\"MSK, 3 brokers<br/>ocpp.inbound.v1, 24 partitions\"]]\n    con[\"Consumer<br/>latency, gaps, live state\"]\n    graf[\"Grafana + Prometheus<br/>k6 and instance metrics\"]\n  end\n  k1 -- \"WSS, OCPP 1.6J\" --> nlb --> gw\n  gw -- \"acks=all, then CALLRESULT\" --> msk\n  msk --> con\n  k1 -. \"remote write\" .-> graf\n  gw -. \"metrics\" .-> graf","caption":"The PoC-01 environment: only what affects the answer"}},{"type":"paragraph","content":[{"type":"text","text":"The code is simple but not naive: the gateway acknowledges "},{"type":"text","text":"MeterValues","marks":[{"type":"code"}]},{"type":"text","text":" "},{"type":"text","text":"only after the write to Kafka","marks":[{"type":"bold"}]},{"type":"text","text":" (at-least-once delivery), groups messages into micro-batches every 5 ms, and during a reconnect storm it can answer "},{"type":"text","text":"BootNotification","marks":[{"type":"code"}]},{"type":"text","text":" with the "},{"type":"text","text":"Pending","marks":[{"type":"code"}]},{"type":"text","text":" status – a mechanism from OCPP 1.6 itself that tells the charger to try again after the given number of seconds."}]},{"type":"heading","attrs":{"level":3,"id":"project-and-how-to-run-it"},"content":[{"type":"text","text":"Project and how to run it"}]},{"type":"codeGroup","attrs":{"title":"PoC-01 project – package.json, tsconfig, Redpanda"},"content":[{"type":"codeBlock","attrs":{"language":"json","filename":"package.json"},"content":[{"type":"text","text":"{\n  \"name\": \"voltgo-poc-telemetry\",\n  \"version\": \"0.1.0\",\n  \"private\": true,\n  \"description\": \"PoC-01: can one OCPP gateway + Kafka ingest MeterValues from 10 000 chargers with p95 < 300 ms end-to-end?\",\n  \"type\": \"module\",\n  \"engines\": { \"node\": \">=22\" },\n  \"scripts\": {\n    \"build\": \"tsc -p .\",\n    \"gateway\": \"node dist/gateway.js\",\n    \"consumer\": \"node dist/consumer.js\",\n    \"topic\": \"docker compose exec redpanda rpk topic create ocpp.inbound.v1 -p 24 -r 1\",\n    \"load\": \"k6 run k6/telemetry.js\"\n  },\n  \"dependencies\": {\n    \"kafkajs\": \"^2.2.4\",\n    \"ws\": \"^8.18.3\"\n  },\n  \"devDependencies\": {\n    \"@types/node\": \"^24.10.0\",\n    \"@types/ws\": \"^8.18.1\",\n    \"typescript\": \"^5.9.3\"\n  }\n}"}]},{"type":"codeBlock","attrs":{"language":"json","filename":"tsconfig.json"},"content":[{"type":"text","text":"{\n  \"compilerOptions\": {\n    \"target\": \"ES2023\",\n    \"module\": \"NodeNext\",\n    \"moduleResolution\": \"NodeNext\",\n    \"rootDir\": \"src\",\n    \"outDir\": \"dist\",\n    \"strict\": true,\n    \"noUncheckedIndexedAccess\": true,\n    \"skipLibCheck\": true,\n    \"sourceMap\": true\n  },\n  \"include\": [\"src\"]\n}"}]},{"type":"codeBlock","attrs":{"language":"yaml","filename":"docker-compose.yml"},"content":[{"type":"text","text":"services:\n  redpanda:\n    image: docker.redpanda.com/redpandadata/redpanda:v26.2.7\n    command:\n      - redpanda\n      - start\n      - --mode=dev-container\n      - --smp=2\n      - --kafka-addr=internal://0.0.0.0:9092,external://0.0.0.0:19092\n      - --advertise-kafka-addr=internal://redpanda:9092,external://localhost:19092\n    ports:\n      - \"19092:19092\""}]}]},{"type":"codeBlock","attrs":{"language":"bash"},"content":[{"type":"text","text":"docker compose up -d                  # Redpanda (Kafka API) on localhost:19092\nnpm install && npm run build\nnpm run topic                         # ocpp.inbound.v1, 24 partitions\nnpm run gateway                       # terminal 1\nnpm run consumer                      # terminal 2\nk6 run -e CHARGERS=500 -e RAMP=30s -e HOLD=2m k6/telemetry.js   # terminal 3: smoke test"}]},{"type":"paragraph","content":[{"type":"text","text":"Locally you check correctness, not performance: Redpanda speaks the Kafka API but is a different engine, and a laptop running the generator, the broker and the gateway on one CPU tells you nothing about production. The numbers for the report come from the AWS environment."}]},{"type":"heading","attrs":{"level":3,"id":"ocpp-frames-and-the-gateway"},"content":[{"type":"text","text":"OCPP frames and the gateway"}]},{"type":"codeGroup","attrs":{"title":"OCPP gateway – OCPP-J frames and the Kafka producer"},"content":[{"type":"codeBlock","attrs":{"language":"typescript","filename":"src/ocpp.ts"},"content":[{"type":"text","text":"// Minimal OCPP 1.6-J framing – just enough for the PoC.\n// Frames are JSON arrays: CALL [2, id, action, payload], CALLRESULT [3, id, payload], CALLERROR [4, id, code, text, details].\n\nexport type Call = [2, string, string, Record<string, unknown>];\n\nexport interface SampledValue {\n  value: string;\n  measurand?: string;\n  unit?: string;\n}\n\nexport interface MeterValuesReq {\n  connectorId: number;\n  transactionId?: number;\n  meterValue: { timestamp: string; sampledValue: SampledValue[] }[];\n}\n\n/** Envelope published to Kafka for every inbound charger message. */\nexport interface InboundEvent {\n  cpId: string;\n  action: string;\n  uniqueId: string;\n  receivedAt: number; // epoch ms at the gateway\n  payload: Record<string, unknown>;\n}\n\nexport function parseCall(raw: string): Call | null {\n  try {\n    const msg: unknown = JSON.parse(raw);\n    if (\n      Array.isArray(msg) &&\n      msg[0] === 2 &&\n      typeof msg[1] === 'string' &&\n      typeof msg[2] === 'string' &&\n      typeof msg[3] === 'object' &&\n      msg[3] !== null\n    ) {\n      return msg as Call;\n    }\n  } catch {\n    // not JSON – treated as a protocol error by the caller\n  }\n  return null;\n}\n\nexport const callResult = (id: string, payload: Record<string, unknown> = {}): string => JSON.stringify([3, id, payload]);\n\nexport const callError = (id: string, code: 'NotImplemented' | 'FormationViolation' | 'InternalError', text: string): string =>\n  JSON.stringify([4, id, code, text, {}]);\n\n/** Value of one measurand from the newest sample, e.g. 'Power.Active.Import'. */\nexport function measurand(req: MeterValuesReq, name: string): number | undefined {\n  const sample = req.meterValue.at(-1);\n  const v = sample?.sampledValue.find((s) => (s.measurand ?? 'Energy.Active.Import.Register') === name)?.value;\n  return v === undefined ? undefined : Number(v);\n}"}]},{"type":"codeBlock","attrs":{"language":"typescript","filename":"src/gateway.ts"},"content":[{"type":"text","text":"// PoC OCPP gateway: holds charger WebSockets and publishes inbound messages to Kafka.\n// MeterValues/StatusNotification are acknowledged only AFTER Kafka confirms the write (at-least-once).\nimport { readFileSync } from 'node:fs';\nimport { createServer, type IncomingMessage, type ServerResponse } from 'node:http';\nimport { createServer as createTlsServer } from 'node:https';\nimport { monitorEventLoopDelay } from 'node:perf_hooks';\nimport { Kafka, logLevel, type Message } from 'kafkajs';\nimport { WebSocket, WebSocketServer } from 'ws';\nimport { callError, callResult, parseCall, type InboundEvent } from './ocpp.js';\n\nconst PORT = Number(process.env.PORT ?? 9000);\nconst TOPIC = process.env.TOPIC ?? 'ocpp.inbound.v1';\nconst BROKERS = (process.env.BROKERS ?? 'localhost:19092').split(',');\nconst FLUSH_MS = Number(process.env.FLUSH_MS ?? 5);\nconst BOOT_RATE = Number(process.env.BOOT_RATE ?? 0); // accepted BootNotifications per second, 0 = unlimited\n\nconst kafka = new Kafka({ clientId: `ocpp-gw-${process.pid}`, brokers: BROKERS, logLevel: logLevel.WARN });\nconst producer = kafka.producer({ allowAutoTopicCreation: false });\n\ntype Pending = { msg: Message; ack: () => void };\nlet pending: Pending[] = [];\nlet flushing = false;\nconst stats = { connections: 0, published: 0, failed: 0, bootPending: 0 };\n\n// Load shedding for reconnect storms: above BOOT_RATE/s, answer \"Pending\" with a random retry interval.\n// OCPP 1.6: a charger in Pending state retries BootNotification after `interval` seconds.\nlet bootTokens = BOOT_RATE;\nif (BOOT_RATE > 0) setInterval(() => (bootTokens = BOOT_RATE), 1000).unref();\nfunction admitBoot(): boolean {\n  if (BOOT_RATE === 0) return true;\n  if (bootTokens <= 0) return false;\n  bootTokens--;\n  return true;\n}\n\n// Micro-batching: one Kafka request every few ms instead of one per charger message.\nasync function flush(): Promise<void> {\n  if (flushing || pending.length === 0) return;\n  flushing = true;\n  const batch = pending;\n  pending = [];\n  try {\n    await producer.send({ topic: TOPIC, acks: -1, messages: batch.map((p) => p.msg) });\n    for (const p of batch) p.ack();\n    stats.published += batch.length;\n  } catch (err) {\n    // No CALLRESULT is sent: chargers retry transaction-related messages after a timeout.\n    stats.failed += batch.length;\n    console.error(`kafka send failed (${batch.length} msgs):`, (err as Error).message);\n  } finally {\n    flushing = false;\n  }\n}\n\nfunction onMessage(cpId: string, socket: WebSocket, raw: string): void {\n  const call = parseCall(raw);\n  if (!call) return; // CALLRESULT/CALLERROR from the charger – not used in the PoC\n  const [, uniqueId, action, payload] = call;\n  switch (action) {\n    case 'BootNotification': {\n      const currentTime = new Date().toISOString();\n      if (admitBoot()) {\n        socket.send(callResult(uniqueId, { status: 'Accepted', currentTime, interval: 300 }));\n      } else {\n        stats.bootPending++;\n        socket.send(callResult(uniqueId, { status: 'Pending', currentTime, interval: 30 + Math.floor(Math.random() * 90) }));\n      }\n      return;\n    }\n    case 'Heartbeat':\n      socket.send(callResult(uniqueId, { currentTime: new Date().toISOString() }));\n      return;\n    case 'MeterValues':\n    case 'StatusNotification': {\n      const event: InboundEvent = { cpId, action, uniqueId, receivedAt: Date.now(), payload };\n      pending.push({\n        msg: { key: cpId, value: JSON.stringify(event) }, // key = charger → per-charger ordering\n        ack: () => {\n          if (socket.readyState === WebSocket.OPEN) socket.send(callResult(uniqueId));\n        },\n      });\n      return;\n    }\n    default:\n      socket.send(callError(uniqueId, 'NotImplemented', `${action} is out of PoC scope`));\n  }\n}\n\n// TLS like OCPP security profile 2 (the NLB passes TLS through, the gateway terminates it).\nconst reject = (_req: IncomingMessage, res: ServerResponse) => res.writeHead(426).end('Upgrade Required');\nconst { TLS_CERT, TLS_KEY } = process.env;\nconst server =\n  TLS_CERT && TLS_KEY ? createTlsServer({ cert: readFileSync(TLS_CERT), key: readFileSync(TLS_KEY) }, reject) : createServer(reject);\nconst wss = new WebSocketServer({\n  server,\n  handleProtocols: (protocols) => (protocols.has('ocpp1.6') ? 'ocpp1.6' : false),\n});\n\nwss.on('connection', (socket, req) => {\n  // OCPP-J: the charge point identity is the last segment of the URL, e.g. /ocpp/VG-WAW-00042\n  const cpId = decodeURIComponent(req.url?.split('/').pop() ?? '');\n  if (socket.protocol !== 'ocpp1.6' || !/^[A-Za-z0-9._-]{1,48}$/.test(cpId)) {\n    socket.close(1002, 'ocpp1.6 subprotocol and a valid charge point id are required');\n    return;\n  }\n  stats.connections++;\n  socket.on('message', (data) => onMessage(cpId, socket, data.toString()));\n  socket.on('close', () => stats.connections--);\n});\n\nconst loopDelay = monitorEventLoopDelay({ resolution: 10 });\nloopDelay.enable();\nlet lastPublished = 0;\nsetInterval(() => {\n  const rate = (stats.published - lastPublished) / 10;\n  lastPublished = stats.published;\n  const p99 = (loopDelay.percentile(99) / 1e6).toFixed(1);\n  const rss = Math.round(process.memoryUsage().rss / 1024 / 1024);\n  console.log(\n    `conn=${stats.connections} published/s=${rate.toFixed(0)} failed=${stats.failed} queue=${pending.length} boot_pending=${stats.bootPending} loop_p99=${p99}ms rss=${rss}MB`,\n  );\n  loopDelay.reset();\n}, 10_000).unref();\n\nconst flushTimer = setInterval(() => void flush(), FLUSH_MS);\n\nasync function shutdown(): Promise<void> {\n  console.log('shutting down: closing sockets, flushing the last batch');\n  clearInterval(flushTimer);\n  for (const ws of wss.clients) ws.close(1001, 'gateway restart'); // chargers reconnect to another instance\n  await flush();\n  await producer.disconnect();\n  server.close(() => process.exit(0));\n}\nprocess.on('SIGTERM', () => void shutdown());\nprocess.on('SIGINT', () => void shutdown());\n\nawait producer.connect();\nconst scheme = TLS_CERT ? 'wss' : 'ws';\nserver.listen(PORT, () => console.log(`OCPP gateway ${scheme}://0.0.0.0:${PORT}/ocpp/<chargePointId> → ${TOPIC} @ ${BROKERS.join(',')}`));"}]}]}]},"toc":[{"id":"poc-spike-prototype-mvp-pilot-how-they-differ","text":"PoC, spike, prototype, MVP, pilot – how they differ","level":2,"locked":false},{"id":"when-a-poc-is-needed-and-when-it-is-not","text":"When a PoC is needed – and when it is not","level":2,"locked":false},{"id":"hypothesis-and-measurable-success-criteria","text":"Hypothesis and measurable success criteria","level":2,"locked":false},{"id":"timebox-and-scope-cut","text":"Timebox and scope cut","level":2,"locked":false},{"id":"example-poc-01-telemetry-from-10-000-chargers","text":"Example: PoC-01 – telemetry from 10,000 chargers","level":2,"locked":false},{"id":"project-and-how-to-run-it","text":"Project and how to run it","level":3,"locked":false},{"id":"ocpp-frames-and-the-gateway","text":"OCPP frames and the gateway","level":3,"locked":false},{"id":"the-consumer-latency-and-gaps","text":"The consumer: latency and gaps","level":3,"locked":true},{"id":"the-k6-script-2-500-chargers-per-generator","text":"The k6 script: 2,500 chargers per generator","level":3,"locked":true},{"id":"reconnect-storm-the-result-that-changed-the-design","text":"Reconnect storm: the result that changed the design","level":3,"locked":true},{"id":"the-results-report","text":"The results report","level":2,"locked":true},{"id":"the-go-no-go-decision-and-the-adr","text":"The go/no-go decision and the ADR","level":2,"locked":true},{"id":"traps-that-ruin-a-poc","text":"Traps that ruin a PoC","level":2,"locked":true},{"id":"tools-for-a-poc","text":"Tools for a PoC","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":85,"visibleBlocks":40,"resources":[{"id":"6b0857b73c96f2d34d0b3c02","type":"podcast","provider":"apple-podcasts","url":"https://podcasts.apple.com/pl/podcast/mvp-poc-pot-przestan-mieszac-te-trzy-rzeczy/id1477067604?i=1000769038113","embedUrl":"https://embed.podcasts.apple.com/us/podcast/id1477067604?i=1000769038113","title":"MVP, POC, POT - przestań mieszać te trzy rzeczy","description":"“The POC must deliver a fully functional production capable MVP.” Autentyczny cytat od klienta, który Łukasz wyciąga z Teamsów jak dowód rzeczowy w sprawie o zbiorowe pomieszanie pojęć. Brzmi znajomo? 🎯 MVP, POC, POT - trzy skróty, które w korporacji zlały się w jedno bezkształtne coś. Szymon…","author":"Patoarchitekci","thumbnailUrl":"https://is1-ssl.mzstatic.com/image/thumb/Podcasts211/v4/12/ab/89/12ab890a-3ba9-28fc-a8b9-be26723bf3f8/mza_1118503093741563394.jpg/600x600bb.jpg","durationSec":1537,"lang":"pl","topics":[],"techs":["general"],"tags":["podcast","security"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"itunes","publishedAt":"2026-05-22T06:00:04.000Z","popularity":68,"verifiedAt":"2026-11-26T11:07:41.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:53.924Z","updatedAt":"2026-11-26T16:00:53.924Z"},{"id":"6b09ab5e3c96f2d34d0bc20c","type":"video","provider":"youtube","url":"https://www.youtube.com/watch?v=65qOqfbQV2Y","embedUrl":"https://www.youtube-nocookie.com/embed/65qOqfbQV2Y","title":"Lesson 181 - Feasibility and Questioning Requirements","description":"Mark Richards on feasibility – an often overlooked architectural characteristic shaped by time, budget and skills – and on questioning \"requirements\" that are really solutions handed down by stakeholders.","author":"Software Architecture Monday","thumbnailUrl":"https://i.ytimg.com/vi/65qOqfbQV2Y/hqdefault.jpg","durationSec":null,"lang":"en","topics":["solution-architecture"],"techs":["general"],"tags":["software-architecture","feasibility","requirements"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"manual","publishedAt":"2024-02-26T00: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":"6b09ab5e3c96f2d34d0bc20f","type":"video","provider":"youtube","url":"https://www.youtube.com/watch?v=iJ2KKO7sbvU","embedUrl":"https://www.youtube-nocookie.com/embed/iJ2KKO7sbvU","title":"Lesson206 - Architecture Decisions: Overcoming Analysis Paralysis","description":"Anti-patterns behind analysis paralysis in architecture decisions – stubbornness, missing information, fear of being wrong – and two techniques that help you decide and move on.","author":"Software Architecture Monday","thumbnailUrl":"https://i.ytimg.com/vi/iJ2KKO7sbvU/hqdefault.jpg","durationSec":null,"lang":"en","topics":["solution-architecture"],"techs":["general"],"tags":["software-architecture","architecture-decisions"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"manual","publishedAt":"2025-04-07T00:00:00.000Z","popularity":57,"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":"6b0857b83c96f2d34d0b3c87","type":"podcast","provider":"apple-podcasts","url":"https://podcasts.apple.com/pl/podcast/85-o-architectural-kata-i-procesie-tworzenia-architektury/id1508298430?i=1000653265837","embedUrl":"https://embed.podcasts.apple.com/us/podcast/id1508298430?i=1000653265837","title":"85. O Architectural Kata i procesie tworzenia architektury z Piotrem Filipowiczem","description":"\"Jak mamy pozyskać świetnych architektów, jeśli w swojej karierze będą mieli okazję ją tworzyć mniej niż pół tuzina razy?\". Dokładnie takie pytania postawił Ted Neward, szukając sposobu na doskonalenie umiejętności tworzenia architektury. I trudno się tu nie zgodzić, patrząc jak często w zespołach…","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":3440,"lang":"pl","topics":[],"techs":["general"],"tags":["podcast","software-architecture"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"itunes","publishedAt":"2024-04-22T23:00:00.000Z","popularity":62,"verifiedAt":"2026-11-26T11:07:44.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:55.661Z","updatedAt":"2026-11-26T16:00:55.661Z"},{"id":"6b09ab5e3c96f2d34d0bc20b","type":"video","provider":"youtube","url":"https://www.youtube.com/watch?v=41NVge3_cYo","embedUrl":"https://www.youtube-nocookie.com/embed/41NVge3_cYo","title":"SATURN 2017 Talk: Architecture Decision Records in Action","description":"A SATURN 2017 conference talk (Software Engineering Institute) on using Architecture Decision Records in practice: what goes into an ADR, how teams adopt them and what they learned along the way.","author":"Software Engineering Institute | Carnegie Mellon University","thumbnailUrl":"https://i.ytimg.com/vi/41NVge3_cYo/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":null,"popularity":62,"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":"6b0857b93c96f2d34d0b3d09","type":"podcast","provider":"apple-podcasts","url":"https://podcasts.apple.com/us/podcast/adr-czyli-architecture-decision-record/id1477067604?i=1000456242255","embedUrl":"https://embed.podcasts.apple.com/us/podcast/id1477067604?i=1000456242255","title":"ADR, czyli Architecture Decision Record","description":"13 odcinek, więc warto zająć się dokumentacją. Dokumentacja większość osób boli, szczególnie dokumentowanie przyczyn podjęcia decyzji. ADR, czyli Architecture Decision Record to metoda, która jest prosta, dobra i, mimo że formalna (częściowo ;-)) to bardzo wygodna w użyciu! Ciekawe linki i inne…","author":"Patoarchitekci","thumbnailUrl":"https://is1-ssl.mzstatic.com/image/thumb/Podcasts221/v4/b5/c0/3b/b5c03bc3-51ed-0f38-a1d1-d104c923f52d/mza_14281507814274290979.jpg/600x600bb.jpg","durationSec":1911,"lang":"pl","topics":[],"techs":["general"],"tags":["podcast","software-architecture","cloud"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"itunes","publishedAt":"2019-11-08T18:51:05.000Z","popularity":59,"verifiedAt":"2026-11-26T10:59:15.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:55.661Z","updatedAt":"2026-11-26T16:00:55.661Z"},{"id":"6b09ab5e3c96f2d34d0bc214","type":"article","provider":"web","url":"https://grafana.com/docs/k6/latest/","embedUrl":null,"title":"Grafana k6 documentation","description":"Official k6 documentation: writing load tests in JavaScript, scenarios and executors, thresholds, WebSocket and gRPC testing, distributed runs and sending results to Grafana.","author":"Grafana Labs","thumbnailUrl":"https://grafana.com/meta-generator/Grafana+k6@@@k6-docs@@@3.png","durationSec":null,"lang":"en","topics":["solution-architecture"],"techs":["general"],"tags":["load-testing","k6","performance"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"manual","publishedAt":null,"popularity":62,"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":"6b09ab5e3c96f2d34d0bc216","type":"article","provider":"web","url":"https://testcontainers.com/","embedUrl":null,"title":"Testcontainers","description":"Open-source libraries for throwaway Docker-based dependencies in tests – databases, Kafka, Redpanda, LocalStack and more – for Java, .NET, Node.js, Go, Python and other languages.","author":"Testcontainers","thumbnailUrl":"https://testcontainers.com//images/share-image.png","durationSec":null,"lang":"en","topics":["solution-architecture"],"techs":["general"],"tags":["testing","docker","integration-testing"],"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"}],"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":false},{"slug":"poc-guide","title":"PoC, spike, prototype, MVP – how to plan and run a PoC (with a working example)","current":true},{"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":"hld-complete-example","title":"A complete HLD by example: the VoltGo charging network – document, diagrams, ADRs and tools"},"next":{"slug":"sa-decisions-and-adr","title":"Architecture decisions and ADRs: how to choose, weigh trade-offs and record the “why”"},"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}]}}