- Immutable, auditable history: QLDB preserves a tamper-evident audit trail of every change.
- Verifiability: Cryptographic hashing and digest proofs let you verify the integrity of the ledger.
- Managed service: QLDB is fully managed and serverless, minimizing operational overhead.
- SQL-like querying: PartiQL provides familiar query semantics over document data stored in Amazon Ion.
- ACID transactions: Ensures correctness for transactional workloads requiring strict consistency.
- Mutability: Updates and deletes overwrite records and erase history.
- Limited transparency: Historical changes are not always accessible or verifiable.
- Centralization risk: Single-owner systems can introduce trust and availability concerns.
- Single points of failure: An outage can make the whole system unavailable.
- No built-in consensus or verifiability: Traditional databases lack cryptographic proofs for audit.
- Weak privacy controls for ledger-style selective disclosure.

How QLDB works
At the core of QLDB is an append-only journal that records every successful write (insert, update, delete) as an immutable journal block. The journal stores:- the entry documents (in Amazon Ion),
- the PartiQL statements executed,
- transaction metadata (timestamps, block IDs),
- cryptographic hashes linking blocks together.
- Current table: the latest state of each document for efficient read access.
- History table: a complete, immutable record of all prior versions for auditing.
- First sale: a journal block is appended with the sale record; Current and History reflect the initial state.
- Subsequent sale: a new block is appended, Current is updated to the new owner, and History gets an additional version.
- Each block is sequenced and chained; the entire sequence is cryptographically verifiable.

Cryptographic verification: hash-chaining and proofs
QLDB chains journal blocks using SHA-256 hashes. Each block contains a hash that links it to the previous block, producing an immutable sequence. QLDB exposes:- a digest for a ledger at a point in time,
- Merkle-style (Merkle tree) audit proofs to prove existence or non-existence of a document at a given revision,
- APIs to verify that a returned result corresponds to the latest digest.

Important: QLDB provides cryptographic proof and an immutable journal, but it is operated by a single trusted authority (the ledger owner). QLDB is not a decentralized blockchain platform; it is a centralized, verifiable ledger optimized for auditability and provenance.
Key technical details (at a glance)
PartiQL sample queries
Insert a document:Typical use cases
- Financial transaction ledgers (auditable purchase and settlement records)
- Supply chain provenance (track item lifecycle and origin)
- Claims history and regulatory records (verifiable audit trails and evidence)
- Any system requiring full data lineage and cryptographic verification


Warning: QLDB is operated by a single trusted entity and is not a decentralized ledger with consensus across untrusted parties. Choose a different blockchain platform if you need distributed trust without a central authority.
Summary
- Amazon QLDB is a fully managed ledger database that delivers a transparent, immutable, and cryptographically verifiable transaction journal that an owner controls.
- The journal is append-only, sequenced, and hash-chained; each transaction is recorded as a block with documents, PartiQL statements, and metadata.
- QLDB presents data via Current and History logical tables: fast access to the latest state and a complete immutable history for audits and provenance.
- It combines enterprise-grade ACID transactions, PartiQL query compatibility, Amazon Ion document flexibility, and cryptographic proofs for verifiability.

Links and references
- AWS QLDB documentation: https://docs.aws.amazon.com/qldb/latest/developerguide/what-is.html
- PartiQL: https://partiql.org/
- Amazon Ion: https://amzn.github.io/ion-docs/
- QLDB concepts and cryptographic verification: https://docs.aws.amazon.com/qldb/latest/developerguide/cryptographic-verification.html