区块链是否适用于现代高交易量应用程序的潜在可行数据库解决方案?
很容易看出它对于个人医疗记录这样的小批量交易很有价值,但是高容量数据库呢?
What is blockchain?
Blockchains rely on cryptography to allow a set of computers to make changes to a global record without needing a central actor.
Removing the middleman cuts costs in almost every sector.
The blockchain is a ledger that records everything that happens to a collection of data known as a “block” in a chronological order or “chain”.
As a currency this is an important feature because it allows users to be sure their digital money is one of a kind,the same way each note in your wallet is unique.
“Blockchain tech will be the way we create assets because it allows you to transfer digital information without copying,” says Adam Ludwin,chief executive of Chain.com,which builds blockchain networks.
Blockchain can be used to track the history of all sorts of information and maintain its value,so,for example,doctors could use it to update medical records.
Since each change to a blockchain is made simultaneously across the whole network,no information is lost and because changes cannot be undone the system maintains its transparency. A special key is needed to make changes to each block,so individuals can keep their records safe by protecting that key.
解决方法
Is blockchain a @H_403_30@potentially viable database solution for modern,@H_403_30@high transaction volume applications?
区块链技术通常具有一些特性,使得难以大批量地工作.
以比特币为例.每天的平均交易额从未超过300K:Transactions per day (source blockchain.info)
更重要的是,交易的中位数确认时间约为8分钟!:Median Transaction Confirmation Time (With Fee Only)和Quandl的漂亮图像:
现在世界上有多少台计算机负责保存比特币数据库?我不是比特币的专家,但我认为交易的完整历史存储在区块链中,因此参与比特币网络的所有计算机基本上都保留了整个数据库的副本(交易部分当然不是账户信息)和密钥,这些都保存在个人钱包里).
我们只能估计它们有多少,但我猜它们超过一百万.一天有300万台计算机的300K交易听起来不像是高容量. 8分钟确认?
一个体面的硬件中的现代RDBMS每秒可以轻松达到1K事务.那是每天约8600笔交易.确认时间?这取决于交易的大小(它影响的表和行数),但对于比特币类型的小交易(从账户A中删除42个硬币并向账户B添加42个硬币),它将是毫秒.
总之,体积和时间的差异在今天是1000到100000倍.
如果区块链技术将来解决了这个问题,那么它可能可以用于中型或大型应用.我们可以阅读有关如何解决问题的讨论和建议 – 链接中提到的许多公司实际上正在解决这些问题 – 但我们还没有看到提供大量和高速度的实际工作解决方案或产品.