Blockchain Architecture

Chapter 8
Scalability, Performance and Interoperability

Diploma in Blockchain
Blockchain Architecture   •   Diploma

Scalability, Performance and Interoperability

Introduction

A blockchain is valuable only when it can provide trustworthy shared state at an acceptable cost and speed. Early blockchains demonstrated decentralised value transfer, but their performance was generally far below that of conventional payment networks and databases. As blockchain applications expanded to decentralised finance, gaming, supply-chain management, identity, and enterprise coordination, three engineering requirements became central: scalability, performance, and interoperability.

Scalability concerns how a system responds to increasing users, transactions, data, and participating nodes. Performance concerns measurable behaviour such as throughput, latency, confirmation time, storage growth, and resource consumption. Interoperability concerns the ability of independent ledgers and applications to exchange messages, assets, and proofs safely.

These requirements create difficult trade-offs. Increasing block size may increase throughput but also increase bandwidth and storage requirements. Reducing validator requirements may improve speed but weaken decentralisation. Connecting chains through bridges may improve liquidity and usability but introduce additional security assumptions. This chapter examines these trade-offs and the principal architectural solutions: sharding, sidechains, state channels, rollups, Layer 2 systems, bridges, cross-chain protocols, and modular blockchain designs.

Learning Objectives

By the end of this chapter, a learner should be able to:

  1. Define and measure blockchain throughput, latency, finality, storage growth, and resource utilisation.
  2. Explain the blockchain trilemma and evaluate its architectural consequences.
  3. Compare monolithic and modular blockchain architectures.
  4. Describe sharding, sidechains, state channels, rollups, and other Layer 2 designs.
  5. Explain bridge architectures and identify their trust and security assumptions.
  6. Apply performance metrics to a blockchain design decision.
  7. Assess scalability and interoperability solutions in a professional or enterprise context.

1. Performance Foundations

1.1 Throughput

Throughput is the amount of useful work completed per unit of time. In a transaction system it is commonly reported as transactions per second (TPS):

TPS = N / ∆t

where N is the number of valid transactions processed and ∆t is the measurement interval in seconds. The metric must state whether it represents theoretical capacity, benchmark throughput, or sustained production throughput. It must also specify transaction complexity, because a simple transfer and a complex smart-contract execution do not consume equal resources.

A more useful measure for heterogeneous workloads is resource-normalised throughput, such as transactions per second per million gas units or operations per CPU-second. Reported TPS can otherwise be misleading.

1.2 Latency and finality

Latency is the elapsed time between submission and a defined result. Several latencies should be distinguished:

  • Submission latency: time for a transaction to reach a node.
  • Inclusion latency: time until it is included in a block or batch.
  • Execution latency: time required to execute it.
  • Economic finality latency: time until reversal is economically impractical.
  • Settlement latency: time until an external system treats the result as settled.

For a transaction, a simple decomposition is:

Ttotal = Tpropagation + Tqueue + Texecution + Tconsensus + Tfinality

The terms are approximate components, measured in seconds, and may overlap in pipelined systems. Therefore this equation is a design model rather than an exact universal identity. In probabilistic-finality systems, confidence increases with additional blocks; in deterministic-finality systems, finality may occur once a protocol certificate is formed.

1.3 Capacity, demand, and queueing

If transaction arrival rate λ approaches service rate μ, queues grow and latency becomes unstable. A simplified single-server queue assumes independent arrivals, a constant service process, and stable demand. Under those assumptions, utilisation is:

ρ = λ / μ

where λ and μ are transactions per second and ρ is dimensionless. Stable operation requires ρ < 1. Real blockchains are not simple single-server queues: they have batching, bursty demand, fee markets, execution dependencies, and multiple resource constraints. Nevertheless, the model explains why a chain operating near maximum capacity can experience disproportionate increases in fees and confirmation time.

1.4 Storage and state growth

A chain’s storage burden includes block data, transaction indexes, receipts, account or contract state, and historical records. A simplified annual growth estimate is:

Gyear = r × s × secondsyear

