Computer Engineering is coming soon

We're still writing and reviewing the notes for every subject, and we'll open it when every subject is ready. Meanwhile you can practise aptitude, ask Aria about any subject, or see the branches that are ready.

Why blockchain: limits of centralised systems and adoption

Why blockchain: limits of centralised systems and factors that affect blockchain adoption, explained from first principles for computer engineering students.

Drafted with Aria, reviewed by the AiCanCode.org team · Updated . How we write and check our notes. Spotted an error? Use Give Feedback at the bottom of the page.

Why it matters

Blockchain is useful where engineers must design systems that do not require a single trusted authority, resist censorship and single points of failure, and provide verifiable shared facts across distrustful parties. Understanding the limits of centralised systems explains why decentralised solutions such as blockchain are adopted in finance, supply chain, identity and other areas.

Key ideas

Define terms before use (simple English):

  • Centralised system: a system where one node or authority (the central authority) controls decision making, data storage or service access for all participants. Draw a star topology: one central server in the centre, client nodes around, arrows from clients to the central server.
  • Decentralised system: a system where control and/or data are distributed among multiple nodes; no single authority has full control. Draw a peer-to-peer mesh: many nodes connected in multiple edges; label as peers.
  • Single point of failure (SPOF): a component whose failure causes the entire system to fail. In a centralised system the central server is typically a SPOF.
  • Censorship resistance: the property that no single actor can prevent a valid transaction or message from being accepted by the system.
  • Trustless (in blockchain context): participants do not need to trust any single counterparty or central server because the protocol enforces correct behaviour through cryptography and consensus rules.
  • Sybil attack / Sybil resistance: a Sybil attack is where one adversary creates many identities to gain disproportionate influence; permissionless blockchains resist this via resource-based identities (e.g., proof of work or proof of stake).
  • Fault tolerance: the ability of a system to continue operating correctly despite failures of some components. Measured as the maximum number of faulty nodes the system tolerates under a specified fault model.
  • Byzantine fault: a failure mode in which a node behaves arbitrarily (it may lie, collude, be malicious or send conflicting information).
  • Byzantine fault tolerance (BFT): the property of a protocol to reach correct consensus despite some fraction of nodes being Byzantine.
  • Safety and liveness: safety means nothing bad happens (e.g., no two non-faulty nodes decide different values); liveness means something good eventually happens (e.g., all non-faulty nodes eventually decide). State which property is being discussed in exam answers.
  • CAP theorem: in any distributed data system, it is impossible to simultaneously provide more than two of the following three guarantees during a network partition: Consistency, Availability, Partition tolerance. Define subterms:
    • Consistency (C): every read receives the most recent write (or an error). In formal terms: linearizability or strong consistency depending on context; state the required definition used for an exam.
    • Availability (A): every request to a non-failing node eventually receives a non-error response (it may be stale).
    • Partition tolerance (P): the system continues to operate despite arbitrary message loss or delay between nodes (a network partition). Formal statement (common university formulation): "In the presence of network partitions, a distributed system must choose either consistency or availability; it cannot guarantee both." Assumptions: asynchronous network where partitions can occur; nodes may fail by crashing but not necessarily Byzantine (CAP is about crash/failure/partition tradeoffs).

Why centralised systems fail in use-cases that motivate blockchain

  • SPOF and uptime: if the central node fails, entire service stops. That breaks availability and creates operational risk.
  • Trust and audit: central operator can alter logs, censor transactions or misreport state; auditors must trust operator or demand trusted third-party audits.
  • Censorship and permissioning: central operator can refuse service to certain users or transactions.
  • Scalability bottlenecks: a single node must handle all requests; scaling requires expensive vertical scaling or complex sharding.
  • Cross-organisation coordination: when multiple organisations share data but do not trust each other (banks, suppliers), centralised shared ledger requires a trusted third party; this creates business and legal friction.

How blockchain addresses these limits (brief, since other topics cover details):

  • Consensus algorithms replace trust in a single authority with a distributed decision mechanism. (See topics: Consensus and the Byzantine generals problem, Proof of work, Proof of stake.)
  • Cryptographic primitives ensure immutability and verifiability (covered in later topics: hash functions, digital signatures, Merkle trees).
  • Decentralisation removes single points of failure and increases censorship resistance at the cost of new trade-offs (throughput, latency, energy, complexity).

Exact definitions and derivations that exams ask for

  • Reliability of composed subsystems (used to compare centralised vs replicated designs):
    • For components in series (system fails if any component fails), system reliability R_series = Π_i R_i. Assumption: component failures are independent.
    • For n identical components in parallel (system fails only if every component fails), system reliability R_parallel = 1 - Π_i (1 - R_i) = 1 - (1 - R)^n for identical R. Derivation: probability all fail = Π (1 - R_i); system succeeds = 1 minus that.
  • CAP theorem: give the formal statement and state assumptions (as above). Many exam answers must explain with a partition example: show two nodes A and B, network link fails (partition). If both accept writes, they become inconsistent (violating C). If only one accepts writes, the other is unavailable to writes (violating A). So you must choose.
  • FLP impossibility (informal): in a fully asynchronous network with even one crash-faulty process, no deterministic consensus protocol can guarantee both safety and liveness; practical systems assume partial synchrony or use randomization.
  • Byzantine agreement (informal formalism): A protocol achieves Byzantine fault tolerance for up to f faulty nodes in a network of n nodes if it guarantees all non-faulty nodes agree on the same value, and if the sender is non-faulty then the agreed value equals the sender's value. Classical result (unauthenticated/oral messages): in a fully connected synchronous network, deterministic Byzantine agreement is impossible if n ≤ 3f; equivalently you need n ≥ 3f + 1 to tolerate f Byzantine faults with deterministic protocols. State assumptions: synchronous (bounded message delays), authenticated messages or not; if unauthenticated (oral messages) this is the Lamport-Shostak-Pease result.

