<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>System-Design on Data, Distributed Systems &amp; Cybersecurity Knowledge Hub</title>
		<link>https://samirsahoo.github.io/data-security/tags/system-design/</link>
		<description>Recent content in System-Design on Data, Distributed Systems &amp; Cybersecurity Knowledge Hub</description>
		<generator>Hugo</generator>
		<language>en-US</language>
		
		
		
			<copyright>© 2026 Samir Kumar Sahoo (https://github.com/samirsahoo). All rights reserved.</copyright>
		
		
			<atom:link href="https://samirsahoo.github.io/data-security/tags/system-design/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>Design Review Checklist</title>
				<link>https://samirsahoo.github.io/data-security/self-review/design-review-checklist/</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>https://samirsahoo.github.io/data-security/self-review/design-review-checklist/</guid>
				<description>&lt;h2 id=&#34;how-to-use-it&#34;&gt;How to use it&lt;a class=&#34;heading-anchor&#34; href=&#34;#how-to-use-it&#34; aria-label=&#34;Link to this section&#34;&gt;#&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;p&gt;Use this checklist to review your own design before building, or a team&amp;rsquo;s design at an architecture board. Score each area 0–3 and record the evidence.&lt;/p&gt;&#xA;&lt;figure class=&#34;diagram&#34; aria-label=&#34;Ten review areas&#34;&gt;&lt;figcaption class=&#34;diagram__title&#34;&gt;Ten review areas&lt;/figcaption&gt;&#xA;  &lt;pre class=&#34;mermaid&#34;&gt;flowchart LR&#xA;    A1[&amp;#34;1 · Goals &amp;amp; NFRs&amp;#34;] --&amp;gt; A2[&amp;#34;2 · Boundaries &amp;amp; data ownership&amp;#34;] --&amp;gt; A3[&amp;#34;3 · Events &amp;amp; contracts&amp;#34;] --&amp;gt; A4[&amp;#34;4 · Consistency&amp;#34;] --&amp;gt; A5[&amp;#34;5 · Failure handling&amp;#34;]&#xA;    A5 --&amp;gt; A6[&amp;#34;6 · Data platform &amp;amp; governance&amp;#34;] --&amp;gt; A7[&amp;#34;7 · Data security &amp;amp; privacy&amp;#34;] --&amp;gt; A8[&amp;#34;8 · Threats &amp;amp; security&amp;#34;] --&amp;gt; A9[&amp;#34;9 · AI risk&amp;#34;] --&amp;gt; A10[&amp;#34;10 · Compliance &amp;amp; operations&amp;#34;]&lt;/pre&gt;&#xA;&lt;/figure&gt;&#xA;&lt;h2 id=&#34;1-goals-and-non-functional-requirements&#34;&gt;1. Goals and non-functional requirements&lt;a class=&#34;heading-anchor&#34; href=&#34;#1-goals-and-non-functional-requirements&#34; aria-label=&#34;Link to this section&#34;&gt;#&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Throughput (average and peak), latency budgets, availability, RPO and RTO stated per flow?&lt;/li&gt;&#xA;&lt;li&gt;Which flows are synchronous (the user waits) and which are asynchronous?&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Red flags:&lt;/strong&gt; &amp;ldquo;real-time&amp;rdquo; undefined; no peak numbers; one SLO for everything.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;2-boundaries-and-data-ownership&#34;&gt;2. Boundaries and data ownership&lt;a class=&#34;heading-anchor&#34; href=&#34;#2-boundaries-and-data-ownership&#34; aria-label=&#34;Link to this section&#34;&gt;#&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Each piece of data has &lt;strong&gt;one owning service&lt;/strong&gt;? No shared databases between services?&lt;/li&gt;&#xA;&lt;li&gt;Do data that must change together live together?&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Red flags:&lt;/strong&gt; services reading each other&amp;rsquo;s tables; every change spans services.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;3-events-and-contracts&#34;&gt;3. Events and contracts&lt;a class=&#34;heading-anchor&#34; href=&#34;#3-events-and-contracts&#34; aria-label=&#34;Link to this section&#34;&gt;#&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Events named as past-tense facts; integration events separated from internal ones?&lt;/li&gt;&#xA;&lt;li&gt;Keys chosen for ordering; partition count sized for growth?&lt;/li&gt;&#xA;&lt;li&gt;Schemas registered, compatibility mode chosen (transitive if replayed), CI checks in place?&lt;/li&gt;&#xA;&lt;li&gt;No secrets or unnecessary PII in events; trace context propagated?&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Red flags:&lt;/strong&gt; schemaless JSON; compatibility NONE; low-cardinality keys; PAN in events.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;4-consistency&#34;&gt;4. Consistency&lt;a class=&#34;heading-anchor&#34; href=&#34;#4-consistency&#34; aria-label=&#34;Link to this section&#34;&gt;#&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Consistency model stated per operation (strong where invariants live, eventual elsewhere)?&lt;/li&gt;&#xA;&lt;li&gt;Invariants protected inside one ACID or consensus boundary?&lt;/li&gt;&#xA;&lt;li&gt;Read-your-writes handled where users need it?&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Red flags:&lt;/strong&gt; decisions made on async replicas or read models; &amp;ldquo;eventually consistent&amp;rdquo; used as an excuse.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;5-failure-handling&#34;&gt;5. Failure handling&lt;a class=&#34;heading-anchor&#34; href=&#34;#5-failure-handling&#34; aria-label=&#34;Link to this section&#34;&gt;#&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Outbox (or equivalent) for state plus event; idempotent consumers; idempotency keys on APIs?&lt;/li&gt;&#xA;&lt;li&gt;Sagas with explicit compensations, timeouts and manual-review paths?&lt;/li&gt;&#xA;&lt;li&gt;Retries with backoff, DLTs, poison-message handling; the timeout (unknown) outcome designed?&lt;/li&gt;&#xA;&lt;li&gt;Reconciliation jobs for money and critical data?&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Red flags:&lt;/strong&gt; &lt;code&gt;@Transactional&lt;/code&gt; around remote calls; infinite retries; no compensation design.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;6-data-platform-and-governance&#34;&gt;6. Data platform and governance&lt;a class=&#34;heading-anchor&#34; href=&#34;#6-data-platform-and-governance&#34; aria-label=&#34;Link to this section&#34;&gt;#&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Open table formats and one catalog; medallion or product layers defined?&lt;/li&gt;&#xA;&lt;li&gt;Owners, contracts and quality gates per data product; lineage captured automatically?&lt;/li&gt;&#xA;&lt;li&gt;Regulatory reports traceable to source (BCBS 239)?&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Red flags:&lt;/strong&gt; copies per tool; no owners; quality checks only on final reports.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;7-data-security-and-privacy&#34;&gt;7. Data security and privacy&lt;a class=&#34;heading-anchor&#34; href=&#34;#7-data-security-and-privacy&#34; aria-label=&#34;Link to this section&#34;&gt;#&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Data classified; sensitive identifiers tokenised early; masking by default?&lt;/li&gt;&#xA;&lt;li&gt;Encryption in transit and at rest with managed keys (HSM/KMS); key separation of duties?&lt;/li&gt;&#xA;&lt;li&gt;ABAC or row and column security; JIT access to restricted data; access recertification?&lt;/li&gt;&#xA;&lt;li&gt;Residency, retention and erasure (including immutable stores) designed?&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Red flags:&lt;/strong&gt; production data in test; PII in logs and prompts; &amp;ldquo;we encrypt the disk&amp;rdquo; as the only control.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;8-threats-and-security-architecture&#34;&gt;8. Threats and security architecture&lt;a class=&#34;heading-anchor&#34; href=&#34;#8-threats-and-security-architecture&#34; aria-label=&#34;Link to this section&#34;&gt;#&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Current threat model (DFD, trust boundaries, STRIDE, LINDDUN for personal data)?&lt;/li&gt;&#xA;&lt;li&gt;Zero trust: strong user and workload identity, mTLS, per-object authorisation?&lt;/li&gt;&#xA;&lt;li&gt;Supply chain: SBOM, signing, provenance, admission policy; secrets dynamic and short-lived?&lt;/li&gt;&#xA;&lt;li&gt;Crypto inventory and crypto-agility for PQC?&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Red flags:&lt;/strong&gt; trusted internal network; authorisation only at the gateway; long-lived static credentials.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;9-ai-risk&#34;&gt;9. AI risk&lt;a class=&#34;heading-anchor&#34; href=&#34;#9-ai-risk&#34; aria-label=&#34;Link to this section&#34;&gt;#&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;AI use cases inventoried and classified (EU AI Act tier)?&lt;/li&gt;&#xA;&lt;li&gt;Least agency, user-scoped tools, human approval for consequential actions?&lt;/li&gt;&#xA;&lt;li&gt;Permission-aware RAG; output validation; token and cost limits?&lt;/li&gt;&#xA;&lt;li&gt;Red-teamed and continuously evaluated; traces kept?&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Red flags:&lt;/strong&gt; agents with service-account superpowers; security rules only in the system prompt.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;10-compliance-and-operations&#34;&gt;10. Compliance and operations&lt;a class=&#34;heading-anchor&#34; href=&#34;#10-compliance-and-operations&#34; aria-label=&#34;Link to this section&#34;&gt;#&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Applicable regulations listed (PCI DSS, DORA, PSD2/3, GDPR/DPDP, RBI, CERT-In, SEBI, AI Act); controls mapped once to many?&lt;/li&gt;&#xA;&lt;li&gt;Incident detection, classification and reporting clocks (4/6/24/72 h) automated and rehearsed?&lt;/li&gt;&#xA;&lt;li&gt;Resilience testing, restore tests, third-party register and exit plans?&lt;/li&gt;&#xA;&lt;li&gt;Monitoring: lag, DLTs, saga states, quality, access anomalies, cost?&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Red flags:&lt;/strong&gt; compliance as an annual project; paper-only incident plans; unknown ICT dependencies.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;scoring-rubric&#34;&gt;Scoring rubric&lt;a class=&#34;heading-anchor&#34; href=&#34;#scoring-rubric&#34; aria-label=&#34;Link to this section&#34;&gt;#&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;div class=&#34;table-wrap&#34; tabindex=&#34;0&#34; role=&#34;region&#34; aria-label=&#34;Table&#34;&gt;&#xA;&lt;table&gt;&#xA;  &lt;thead&gt;&#xA;    &lt;tr&gt;&#xA;      &lt;th&gt;Score&lt;/th&gt;&#xA;      &lt;th&gt;Meaning&lt;/th&gt;&#xA;    &lt;/tr&gt;&#xA;  &lt;/thead&gt;&#xA;  &lt;tbody&gt;&#xA;    &lt;tr&gt;&#xA;      &lt;td&gt;0&lt;/td&gt;&#xA;      &lt;td&gt;Not considered&lt;/td&gt;&#xA;    &lt;/tr&gt;&#xA;    &lt;tr&gt;&#xA;      &lt;td&gt;1&lt;/td&gt;&#xA;      &lt;td&gt;Considered, but not designed&lt;/td&gt;&#xA;    &lt;/tr&gt;&#xA;    &lt;tr&gt;&#xA;      &lt;td&gt;2&lt;/td&gt;&#xA;      &lt;td&gt;Designed, but not yet verified&lt;/td&gt;&#xA;    &lt;/tr&gt;&#xA;    &lt;tr&gt;&#xA;      &lt;td&gt;3&lt;/td&gt;&#xA;      &lt;td&gt;Designed and verified (tests, evidence, drills)&lt;/td&gt;&#xA;    &lt;/tr&gt;&#xA;  &lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;/div&gt;&#xA;&lt;p&gt;A design is &lt;strong&gt;ready to build&lt;/strong&gt; at an average of at least 2 with no zeros in areas 4, 5, 7 or 8. It is &lt;strong&gt;ready for production&lt;/strong&gt; at 3 in all applicable areas.&lt;/p&gt;</description>
			</item>
			<item>
				<title>System Design: A Governed Data Platform for a Bank</title>
				<link>https://samirsahoo.github.io/data-security/data-platforms/case-study-regulated-data-platform/</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>https://samirsahoo.github.io/data-security/data-platforms/case-study-regulated-data-platform/</guid>
				<description>&lt;h2 id=&#34;the-design-brief&#34;&gt;The design brief&lt;a class=&#34;heading-anchor&#34; href=&#34;#the-design-brief&#34; aria-label=&#34;Link to this section&#34;&gt;#&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;blockquote&gt;&lt;p&gt;&lt;em&gt;&amp;ldquo;A bank operating in the EU and India wants one data platform for regulatory reporting, risk, fraud analytics, customer insights and GenAI. Today it has three warehouses, a Hadoop lake and hundreds of spreadsheet reports with conflicting numbers. Regulators have criticised its risk data aggregation.&amp;rdquo;&lt;/em&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;</description>
			</item>
			<item>
				<title>System Design: A Secure, Compliant Payments Platform</title>
				<link>https://samirsahoo.github.io/data-security/security/case-study-secure-payments-platform/</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>https://samirsahoo.github.io/data-security/security/case-study-secure-payments-platform/</guid>
				<description>&lt;h2 id=&#34;the-design-brief&#34;&gt;The design brief&lt;a class=&#34;heading-anchor&#34; href=&#34;#the-design-brief&#34; aria-label=&#34;Link to this section&#34;&gt;#&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;blockquote&gt;&lt;p&gt;&lt;em&gt;&amp;ldquo;A digital bank operating in the EU and India is launching card and account-to-account payments, an open-banking API for partners, and a GenAI assistant that answers customer questions and can initiate small transfers. Design the security architecture so that it is PCI DSS, DORA, PSD2/PSD3, GDPR/DPDP and RBI compliant, and can withstand a determined attacker.&amp;rdquo;&lt;/em&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;</description>
			</item>
			<item>
				<title>System Design: Order Processing Across Microservices</title>
				<link>https://samirsahoo.github.io/data-security/distributed/case-study-order-saga/</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>https://samirsahoo.github.io/data-security/distributed/case-study-order-saga/</guid>
				<description>&lt;h2 id=&#34;the-design-brief&#34;&gt;The design brief&lt;a class=&#34;heading-anchor&#34; href=&#34;#the-design-brief&#34; aria-label=&#34;Link to this section&#34;&gt;#&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;blockquote&gt;&lt;p&gt;&lt;em&gt;&amp;ldquo;Customers buy products online. An order must reserve stock, take payment and book delivery. Customers track their order in real time. Peak is 2,000 orders per second during sales. We must never charge for an order we cannot fulfil, and never ship an unpaid order.&amp;rdquo;&lt;/em&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;</description>
			</item>
			<item>
				<title>System Design: Event-Driven Real-Time Payments</title>
				<link>https://samirsahoo.github.io/data-security/streaming/case-study-real-time-payments/</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>https://samirsahoo.github.io/data-security/streaming/case-study-real-time-payments/</guid>
				<description>&lt;h2 id=&#34;the-design-brief&#34;&gt;The design brief&lt;a class=&#34;heading-anchor&#34; href=&#34;#the-design-brief&#34; aria-label=&#34;Link to this section&#34;&gt;#&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;blockquote&gt;&lt;p&gt;&lt;em&gt;&amp;ldquo;Design the core of a bank&amp;rsquo;s instant payments service. Customers send money from mobile and web; payments must settle in under 10 seconds, end to end, 24×7. Each payment must be fraud-checked, posted to the ledger exactly once, notified to both parties and reconciled with the scheme daily.&amp;rdquo;&lt;/em&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;</description>
			</item>
	</channel>
</rss>
