Philosophy of blockchain Technology
From the perspective of technology and architecture, I will tell you my understanding of blockchain in common language
what is blockchain? In a word, blockchain is a storage system. To be more specific, blockchain is a distributed storage system without an administrator and each node has all the data
What are the common storage systems like
first, how to ensure high availability
the common storage system usually uses "rendancy" to solve the problem of high availability. As shown in the figure above, if the data can be copied into several copies and rendant to multiple places, high availability can be guaranteed. The data in one place is hung, and there is data in other places. For example, the master-slave cluster of MySQL is the same principle, and the raid of disk is also the same principle
two points need to be emphasized in this place are: data rendancy often leads to consistency problems
1. For example, in the master-slave cluster of MySQL, there is actually a delay in reading and writing, which means there is a inconsistency in reading and writing in a short period of time. This is a side effect of data rendancy
The second point is that data rendancy often reces the efficiency of writing, because data synchronization also consumes resources. If you add two slave libraries, the write efficiency will be affected. The common storage system is to use rendancy to ensure the high availability of dataso the second question, ordinary storage system, can write more
the answer is yes, for example, take this graph as an example:
in fact, MySQL can do a master-slave synchronization of al masters, master-slave synchronization of al masters, two nodes can be written at the same time. If you want to do a multi room multi live data center, in fact, multi room multi live data synchronization. What we should emphasize here is that multi-point writing often leads to the consistency problem of writing conflicts. Take MySQL as an example, suppose that the attribute of a table is self incrementing ID, then the data in the database is 1234 now. If one of the nodes writes and inserts a piece of data, it may become 5, and then these 5 pieces of data are synchronized to another master node, Before synchronization, if another write node inserts a piece of data, a piece of data with self incrementing ID of 5 will be generated. Then, after the generation, synchronize to another node, and the synchronized data will conflict with the two local 5's after it arrives, which will lead to synchronization failure and write consistency conflict. This problem will occur in the case of multi-point writing
how to ensure consistency in multi-point writing
the reform "Swan class" gives you more technical work
2. Blockchain is an innovative application mode of distributed data storage, point-to-point transmission, consensus mechanism, encryption algorithm and other computer technologies in the Internet era. In recent years, the development and application of blockchain is of great significance to technological innovation and instrial revolution. This experience introces the relevant knowledge of blockchain technology
3. Blockchain is a distributed ledger, which can contain financial and / or non-financial transactions. It can be replicated (distributed) on multiple systems in almost real time through peer-to-peer network. Each participant "owns" the same ledger and gets updated when adding any transaction. Each participant helps to determine the inherent "invariance" of all existing records, Using cryptography and digital signature to prove identity, authenticity and enforce read / write access, there is a mechanism that makes it difficult to change history, and it is easy to detect someone trying to change it.
1. Blockchain is a distributed database (system) placed in a non secure environment
2. The blockchain uses cryptography to ensure that the existing data cannot be tampered with
3, the blockchain uses consensus algorithm to reach consensus on new data
the system with the above three properties is blockchain.
it establishes a set of consensus mechanism to ensure the authenticity of data, and establishes trust between nodes that do not know each other. The participating nodes work together to maintain the healthy growth of the system
in order to stimulate the enthusiasm of participants, bitcoin, the first application of blockchain, was created.
1. Distributed: ledger is not only stored in one place, but in many places
2. General ledger: you can determine that you are not necessarily a machine stored general ledger through the network, but you can at least obtain the general ledger from the network
3. Decentralization: "distributed" is not a general distribution, but a decentralized distribution. No one can control and tamper with it, its accounting rules are based on some designed mathematical method to account for all rights. How to test, how to use, are in accordance with an open method to complete, so in essence is an account book
coin Ying China is the first to introce blockchain into the crowdfunding instry, making crowdfunding more open, transparent and simple.
take trading activities as an example. In the past, the two sides who did not trust each other usually chose an intermediary to guarantee a transaction. In the mobile Internet era, we chose Taobao shopping because Alipay provided us with an intermediate guarantee. We chose to drop dripping because it provided us with information matching.
however, these intermediaries are centralized and have their own interests. Sometimes they are not so reliable and trustworthy. Theoretically, Alipay's centralization of accounting has been artificially falsified. Part of the reason for Didi's troubles is that they only think from their own standpoint
what blockchain does is the machine of trust, which replaces the role of trust intermediary with code, ensures the fairness and justice of the whole system through consensus mechanism and distributed accounting, and provides a trust without trust
for example, in the future, people can abandon the intermediate platform and realize point-to-point docking and free trading through blockchain. Shopping does not need to go through an intermediary, and taking a taxi does not need to go through Didi. In this way, we can really achieve "no middleman to earn the price difference" and rece the cost.