where r is sustained transaction rate in transactions per second, s is average stored bytes per transaction, and seconds_year is the number of seconds in a year. This excludes state overhead, indexes, replication, compression effects, and protocol metadata. If every full node stores a complete copy, replicated storage multiplies the physical infrastructure requirement even though logical chain growth remains G_year.

Storage affects decentralisation. If ordinary participants cannot afford to run full nodes, validation may become concentrated among professional operators.

2. The Blockchain Trilemma

The blockchain trilemma is the claim that a system cannot simultaneously maximise decentralisation, security, and scalability under all conditions. It is not a formal theorem with universally fixed definitions; it is an engineering framework for understanding trade-offs.

  • Decentralisation refers to the distribution of authority, infrastructure, and control. Relevant indicators include the number and diversity of validators, hardware accessibility, client diversity, and resistance to censorship.
  • Security includes resistance to double spending, invalid state transitions, censorship, denial of service, key compromise, and consensus attacks.
  • Scalability concerns capacity, latency, cost, and the ability to handle growth.

For example, larger blocks can increase transactions per second, but they require faster networking and more storage. A restricted validator set can reduce communication overhead and improve throughput, but authority becomes more concentrated. Off-chain execution can improve user experience, but users may rely on operators, data availability committees, or cryptographic proofs.

The trilemma should therefore be analysed as a set of measurable compromises rather than as a slogan. A design document should state the threat model, validator assumptions, data availability assumptions, finality model, and target workload.

3. Scaling Strategies

3.1 Optimising a monolithic chain

A monolithic blockchain performs consensus, transaction execution, data availability, and settlement within one integrated system. Improvements may include efficient virtual machines, parallel transaction execution, compact data structures, better networking, signature aggregation, state pruning, and more efficient databases.

Parallel execution is possible when transactions access independent state. A scheduler can identify conflicts and execute non-conflicting transactions concurrently. However, transactions that read or write the same account, contract storage location, or shared object must be ordered consistently. Parallelism therefore improves throughput only when the workload contains sufficient independence.

Increasing block size or block frequency can also increase capacity, but both changes raise propagation and validation demands. If a significant number of validators cannot receive and verify blocks promptly, fork risk or centralisation pressure may increase.

3.2 Sharding

Sharding divides a blockchain’s workload or state across multiple partitions called shards. Each shard processes a subset of transactions, while a coordination mechanism maintains global consistency. In execution sharding, different shards execute different transactions. In data sharding, the principal objective is to make large amounts of data available for Layer 2 systems without requiring every node to execute every transaction.

A sharded design must address:

  1. Assignment: how accounts or transactions are mapped to shards.
  2. Cross-shard communication: how one shard invokes or depends on another.
  3. Consensus security: how validators are assigned and whether an attacker can capture a shard.
  4. Data availability: how participants verify that required data has been published.
  5. Reconfiguration: how validators or state move as the network changes.

Cross-shard transactions may require asynchronous messages. This can increase latency and complicate atomicity. Random validator assignment and frequent reshuffling can reduce the risk of targeted capture, but the security analysis depends on the consensus protocol and attacker model.

3.3 Sidechains

A sidechain is an independent blockchain connected to another chain through a bridge or asset-transfer mechanism. It may use different consensus rules, block times, virtual machines, and governance. A sidechain does not automatically inherit the security of its connected chain. Its security depends on its own validators, bridge design, and operational controls.

Sidechains are useful when an application needs lower fees, specialised execution, or a different governance model. Their principal risk is that users may treat the sidechain as if it had the security of the main chain when it does not.

3.4 State channels

State channels allow a group of participants to conduct many interactions off-chain while periodically committing commitments or dispute transactions to a base chain. A typical lifecycle is:

  1. Participants lock collateral on-chain.
  2. They exchange signed state updates off-chain.
  3. The latest valid state determines balances or outcomes.
  4. A participant can close the channel cooperatively or invoke a dispute process.
  5. The base chain enforces the final result.