Diagrams to draw and label (describe):

  • Centralised system: draw one box labelled "Central server (SPOF)" in centre; draw 6 client nodes around; arrows from clients to server for reads/writes. Label: "Client requests go via central server" and annotate "SPOF, single trust boundary, scaling limit".
  • Decentralised peer-to-peer: draw 6 nodes in a circle, connect each to several others, label "Peers"; annotate "No single authority, replicated ledger, consensus among peers".
  • Network partition example for CAP: draw two groups of nodes separated by a broken link; show separate clients writing to each partition and annotate the conflict that produces either unavailability or inconsistency.

Formulas

R_series = Π_i R_i — R_series is system reliability for series composition; R_i is reliability (probability of functioning) of component i (unitless); applies when system fails if any component fails; assumptions: independent failures. R_parallel = 1 - Π_i (1 - R_i) — R_parallel is reliability for parallel redundancy; same symbols and assumptions; for identical components R_parallel = 1 - (1 - R)^n where n is number of replicas. Availability_downtime_hours_per_year = (1 - A) · 8760 h — A is availability (fraction between 0 and 1), 8760 h = hours in 365 days; applies when availability measured over one year. TPS = transactions / second — TPS is throughput; units: transactions·s^-1; used to compare capacity of centralised vs blockchain systems (no strict universal formula; measure empirically).

Worked examples

  1. Reliability numeric comparison (exam-style) Given: a centralised server has availability A_c = 0.995. An engineer can deploy three independent replicas and accept the system as available if any replica is up (parallel). Each replica has availability A_r = 0.995 and failures are independent. Compare yearly downtime. Steps:
  1. Centralised downtime per year = (1 - A_c) · 8760 h = 0.005 · 8760 h = 43.8 h/year.
  2. Parallel system availability: A_parallel = 1 - (1 - A_r)^3 = 1 - 0.005^3 = 1 - 1.25e-7 = 0.999999875.
  3. Parallel system downtime per year = (1 - 0.999999875) · 8760 h = 1.25e-7 · 8760 = 1.095e-3 h ≈ 0.0657 min ≈ 3.94 s/year. Final answers: centralised downtime ≈ 43.8 hours/year; 3-replica parallel downtime ≈ 4 seconds/year. (Assumptions: independent failures, no shared infrastructure failure, simple availability model.)
  1. Sketch-answer (long exam question) — "Explain the limits of centralised systems and why blockchain can help; list trade-offs." Model answer outline (full-marks content):
  • Define centralised system, SPOF, trust.
  • Give 4 concrete limits with examples: uptime risk, censorship, auditability/tamper risk, coordination cost between distrustful parties.
  • Explain blockchain primitives that address each limit: distributed ledger + consensus (removes SPOF, improves auditability), cryptographic hashes + immutable chain (tamper evidence), economic incentives (discourage misbehaviour), permissioning models (private/consortium chains) for enterprise needs.
  • Discuss trade-offs: increased latency, lower TPS, energy or economic cost (PoW), complexity of governance and legal/regulatory risk. Mention CAP trade-off and that many blockchains prefer partition tolerance + eventual consistency.
  • Conclude with typical adoption drivers: need for shared immutable record between distrustful parties, regulatory compliance, or censorship resistance; if not needed, centralised systems often remain better.
  1. Diagram-based example for CAP (short) Task: Draw two nodes A and B, remove the link between them (partition). Show a client at A writes X=1; client at B writes X=2. Explain the choice: to keep availability both must accept writes → inconsistency; to keep consistency one side must refuse writes → unavailability. Conclude: cannot have both C and A under partition.

Common mistakes

  • Misstating the CAP theorem: common error is claiming CAP always applies even without partitions. CAP is about trade-offs when partitions occur.
  • Mixing crash-fault models and Byzantine models: do not use crash-tolerance formula (e.g., Paxos) when the problem requires Byzantine tolerance (BFT needs n ≥ 3f + 1 under certain assumptions).
  • Overclaiming that blockchain removes trust entirely; correct phrasing: it reduces trust in a single party by relying on protocol rules, economic incentives and cryptography — but trust shifts to the protocol, its incentives and majority of participants.
  • Using absolute numbers for adoption costs (like exact energy of Bitcoin) without citing updated figures — these change over time.

For your exam

Question types you will see: definitions and short notes (define centralised/decentralised, SPOF, CAP), derivations (derive series/parallel reliability), diagram questions (draw centralised vs peer-to-peer and label SPOF), long answers (advantages/disadvantages of blockchain adoption), and small numericals (availability/downtime calculations, simple probability of majority control). A full-marks answer includes: precise definitions (bold important term in your answer), assumptions stated, stepwise derivations with units where applicable, and trade-offs discussed.

Quick check

  1. Define a single point of failure in one line.
  2. State the CAP theorem in one sentence.
  3. For identical replicas with availability 0.99 and n = 2 in parallel, compute system availability (show numeric). Answers: 1) A component whose failure causes the whole system to fail. 2) Under network partitions, a distributed system cannot guarantee both consistency and availability; it must trade one for the other. 3) A_parallel = 1 - (1 - 0.99)^2 = 1 - 0.01^2 = 1 - 0.0001 = 0.9999 (i.e., 99.99%).

(Reviewer note: I have kept explanations plain. Where I used numerical examples and reliability arithmetic, please verify the arithmetic and the assumptions listed.)

Finished this topic? Mark it so your progress, study plan and readiness keep up.

Stuck on something here?