Trends in Development of Databases and Blockchain

Trends in Development of Databases and Blockchain

Trends in Development of Databases and Blockchain Mayank Raikwar∗, Danilo Gligoroski∗, Goran Velinov† ∗ Norwegian University of Science and Technology (NTNU) Trondheim, Norway † University Ss. Cyril and Methodius Skopje, Macedonia Email: {mayank.raikwar,danilog}@ntnu.no, goran.velinov@finki.ukim.mk Abstract—This work is about the mutual influence between some features which traditional database has. Blockchain can two technologies: Databases and Blockchain. It addresses two leverage the traditional database features by either integrat- questions: 1. How the database technology has influenced the ing the traditional database with blockchain or, to create a development of blockchain technology?, and 2. How blockchain technology has influenced the introduction of new functionalities blockchain-oriented distributed database. The inclusion of the in some modern databases? For the first question, we explain how database features will leverage the blockchain with low la- database technology contributes to blockchain technology by un- tency, high throughput, fast scalability, and complex queries on locking different features such as ACID (Atomicity, Consistency, blockchain data. Thus having the features of both blockchain Isolation, and Durability) transactional consistency, rich queries, and database, the application enhances its efficiency and real-time analytics, and low latency. We explain how the CAP (Consistency, Availability, Partition tolerance) theorem known security. Many of the blockchain platforms are now integrating for databases influenced the DCS (Decentralization, Consistency, with a database. Scalability) theorem for the blockchain systems. By using an In recent years, many blockchain databases have been analogous relaxation approach as it was used for the proof of developed and introduced. These distributed databases have the CAP theorem, we postulate a ”DCS-satisfiability conjecture.” their consensus mechanism for the joint agreement on a data For the second question, we review different databases that are designed specifically for blockchain and provide most of the block by the network parties. These blockchain databases blockchain functionality like immutability, privacy, censorship support features like complex data types, rich query structure, resistance, along with database features. ACID compliant [3], low latency, fast scalability, and cloud Keywords—Blockchain, Database, Decentralization, ACID, hosting. The adoption of database features in blockchain CAP, DCS Theorem, Immutability. or vice-versa is an interesting research topic. Few indus- I. INTRODUCTION tries have already built their blockchain database with all Blockchain has gained immense popularity from the last the required features. Many companies, including database decade, acting as a distributed ledger for peer to peer trans- giants IBM, Oracle, and SAP, as well as startups such as actions in a secure and immutable way. The development of FlureeDB [4], BigchainDB [5], have devoted their efforts to blockchain pushed the market of decentralized applications develop blockchain database solutions to support SQL-like in varied enterprises such as financial markets, insurance queries. industries, supply chain industry. In this decentralized network Our Contribution. In the last decade, we witnessed a of peers, each peer has a replica of data. This decentralization tremendous interchanged and mutually influenced develop- of blockchain raises many questions on “How and where to ment of the database and blockchain technologies. A per- store data”. The problem where to store blockchain data has formance study on distributed database [9] for blockchain been somehow solved by using decentralized cloud storage has already been done, but that involves very few databases. solutions, but these solutions suffer from limited capability However, to the best of our knowledge, no work has been and user privacy matters. done towards a systematized study of those development After the invent of bitcoin [1], many questions about the trends. This work is neither about the specific cryptographic arXiv:2003.05687v1 [cs.DC] 12 Mar 2020 blockchain have been carried out as “blockchain as a database” characteristics and components of the blockchain systems or “difference between blockchain and database,” [2]. (that can be found in numerous surveys or systematization Blockchain differs from traditional databases in numerous of knowledge studies [10]) nor about the specific use of ways like its decentralization, cryptographic security using blockchain in some specific industries [11]. This work is about chained hashes, no administration control, immutability, free- providing a detailed summary of traditional databases that are dom to transfer without the permission of any central au- used or can be used in the design of blockchain platforms or thority. To cherish these differences, many enterprise appli- applications. The work is also about a detailed explanation of cations upgraded their traditional database storage solution different decentralized solutions that use traditional databases with blockchain to make their implementation more secure, but provide blockchain-enabled solutions. Finally, this paper involving less trust among the parties of the industry. Despite describes the DCS theorem and the trade-off properties present having the features mentioned above, blockchain still lacks in the blockchain systems in a similar way to the CAP theorem Influence Feature Database domain Blockchain domain direction High throughput and scalability X (in distributed databases) → To be implemented Transactions latency Low → High Serializable isolation Alternatives to 2-phase locking ← X ACID properties X → Hyperledger Fabric [6] due to CouchDB [7] Complex queries on the historic data X → Techniques such as VQL [8] Decentralization New, blockchain-style databases ← X Mechanisms that prevents deletes Immutability (tamper-resistance) ← X and record updates’ history Movement of digital assets New, blockchain-style distributed ← X databases CAP (Consistency, Availability, Partition tolerance) X → DCS (Decentralization, Consistency, Scalability) TABLE I A SUMMARY OF THE MUTUAL INFLUENCE AND THE ENTANGLED DEVELOPMENT OF DATABASES AND BLOCKCHAIN for the database systems [12]. We hope that our work will decade. Decentralization is not available in the traditional be useful for industries or academia within the blockchain distributed database. With the advent of new blockchain- as a guide for choosing the appropriate database for their style databases, the decentralization is now possible and blockchain use-cases from the list of databases mentioned. leads a promising growth to be used in many applications. Additionally, using our work, those involved in the research • One of the other excellent features of blockchain is and the development of modern databases can potentially immutability or tamper-resistance of transactions. This upgrade the functionalities of the databases that they are tamper-resistance can be achieved in database systems developing with some blockchain functionalities. by mechanisms that disallow the deletes and updates in II. MUTUAL INFLUENCE AND DEVELOPMENT the database. Blockchain and database both can achieve many function- • Blockchain allows the creation and movement of digital alities and features by coping with each other. If we frame assets, which is not allowed in a classical database. But, a blockchain as a database to provide a storage mechanism, blockchain-style distributed database can have this feature then we can analyze how it differs from actual database as a built-in feature. systems. The following are the key points where blockchain In Table I we give a summary of this mutual influence and and database differ in their properties, but both can leverage the entangled development of databases and blockchain. and enhance the characteristics of each other. III. CAP THEOREM FOR BLOCKCHAIN CAP was introduced 20 years ago by Brewer [3] as a • Traditional blockchain throughput decreases when the principle or conjecture, and two years later, it was proven in processing capacity of nodes participating in the the asynchronous network model as a CAP theorem by Gilbert blockchain increases. Yet, in the case of the distributed and Lynch in [12]. In the same paper, similar impossibility database, the throughput increases when the nodes in- results were proven for a partially synchronous network model. creases. Hence throughput can be enhanced. Additionally, by weakening the consistency conditions, they • The latency of transactions in blockchain is usually high showed that it is possible to achieve all three properties in the compared to the latency in database. Thus, the latency so-called t-Connected Consistency model. can be made low as desired with the use of a database. In more details, CAP theorem identifies the three specific • Transactions in blockchain require serializable isolation, which can be achieved by consensus algorithms pro- system properties for any distributed/decentralized system. C A P viding strong consistency. For the databases, there is These properties are onsistency, vailability and artition a well-understood mechanism called 2-phase locking Tolerance. and concurrency-control [13]. However, new blockchain • Consistency - Any read in the distributed system gives databases such as BlockchainDB [14] based on Mon- the latest write on the nodes. goDB [15] start to offer new transaction mechanisms • Availability - A Client always receives a response at any based

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    7 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us