Channels provide low latency and high transaction capacity for repeated interactions, such as payments or games. They require participants to monitor the chain or delegate monitoring, manage liquidity, and handle channel topology. They are less convenient for arbitrary interactions among constantly changing participants.

3.5 Rollups and Layer 2 systems

A Layer 2 system executes transactions away from the base layer and uses the base layer for settlement, dispute resolution, or data availability. The term includes several architectures and should not be treated as a guarantee of security.

Optimistic rollups execute transactions off-chain and publish transaction data or state commitments to the base chain. A challenge period allows a verifier to dispute an invalid state transition. Their security depends on data availability, the correctness of the dispute mechanism, and the presence of an honest or sufficiently responsive challenger.

Validity rollups, often called zero-knowledge rollups, publish a cryptographic proof that a state transition is valid. The base layer verifies the proof rather than re-executing every transaction. Proof generation may be computationally expensive, and proving complex programs can require specialised engineering. A valid proof does not by itself guarantee that users can recover their funds if required data is unavailable; data availability remains essential.

A simplified rollup state-transition model is:

S_(t+1) = F(St, Bt)

where S_t is the prior state, B_t is a batch of transactions, and F is the deterministic state-transition function. A validity proof establishes that the claimed next state was correctly derived under the protocol rules. The notation assumes deterministic execution and a well-defined encoding of the batch.

Other Layer 2 designs include validiums, which keep transaction data off the base chain and therefore introduce additional data-availability assumptions, and plasma-like systems, which use hierarchical commitments and exit mechanisms. Designers must distinguish settlement security from operator availability and data availability.

4. Interoperability and Cross-Chain Architecture

Interoperability enables chains to exchange information or value. The strongest form is not merely token movement; it includes authenticated messages, verifiable event proofs, replay protection, ordering rules, failure handling, and clear finality assumptions.

4.1 Bridge models

A bridge commonly follows one of four models:

ModelMain trust assumptionTypical strengthMain risk
Trusted custodianA custodian controls locked assetsOperational simplicityCustodian theft or failure
Multisignature federationA threshold of signers is honestFlexible and fastKey compromise or collusion
Light-client bridgeDestination verifies source consensus proofsStrong cryptographic verificationComplexity and cost
Optimistic bridgeInvalid messages can be challengedLower routine verification costChallenge assumptions and delay

A lock-and-mint bridge locks an asset on the source chain and mints a representation on the destination. A burn-and-mint bridge burns the representation and releases or creates the native asset elsewhere. A liquidity bridge uses pools and market makers rather than a strict one-to-one lock representation. Each model has distinct liquidity, solvency, and security properties.

A bridge must prevent replay attacks, double minting, forged messages, incorrect chain identifiers, stale proofs, and unauthorised validator changes. It should also define what happens if the source chain reorganises or becomes unavailable.

4.2 Message-passing protocols

Cross-chain protocols can transmit arbitrary messages, not only assets. A source contract emits an event; a relayer transports evidence; a verification mechanism authenticates the event; and a destination contract executes the message. Relayers may be permissionless or selected. The security of the message depends on the verifier, not merely on the relayer.

Interoperability is difficult because chains differ in finality, virtual machines, cryptographic primitives, timestamps, transaction ordering, and governance. A protocol that assumes deterministic finality may behave incorrectly when connected to a chain with probabilistic finality. Adapters must explicitly model these differences.

5. Modular Blockchain Design

A modular blockchain separates responsibilities that a monolithic chain performs together. The principal functions are:

  • Execution: processing transactions and updating state.
  • Settlement: verifying proofs, resolving disputes, and finalising commitments.
  • Consensus: agreeing on the ordering and canonical history.
  • Data availability: ensuring that transaction data needed for verification can be obtained.

A modular architecture may place these functions on different layers or networks. This permits specialisation: one layer may offer inexpensive data publication, another may provide execution environments, and another may provide settlement.

Modularity improves flexibility and can increase aggregate scalability, but it also creates dependency chains. If an execution layer depends on a data-availability layer, a bridge, a sequencer, and a settlement contract, the combined system inherits risks from each component. Engineers should construct a trust map showing which components can censor, reorder, halt, steal, or falsify information.

A common operational issue is the sequencer. A centralised sequencer can provide fast ordering and low fees, but introduces censorship and availability risk. Shared or decentralised sequencing can reduce this risk, although it adds protocol complexity and may affect latency.

6. Worked Performance Example

Consider an illustrative Layer 2 system that processes 2,400 transactions in a 60-second interval. Its measured throughput is:

TPS = 2,400 ÷ 60 = 40 transactions per second

Suppose each transaction contributes an average of 180 bytes to published data. Ignoring headers, proofs, indexes, and replication, the annual logical data contribution at sustained throughput is:

Gyear = 40 × 180 × 31,536,000
= 227,059,200,000 bytes
≈ 227.1 GB

The calculation uses 31,536,000 seconds per 365-day year and decimal gigabytes. Actual storage will be higher because of metadata, indexes, state, proof data, and node-specific copies. If demand rises to 80 TPS while publication capacity remains unchanged, users may face increased queueing, higher fees, or rejected transactions. The appropriate response might be compression, more data capacity, workload partitioning, or an additional execution layer—not simply a larger advertised TPS number.

7. Applied Case: Illustrative Supply-Chain Network

Background

A consortium of manufacturers, logistics firms, and retailers uses a permissioned blockchain to record shipment events. The original network has twelve validating organisations and processes approximately 15 transactions per second. During seasonal demand, event submission latency rises from seconds to several minutes. Partners also want selected records anchored to a public blockchain for independent timestamping.

Problem

The consortium faces three problems: burst capacity, selective public verification, and confidentiality. Publishing every commercial event publicly would expose sensitive information and create excessive cost. However, keeping all records private reduces external verifiability.

Analysis

A larger monolithic block could improve capacity, but it would not solve confidentiality or public anchoring. A public sidechain would improve openness but introduce a new validator and governance model. A Layer 2-style batching design can aggregate private events, publish a commitment to a public settlement chain, and preserve detailed records within the consortium.

Approach

The consortium adopts the following architecture:

  1. Private validators order and execute detailed shipment events.
  2. Events are grouped into batches and assigned a Merkle root.
  3. The batch root and selected metadata are anchored periodically to a public chain.
  4. An auditor receives a Merkle proof showing that a particular event belongs to an anchored batch.
  5. Access control restricts the detailed event data to authorised parties.
  6. A governance agreement defines validator admission, key rotation, dispute handling, and service levels.

This is not automatically equivalent to a trustless public rollup. The consortium still controls event availability and validator membership. The public anchor proves inclusion in a committed batch, but it does not prove that the original event was truthful.

Outcome

The design reduces public-chain transactions because many events are represented by one commitment. It improves auditability while preserving confidentiality. Its remaining risks include collusion among consortium members, unavailable private data, incorrect off-chain records, and compromise of signing keys.

Learning Points

The case demonstrates that scalability and interoperability are requirements-driven. A system should not adopt a public bridge, rollup, or sidechain merely because it is fashionable. The appropriate architecture depends on the required trust model, privacy level, data volume, finality, and governance structure.

8. Security, Governance and Regulatory Considerations

Scaling and interoperability expand the attack surface. Bridge contracts often hold large collateral balances, making them attractive targets. Formal verification, independent audits, rate limits, withdrawal delays, anomaly detection, and emergency procedures can reduce—but not eliminate—risk.

Governance must specify who can upgrade contracts, change validator sets, pause withdrawals, alter fee parameters, or select sequencers. Upgrade keys should use threshold control, time locks, transparent announcements, and documented emergency powers. These mechanisms create a balance between rapid incident response and protection against unilateral abuse.

Privacy also requires attention. Public data is durable and may reveal commercial relationships, financial activity, or personal information. Data minimisation, selective disclosure, encryption, and jurisdictionally appropriate compliance controls are important. Zero-knowledge proofs may demonstrate a claim without revealing all underlying data, but they do not automatically solve identity, consent, or legal accountability.

