keepcalculator

06 Numbers and Powers

Blockchain vs Database: When Does Distributed Trust Win?

Card No. 06·32310 · Updated · Standard formula, shown below

Blockchain ledgers and conventional databases both store data, but they answer different questions: a database asks “who can change this record?” while a blockchain asks “how do we agree on this record without trusting anyone?” Distributed trust justifies the trade-offs only when you need multiple parties who don’t fully trust each other to share a single, tamper-evident source of truth, and when the cost of coordination is lower than the cost of disputes or fraud. For everything else, a conventional database is faster, cheaper, and simpler.

What a Conventional Database Is and How It Works

A conventional database (like PostgreSQL, MySQL, or SQL Server) is a centralized system. One organization controls the server, decides who can read or write, and can change or delete records. It uses a client-server model: applications connect to the database, authenticate, and run queries. The database manager enforces rules, handles backups, and can be tuned for high performance.

Key characteristics:

  • Single point of control: the owner can modify or delete data.
  • High throughput: thousands of transactions per second on a single server.
  • Low latency: queries return in milliseconds.
  • Easy to change: schema updates, corrections, and deletions are straightforward.
  • Cost-effective: one server or a small cluster is far cheaper than a distributed network.

This model works well when you trust the operator. A bank’s internal ledger, an e-commerce inventory system, or a hospital’s patient records are all examples where a single authority is acceptable.

What a Blockchain Ledger Is and How It Works

A blockchain is a distributed ledger that maintains a growing list of records (blocks) linked by cryptography. Each block contains a hash of the previous block, a timestamp, and transaction data. The ledger is replicated across many nodes (computers) that each hold a full copy. New blocks are added through a consensus mechanism—such as proof of work or proof of stake—that requires a majority of nodes to agree on the valid state.

Key characteristics:

  • Decentralized control: no single party owns the data; changes require network consensus.
  • Immutability: altering a past block would require re-computing all subsequent blocks and controlling a majority of the network, which is computationally impractical on a large public chain.
  • Transparency: anyone (or any authorized participant) can verify the entire history.
  • Lower throughput: public blockchains like Bitcoin process about 7 transactions per second; Ethereum around 15-30. Even private blockchains are slower than a centralized database.
  • Higher cost: running multiple nodes, paying for storage, and paying consensus fees (like gas on Ethereum) add up.

Blockchains are not a general-purpose database. They are a coordination technology for situations where trust is the bottleneck.

When Distributed Trust Justifies the Trade-Offs

Distributed trust is worth it when the following conditions are all true:

  • Multiple independent parties need to share data, and no single party is acceptable as the sole authority.
  • Disputes or fraud are costly — for example, verifying provenance, auditing supply chains, or recording land titles.
  • You need a tamper-evident audit trail that all parties can verify without relying on a central intermediary.
  • The parties are not willing to trust each other or a central operator enough to let one control the data.

Concrete examples:

  • Supply chain tracking: Multiple companies (grower, shipper, retailer) need to record each handoff. A blockchain lets each party append its own data without trusting the others to keep honest records, and any party can verify the history.
  • Cross-border payments: Banks in different countries often don’t trust each other’s ledgers. A shared ledger (like a permissioned blockchain) can reduce settlement time from days to minutes by removing the need for a central clearinghouse.
  • Digital identity: A user wants to prove credentials without relying on a single issuer. A blockchain can anchor claims so that verifiers can check them without contacting the issuer each time.
  • Intellectual property registration: Creators can timestamp a hash of their work on a public blockchain to prove existence at a certain date, without needing a trusted notary.

In these cases, the cost of running the blockchain is less than the cost of the disputes, delays, or fraud that a centralized system would allow.

When a Conventional Database Is the Better Choice

If you don’t need distributed trust, a blockchain is almost always the wrong tool. Here are common situations where a database wins:

  • You control all the data and users. Example: an internal HR system. There is no reason to pay for decentralization.
  • You need to edit or delete data. Blockchains are append-only by design. If your business requires corrections (like fixing a typo in a customer’s address), a database is far more practical.
  • You need high performance and low cost. A database can handle 100,000 transactions per second on modest hardware; a blockchain cannot.
  • You need privacy. Public blockchains expose data to all nodes. Private blockchains restrict access, but then you are back to trusting the network operators—which defeats the purpose.
  • You need complex queries. SQL databases excel at joins, aggregations, and ad-hoc analytics. Blockchains are not designed for that.

A good rule of thumb: if you can name the single organization that should own the data, use a database. If you cannot, and you genuinely need multiple parties to verify each other, consider a blockchain.

Common Problems and Misconceptions

Misconception 1: “Blockchain is immutable, so it’s more secure.” Immutability only helps if the data written is correct. If a bad actor writes false data (e.g., a fake shipment record), the blockchain will preserve that lie forever. Also, private blockchains are often controlled by a few nodes, so they are not truly immutable—the operators could collude to rewrite history.

