Data, distributed systems & security handbook
Data, Distributed Systems & Cybersecurity Knowledge Hub
Understand the data. Trust the system. Check yourself.
Data and security architecture explained simply: Kafka, event-driven systems and stream processing; distributed transactions, CQRS, Saga and consistency; data platforms, governance and data security; threat modelling, AI security and FinTech regulations, with interactive diagrams, system designs and quick checks.
This handbook covers the parts of enterprise architecture where data moves between systems, systems disagree, and attackers and regulators pay attention. For each building block it explains what it does, why it exists, how the pieces fit together and what goes wrong in production. Every article follows the same structure: a simple definition, the problem, the core concepts with diagrams and flows, practical guidance, common mistakes, and a quick check with answers. Key flows are interactive Archify diagrams you can zoom, explore through guided views and export.
The handbook has four modules and a self-review section:
- Kafka, Event-Driven Systems & Stream Processing: Kafka internals with KRaft, share groups and tiered storage; producers, consumers and exactly-once; event-driven architecture; schemas and event contracts; stream processing with Flink and Kafka Streams; and a real-time payments design.
- Distributed Transactions, CQRS, Saga & Consistency: consistency models, CAP, PACELC and consensus; why 2PC rarely fits microservices; outbox, CDC and idempotency; sagas; CQRS and event sourcing; and an order-processing design.
- Data Platforms, Governance & Data Security: lakehouse and streaming platforms, Iceberg and data mesh; governance, catalogs, lineage, quality and data contracts; data security and privacy engineering; and a regulated data platform design.
- Threat Modelling, AI Security & FinTech Regulations: threat modelling with STRIDE and friends; security architecture with zero trust, OWASP Top 10:2025, supply chain and post-quantum cryptography; AI and agent security; FinTech regulations (PCI DSS, DORA, PSD3, GDPR, the EU AI Act, and India’s DPDP, RBI and SEBI rules); and a secure payments platform design.
- Self Review & Quick Check: quick-check questions for every module, a design review checklist and a one-page quick reference.
Start here
- Kafka architectureHow Kafka works inside: topics, partitions and offsets, brokers and replication (leaders, ISR, min.insync.replicas), KRaft controllers, consumer groups and share groups (queues), retention, compaction and tiered storage, and how to size and operate a cluster.
- Event-driven architectureDesigning systems around events: events vs commands vs queries, the four event patterns (notification, event-carried state transfer, event sourcing, CQRS), choreography vs orchestration, topic and event design, ordering, idempotency, versioning, observability, and when not to go event-driven.
- Saga patternManaging business transactions across services with sagas: local transactions and compensations, choreography vs orchestration, saga state machines, pivot and retriable steps, isolation countermeasures (semantic locks, commutative updates), durable execution with Temporal, and testing and observability.
- Data platform architectureHow modern data platforms are built: warehouse vs lake vs lakehouse, open table formats (Apache Iceberg v3, Delta Lake, Hudi), catalogs (Polaris, Unity Catalog), medallion layers, batch and streaming ingestion, query engines, data mesh and data products, and platforms for AI.
- Threat modellingFinding design flaws before attackers do: the four-question framework, data flow diagrams and trust boundaries, STRIDE per element, PASTA, LINDDUN for privacy, attack trees, MITRE ATT&CK and ATLAS, risk rating with DREAD, CVSS and FAIR, threat modelling AI and agent systems, tools, and fitting it into agile delivery.
- Quick checkOver 80 short self-review questions with answers across Kafka, event-driven systems and stream processing; consistency, distributed transactions, sagas, CQRS and event sourcing; data platforms, governance and data security; threat modelling, security architecture, AI security and FinTech regulations.
Explore by topic
- Learning PathsOrdered routes through the handbook, from Kafka basics to consistency patterns, data platforms and security architecture.
- 1 · Kafka & StreamingHow Apache Kafka works inside, how to produce and consume safely, how to design event-driven systems and event contracts, and how to process streams with Flink and Kafka Streams.
- 2 · Consistency & SagasKeeping data correct across services: consistency models, CAP and PACELC, consensus, why two-phase commit rarely fits microservices, the outbox pattern, CDC and idempotency, sagas, CQRS and event sourcing.
- 3 · Data PlatformsModern data platforms (lakehouse, open table formats, streaming, data mesh), data governance (catalog, lineage, quality, contracts) and data security and privacy engineering for regulated industries.
- 4 · Security & RegulationDesigning secure systems: threat modelling, security architecture (zero trust, OWASP Top 10:2025, supply chain, cryptography), securing LLM applications and AI agents, and the FinTech regulations architects must design for.
- Self ReviewCheck your understanding with quick-check questions for every module, review data and security designs with a checklist, and keep a one-page quick reference at hand.
Recently reviewed
- Consistency & consensusWhat consistency means in distributed systems: the spectrum from linearizability to eventual consistency, session guarantees, CAP and PACELC explained correctly, quorums, Raft consensus, clocks and ordering, isolation levels, and how to choose per use case.
- Data platform architectureHow modern data platforms are built: warehouse vs lake vs lakehouse, open table formats (Apache Iceberg v3, Delta Lake, Hudi), catalogs (Polaris, Unity Catalog), medallion layers, batch and streaming ingestion, query engines, data mesh and data products, and platforms for AI.
- Kafka architectureHow Kafka works inside: topics, partitions and offsets, brokers and replication (leaders, ISR, min.insync.replicas), KRaft controllers, consumer groups and share groups (queues), retention, compaction and tiered storage, and how to size and operate a cluster.
- Quick checkOver 80 short self-review questions with answers across Kafka, event-driven systems and stream processing; consistency, distributed transactions, sagas, CQRS and event sourcing; data platforms, governance and data security; threat modelling, security architecture, AI security and FinTech regulations.
- Threat modellingFinding design flaws before attackers do: the four-question framework, data flow diagrams and trust boundaries, STRIDE per element, PASTA, LINDDUN for privacy, attack trees, MITRE ATT&CK and ATLAS, risk rating with DREAD, CVSS and FAIR, threat modelling AI and agent systems, tools, and fitting it into agile delivery.
- Data governanceMaking data findable, understood and trustworthy: governance operating model and roles, metadata and catalogs, lineage with OpenLineage, data quality dimensions and checks, data contracts, master and reference data, observability, regulatory reporting (BCBS 239) and AI data governance.