Regulatory treatment varies by jurisdiction and may depend on whether a system provides custody, exchange, payment, financial intermediation, or infrastructure services. Organisations should obtain appropriate legal advice and maintain records of control, incident response, and risk ownership.

9. Best-Practice Design Framework

A professional evaluation should proceed in the following order:

  1. Define workload: transaction types, peak demand, data size, read/write ratio, and dependency patterns.
  2. Define finality: required confirmation time and acceptable reversal probability.
  3. Define trust assumptions: honest validators, honest challengers, available data, relayer behaviour, and administrator powers.
  4. Measure baseline performance: sustained TPS, peak TPS, p50 and p95 latency, failure rate, fee distribution, and storage growth.
  5. Select the scaling boundary: optimise the base layer, use a channel, rollup, sidechain, shard, or modular service.
  6. Analyse failure modes: censorship, sequencer outage, bridge compromise, data unavailability, chain reorganisation, and key loss.
  7. Test economic sustainability: validator revenue, user fees, proof costs, liquidity requirements, and hardware costs.
  8. Design observability: logs, metrics, alerts, proof verification, and incident playbooks.
  9. Review governance and compliance: upgrade authority, dispute rules, privacy, and regulatory obligations.
  10. Benchmark honestly: disclose workload, hardware, network conditions, batching, and whether figures are theoretical or sustained.

Contemporary Developments

Current research and engineering increasingly focus on data availability sampling, decentralised sequencing, proof aggregation, recursive validity proofs, shared security, interoperability standards, and intent-based execution. Data availability sampling aims to let nodes gain confidence that large data blobs are available without downloading all of them. Recursive proofs can represent many computations in a compact proof structure. Intent-based systems allow users to specify desired outcomes while solvers determine execution routes, although solver competition and settlement guarantees require careful design.

Artificial intelligence can assist with capacity forecasting, anomaly detection, fee estimation, and smart-contract testing. It should not be treated as a consensus authority unless its outputs are independently verifiable and deterministic where required. An AI-generated optimisation that changes transaction ordering or risk parameters must remain subject to explicit protocol rules and human governance.

Chapter Summary

Scalability is multidimensional: throughput, latency, finality, cost, and storage must be considered together. Queueing explains why systems operating near capacity can experience rapidly increasing delay. The blockchain trilemma highlights trade-offs among decentralisation, security, and scalability, but practical analysis requires a clear threat model and measurable assumptions.

Monolithic optimisation can improve efficiency, while sharding divides workload or data across partitions. Sidechains provide independent execution but do not automatically inherit the security of a main chain. State channels support rapid repeated interactions off-chain. Rollups move execution away from the base layer while using settlement, proofs, or published data to obtain security properties. Bridges and cross-chain protocols enable interoperability but introduce trust, finality, and message-authentication risks. Modular architectures separate execution, settlement, consensus, and data availability, increasing flexibility while creating dependency chains.

A sound professional design begins with workload and trust requirements, measures performance honestly, evaluates failure modes, and documents governance, privacy, and regulatory responsibilities.

Key Terms

Throughput: Amount of useful processing completed per unit of time.

Latency: Time between an action and a specified system response.

Finality: Point at which a transaction is considered settled and not practically reversible.

State growth: Increase in the persistent data required to represent blockchain state and history.

Blockchain trilemma: Framework describing trade-offs among decentralisation, security, and scalability.

Sharding: Partitioning execution, state, or data across multiple coordinated sections.

Sidechain: Independent blockchain connected to another chain through an interoperability mechanism.

State channel: Off-chain protocol that periodically commits participant state to a base chain.

Layer 2: System that executes or processes activity away from a base layer while relying on it for selected security or settlement functions.

Rollup: Layer 2 architecture that batches transactions and commits results and supporting evidence to a base chain.

Optimistic rollup: Rollup that assumes submitted state transitions are valid unless successfully challenged.

Validity rollup: Rollup that supplies a cryptographic proof of correct state transition.

Data availability: Property that required transaction data can be obtained for verification or recovery.