Misconception 2: “Blockchain eliminates the need for trust.” It reduces the need to trust a single party, but you still trust the majority of the network, the code, and the oracle (the source that feeds real-world data into the chain). If the oracle lies, the blockchain records the lie.

Misconception 3: “Blockchain is always slower and more expensive.” True for public blockchains, but permissioned blockchains (like Hyperledger Fabric) can be faster than a public chain, though still slower than a centralized database. However, they also reintroduce a degree of central control.

Common problem: key management. If a user loses their private key, they lose access to their data permanently. There is no “reset password” on a blockchain. This is a major usability barrier for many applications.

Common problem: regulatory compliance. Data protection laws like GDPR require the right to erasure. Blockchains’ immutability conflicts with this. Solutions like storing data off-chain and only keeping hashes on-chain are common workarounds, but they add complexity.

Costs and Performance Comparison

It’s helpful to see the numbers side by side:

  • Transaction throughput: PostgreSQL can handle tens of thousands of transactions per second on a single server. Bitcoin does about 7. Ethereum about 15-30. Permissioned blockchains like Hyperledger Fabric can reach thousands, but still far less than a database.
  • Latency: A database query returns in 1-10 ms. A blockchain transaction confirmation takes seconds (private) to minutes (public).
  • Storage cost: A database stores only the current state. A blockchain stores the entire history, and every node stores a full copy. For a large dataset, this is orders of magnitude more expensive.
  • Operational cost: A database runs on one server. A blockchain requires multiple nodes, each with its own hardware, power, and maintenance. On a public chain, you also pay transaction fees.

These differences are not trivial. For a typical business application, a blockchain would be 10-100 times slower and 10-100 times more expensive per transaction.

How to Choose: A Decision Framework

Ask yourself these questions in order:

  1. Do multiple parties need to write data? If only one party writes, use a database.
  2. Do those parties trust each other (or a central operator) enough to share a single database? If yes, use a database.
  3. Could a central operator be biased, corrupt, or a single point of failure? If no, use a database.
  4. Do you need to edit or delete data? If yes, a database is much easier.
  5. Do you need high throughput or low latency? If yes, a database.
  6. If you answered “no” to all of the above, then consider a blockchain. Even then, look at permissioned blockchains first—they are more practical for most enterprises.

Also consider hybrid approaches: use a database for the operational data and a blockchain for the audit trail (hash of each record). This gives you the best of both worlds and is a common pattern in real-world implementations.

Alternatives to a Full Blockchain

If you need some of blockchain’s benefits but not all, consider these lighter-weight options:

  • Signed append-only logs: Use a database with cryptographic hashes and digital signatures. This gives you tamper-evidence without the distributed consensus. For example, a company can publish a daily hash of its log to a public bulletin board.
  • Distributed database with strong consistency: Tools like etcd or ZooKeeper provide consensus among a few trusted nodes. They are not blockchains but offer fault tolerance.
  • Notary services: For timestamping documents, you can use a trusted third party or a service that anchors hashes to a public blockchain (like Bitcoin). This gives you the proof without running your own chain.
  • Permissioned blockchain frameworks: If you need multiple organizations to share a ledger but want control over who participates, Hyperledger Fabric or Corda might be suitable. They are more efficient than public blockchains but still require significant infrastructure.

Frequently Asked Questions

Can a blockchain be hacked? Public blockchains with strong hash power (like Bitcoin) are extremely resistant to tampering because an attacker would need to control more than 50% of the network’s computing power. However, smart contract bugs, exchange hacks, and private key theft are common attack vectors. Private blockchains are more vulnerable because they have fewer nodes, so a coalition of validators could rewrite history.

Is blockchain the same as Bitcoin? No. Bitcoin is a cryptocurrency that runs on a blockchain. Blockchain is the underlying technology—a distributed ledger. There are many blockchains that do not involve cryptocurrencies, such as those used for supply chain tracking or identity management.

Why are blockchains so slow? Because every node must validate every transaction and reach consensus. In a database, only one server processes the request. The redundancy that makes blockchains secure also makes them slow. This is the core trade-off.

Can I store large files on a blockchain? Technically yes, but it’s extremely expensive and inefficient. Most applications store only a hash of the file on-chain and keep the actual file in a conventional storage system (like IPFS or a cloud server). This gives you the tamper-evidence without the cost.

What is a permissioned blockchain? A blockchain where the nodes are pre-approved by a central authority or consortium. It’s faster and cheaper than a public blockchain, but it sacrifices decentralization—you trust the permission-granting body. It’s a middle ground for enterprise use.

When should I definitely not use a blockchain? If you need to edit or delete data, if you have a single trusted operator, if you need high performance, or if you need to comply with data erasure regulations. In those cases, a conventional database is almost certainly the right choice.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →