distributed ledger world state database transaction logs
This article highlights key differences between World State Database (DB) and Transaction Logs which comprise the Hyperledger Fabric Distributed Ledger.
Hyperledger Fabric Distributed Ledger can be said to be a combination of World State Database (DB) and transaction logs. It requires invocation of chaincode (smart contracts) for interacting with distributed ledgers (world state DB and transaction logs). The transactions are stored in the block in the same sequence in which they occured and this is responsibility of ordering service to ensure the ordering sequence of transactions in the block.
World State Database | Transaction Logs |
---|---|
Stores the chain’s state information in form of key-value pairs | Stores chain of blocks consisting of transaction details in form of sequence of transactions |
Stored in database such as LevelDB or CouchDB | Stored as files in peer file system (local or attached storage) |
Analogy: Classical Database such as RDBMS or NoSQL | Analogy: Write Ahead Logging (WAL) |
Can be regenerated/recreated from transaction logs | — |
Last updated: 25th Jan, 2025 Have you ever wondered how to seamlessly integrate the vast…
Hey there! As I venture into building agentic MEAN apps with LangChain.js, I wanted to…
Software-as-a-Service (SaaS) providers have long relied on traditional chatbot solutions like AWS Lex and Google…
Retrieval-Augmented Generation (RAG) is an innovative generative AI method that combines retrieval-based search with large…
The combination of Retrieval-Augmented Generation (RAG) and powerful language models enables the development of sophisticated…
Have you ever wondered how to use OpenAI APIs to create custom chatbots? With advancements…