Bridge: Protocol enabling assets or messages to move between blockchain environments.

Light-client bridge: Bridge in which the destination verifies source-chain consensus evidence.

Sequencer: Component that orders transactions for a Layer 2 or modular execution system.

Modular blockchain: Architecture separating execution, settlement, consensus, and data-availability functions.

Cross-chain message: Authenticated information transmitted from one blockchain environment to another.

Probabilistic finality: Finality whose confidence increases as additional blocks or confirmations accumulate.

Deterministic finality: Finality established by a protocol certificate or rule once specified conditions are met.

Review Questions

Short Answer Questions

  1. Distinguish throughput from latency.
  2. Why can storage growth affect blockchain decentralisation?
  3. What is the principal security difference between a sidechain and a rollup?
  4. What role does data availability play in a Layer 2 system?
  5. Identify two risks associated with blockchain bridges.

Long Answer Questions

  1. Explain the blockchain trilemma and illustrate each trade-off with an architectural example.
  2. Compare state channels, optimistic rollups, and validity rollups in terms of execution, settlement, data availability, and user experience.
  3. Describe the principal design challenges of sharding.
  4. Explain how modular blockchain architecture separates execution, consensus, settlement, and data availability.
  5. Develop a professional framework for benchmarking a blockchain network.

Analytical / Application Questions

  1. A network processes 900 transactions in 30 seconds. Calculate its throughput and explain why the result may not represent sustainable production capacity.
  2. A consortium requires private data, public timestamping, and moderate transaction volume. Recommend an architecture and state its principal trust assumptions.
  3. A bridge uses five signers and requires three signatures for withdrawals. Analyse the consequences of two compromised signers, three compromised signers, and temporary signer unavailability.

Multiple Choice Questions with Answers

Question 1

Which metric measures the number of valid transactions processed per second?

A. Latency

B. Throughput

C. Finality

D. Storage growth

Correct Answer: B. Throughput

Question 2

In the simplified queueing model, what does ρ = λ ÷ μ represent?

A. Validator count

B. Block size

C. System utilisation

D. Transaction fee

Correct Answer: C. System utilisation

Question 3

What is a defining feature of a state channel?

A. All interactions are executed on the base chain

B. Participants exchange signed updates off-chain and settle on-chain

C. It requires every chain to share one validator set

D. It eliminates the need for collateral

Correct Answer: B. Participants exchange signed updates off-chain and settle on-chain

Question 4

Which scaling method divides workload or data across coordinated partitions?

A. Sharding

B. Custodial bridging

C. Pruning only

D. Key rotation

Correct Answer: A. Sharding

Question 5

What does an optimistic rollup generally assume about a submitted state transition?

A. It is invalid until a validator approves it

B. It is valid unless successfully challenged

C. It requires no data to be published

D. It must be executed by every user

Correct Answer: B. It is valid unless successfully challenged

Question 6

Which bridge model relies most directly on verification of source-chain consensus evidence?

A. Trusted custodian bridge

B. Multisignature federation

C. Light-client bridge

D. Liquidity-only bridge

Correct Answer: C. Light-client bridge

Question 7

Which function ensures that data required for verification or recovery can be obtained?

A. Data availability

B. Token burning

C. Fee discovery

D. Block compression

Correct Answer: A. Data availability

Question 8

A system processes 2,400 transactions in 60 seconds. What is its measured throughput?

A. 4 TPS

B. 24 TPS

C. 40 TPS

D. 144 TPS

Correct Answer: C. 40 TPS

Question 9

Which statement about a sidechain is correct?

A. It automatically inherits the full security of its main chain

B. It is an independent blockchain with its own security assumptions

C. It cannot use a bridge

D. It must use zero-knowledge proofs

Correct Answer: B. It is an independent blockchain with its own security assumptions

Question 10

Which component commonly orders transactions in a Layer 2 system?

A. Sequencer

B. Custodian

C. Indexer only

D. Hash function

Correct Answer: A. Sequencer

Blockchain Architecture
Chapter 8 of 14