Four key differences between blockchains and regular databases
If you’ve been reading my previous posts, you will know by now that blockchains are simply a new type of database. That is, a database which can be directly shared, in a write sense, by a group of non-trusting parties, without requiring a central administrator. This contrasts with traditional (SQL or NoSQL) databases that are controlled by a single entity, even if some kind of distributed architecture is used within its walls.
I recently gave a talk about blockchains from the perspective of information security, in which I concluded that blockchains are more secure than regular databases in some ways, and less secure in others. Considering the leading role that centralized databases play in today’s technology stack, this got me thinking more broadly about the trade-offs between these two technologies. Indeed, whenever someone asks me if MultiChain can be used for a particular purpose, my first response is always: “Could you do that with a regular database?” In more cases than you might think, the answer is yes, for the following simple reason:
If trust and robustness aren’t an issue, there’s nothing a blockchain can do that a regular database cannot.
This is a key point on which there is so much misunderstanding. In terms of the types of data that can be stored, and the transactions that can be performed on that data, blockchains don’t do anything new. And just to be clear, this observation extends to “smart contracts” as well, despite their sexy name and image. A smart contract is nothing more than a piece of computer code which runs on every node in a blockchain – a decades-old technology called stored procedures does the same for centralized databases. (You also cannot use a blockchain if this code needs to initiate interactions with the outside world.)
The truth about blockchains is that, while they have some advantages, they also have their downsides. In other words, like most technology decisions, the choice between a blockchain and a regular database comes down to a series of trade-offs. If you’re blinded by the hype and deafened by the noise, you’re unlikely to make that choice objectively. So I hope the following guide might help.
Disintermediation: advantage blockchains
The core value of a blockchain is enabling a database to be directly shared across boundaries of trust, without requiring a central administrator. This is possible because blockchain transactions contain their own proof of validity and their own proof of authorization, instead of requiring some centralized application logic to enforce those constraints. Transactions can therefore be verified and processed independently by multiple “nodes”, with the blockchain acting as a consensus mechanism to ensure those nodes stay in sync.
Why is there value in this disintermediation? Because even though a database is just bits and bytes, it is also a tangible thing. The contents of a database are stored in the memory and disk of a particular computer system, and anybody with sufficient access to that system can destroy or corrupt the data within. As a result, the moment you entrust your data to a regular database, you also become dependent on the human organization in which that database resides.
Now, the world is filled with organizations which have earned this trust – governments and banks (mostly), universities, trade associations, and even private companies like Google and Facebook. In most cases, especially in the developed world, these work extremely well. I believe my vote has always been counted, no bank has ever stolen my money, and I’m yet to find a way to pay for better grades. So what’s the problem? If an organization controls an important database, it also needs a bunch of people and processes in place to prevent that database being tampered with. People need hiring, processes need to be designed, and all this takes a great deal of time and money.
So blockchains offer a way to replace these organizations with a distributed database, locked down by clever cryptography. Like so much that has come before, they leverage the ever-increasing capacity of computer systems to provide a new way of replacing humans with code. And once it’s been written and debugged, code tends to be an awful lot cheaper.
Confidentiality: advantage centralized databases
As I mentioned, every node in a blockchain independently verifies and processes every transaction. A node can do this because it has full visibility into: (a) the database’s current state, (b) the modification requested by a transaction, and (c) a digital signature which proves the transaction’s origin. This is undoubtedly a clever new way to architect a database, and it really works. So where’s the catch? For many applications, especially financial, the full transparency enjoyed by every node is an absolute deal-killer.
How do systems built on regular databases avoid this problem? Just like blockchains, they restrict the transactions that particular users can perform, but these restrictions are imposed in one central location. As a result, the full database contents need only be visible at that location, rather than in multiple nodes. Requests to read data also go through this central authority, which can accept or reject those requests as it sees fit. In other words, if a regular database is read-controlled and write-controlled, a blockchain can be write-controlled only.
To be fair, many strategies are available for mitigating this problem. These range from simple ideas like transacting under multiple blockchain addresses, to advanced cryptographic techniques such as confidential transactions and zero-knowledge proofs (now being developed). Nonetheless, the more information you want to hide on a blockchain, the heavier a computational burden you pay to generate and verify transactions. And no matter how these techniques develop, they will never beat the simple and straightforward method of hiding data completely.
Robustness: advantage blockchains
A second benefit of blockchain-powered databases is extreme fault tolerance, which stems from their built-in redundancy. Every node processes every transaction, so no individual node is crucial to the database as a whole. Similarly, nodes connect to each other in a dense peer-to-peer fashion, so many communication links can fail before things grind to a halt. The blockchain ensures that nodes which went down can always catch up on transactions they missed.
So while it’s true that regular databases offer many techniques for replication, blockchains take this to a whole new level. For a start, no configuration is required – simply connect some blockchain nodes together, and they automatically keep themselves in sync. In addition, nodes can be freely added or removed from a network, without any preparation or consequences. Lastly, external users can send their transactions to any node, or to multiple nodes simultaneously, and these transactions propagate automatically and seamlessly to everyone else.
This robustness transforms the economics of database availability. With regular databases, high availability is achieved through a combination of expensive infrastructure and disaster recovery. A primary database runs on high-end hardware which is monitored closely for problems, with transactions replicated to a backup system in a different physical location. If the primary database fails (e.g. due to a power cut or catastrophic hardware failure), activity is automatically moved over to the backup, which becomes the new primary. Once the failed system is fixed, it’s lined up to act as the new backup if and when necessary. While all this is doable, it’s expensive and notoriously difficult to get right.
Instead, what if we had 10 blockchain nodes running in different parts of the world, all on commodity hardware? These nodes would be densely connected to each other, sharing transactions on a peer-to-peer basis and using a blockchain to ensure consensus. End users generating the transactions connect to (say) 5 of these nodes, so it doesn’t matter if a few communication links go down. And if one or two nodes fail completely on any given day, nobody feels a thing, because there are still more than enough copies to go round. As it happens, this combination of low cost systems and high redundancy is exactly how Google built its search engine so cheaply. Blockchains can do the same thing for databases.
Performance: advantage centralized databases
Blockchains will always be slower than centralized databases. It’s not just that today’s blockchains are slow because the technology is new and unoptimized, but it’s a result of the nature of blockchains themselves. You see, when processing transactions, a blockchain has to do all the same things as a regular database, but it carries three additional burdens:
- Signature verification. Every blockchain transaction must be digitally signed using a public-private cryptography scheme such as ECDSA. This is necessary because transactions propagate between nodes in a peer-to-peer fashion, so their source cannot otherwise be proven. The generation and verification of these signatures is computationally complex, and constitutes the primary bottleneck in products like ours. By contrast, in centralized databases, once a connection has been established, there is no need to individually verify every request that comes over it.
- Consensus mechanisms. In a distributed database such as a blockchain, effort must be expended in ensuring that nodes in the network reach consensus. Depending on the consensus mechanism used, this might involve significant back-and-forth communication and/or dealing with forks and their consequent rollbacks. While it’s true that centralized databases must also contend with conflicting and aborted transactions, these are far less likely where transactions are queued and processed in a single location.
- Redundancy. This isn’t about the performance of an individual node, but the total amount of computation that a blockchain requires. Whereas centralized databases process transactions once (or twice), in a blockchain they must be processed independently by every node in the network. So lots more work is being done for the same end result.
The bottom line
Naturally there are other ways in which blockchains and regular databases can be compared. We could talk about codebase maturity, developer attractiveness, ecosystem breadth and more. But none of these issues are inherent to the technology itself. So when it comes to a long-term decision on using a blockchain, the question to ask is this: What’s more important for my use case? Disintermediation and robustness? Or confidentiality and performance?
When examined in this simple light, many of the use cases currently under discussion do not make sense. The biggest problem tends to be confidentiality. The participants in a fiercely competitive marketplace will naturally prefer the privacy of a centralized database, rather than reveal their activities to each other. This is especially true if a trusted central party already exists and can provide the neutral territory in which that database can reside. Even though there may be some cost associated with this central provider, this is more than justified by the value of the privacy retained. The only motivation for a shift to blockchains would be aggressive new regulation.
Nonetheless blockchains do have strong use cases, where disintermediation and robustness are more important than confidentiality and performance. I’ll write more about these in a subsequent post, but the most promising areas we’ve seen so far are: (a) inter-company audit trails, (b) provenance tracking, and (c) lightweight financial systems. In all three cases, we’ve found people building on MultiChain with a clear view to deployment, rather than just curiosity and experimentation. So if you’re looking for ways in which blockchains can add genuine value to your business, they might be a good place to start.
Please post any comments on LinkedIn.
Research Reports ‘Altseason’ Upon Us, But Not For XRP or EOS
In its latest ‘State of the Network’ bulletin, industry data provider Coin Metrics has delved into altcoins and their impressive performance so far this year.
It acknowledged that many of the hot altcoins that surged during the 2017 crypto boom are now ‘dead and gone’, and have been replaced by a new breed of DeFi assets. It added that with new capital flowing into Bitcoin and Ethereum, some of that money may start flowing into altcoins.
In this week’s State of the Network @natemaddrey looks at recent altcoin performance. Is a new altseason incoming?
Read the full issue here:https://t.co/pO4mmIPhby
— CoinMetrics.io (@coinmetrics) January 19, 2021
The report acknowledged that institutional investment has largely been behind the current rally and institutions are very wary of altcoins.
“Altcoin investing is largely considered a retail phenomenon. Similar to penny stocks, it’s often driven by individual investors looking for outsized gains.”
XRP and EOS Missing The Party
Looking at returns since the beginning of December 2020, Bitcoin and Ethereum have outperformed most other Layer 1 blockchains, it noted. However several high-cap crypto assets have also performed well hitting their own all-time highs.
There are two notable exceptions to this trend; Ripple’s XRP and Block.one’s EOS.
The glaring red charts for these to former darlings of crypto show that XRP has lost 54.6% since December 1, and EOS has dumped 7.5% over the same period.
Ripple’s problems started when it finally lost the battle with the SEC and the selloff began. Since its late November high of almost $0.70, XRP has dumped almost 60% to today’s sub $0.29 prices. There have been reports of Ripple executives selling their stashes, while Grayscale dissolved its XRP Trust as confidence in the company dwindles.
Block.one’s problems have not been as bad, but they have had them. Company CTO Dan Larimer announced his resignation earlier this month and there has been very little on the development or product front for the project.
Over the past year, EOS has lost 23% on a chart that has been flat for months. Since its February 2020 high of $5.40 it has dumped 50%, and since its giddy all-time high in April 2018 of over $22, EOS has been smashed 87%.
Top Altcoins so Far in 2021
Those that are enjoying the altseason sun include Polkadot, Binance Coin, Chainlink, and of course Ethereum, though it shouldn’t really be termed an altcoin any longer.
Coin Metrics highlighted Cardano, Decred, and Dogecoin as three that have made three figure gains since December one, outperforming Bitcoin itself.
Perpetual Protocol emerges as sixth-largest DEX after just one month
Perpetual Protocol, a DeFi project offering decentralized perpetual contracts using the layer-two Ethereum scaling solution xDai, has emerged as the sixth-largest DEX by weekly trade volume after operating for only one month.
Based on data from Dune Analytics shared by Perpetual Protocol, the DEX’s weekly trade volume of more than $299 million would rank the project above the likes of Synthetix, dYdX, and Kyber, and below Balancer.
The milestone was shared in a blog post celebrating the project’s first month of operation — a period in which the DEX drove more than $500 million in total volume and generated more than $500,000 in trading fees.
All trading fees generated by the protocol are currently sent to an insurance fund designed to secure the protocol, with the project planning to divert 50% of fees to PERP stakers once its staking pool has launched.
In the blog post, Perpetual Protocol noted that it spent only $183 to execute 179,000 transactions as gas fees on xDai are just one-one-hundredth of those on the Ethereum mainnet. With Perpetual Protocol covering the gas fees of its traders, the DEX would have had to pay out $18,300 in fees if it was operating directly on Ethereum.
Congratulations to the @perpprotocol, just over one month old and already making some serious moves with trading volume surpasing 500M!
Running on @xdaichain, gas for more than 179K transactions was only $183! https://t.co/RiqoUY4xit
— xDai Stake (@xdaichain) January 18, 2021
XDai is one of several L2 scaling solutions that are offering an alternative to the heavy fees associated with operating directly on the Ethereum mainnet, with Synthetix recently launching the first stage in its transition to optimistic roll-ups.
Looking ahead, Perpetual expects to introduce limit order functionality during the first quarter of 2021, and will also launch staking in February.
Decentralized exchanges emerged as a cornerstone of the crypto ecosystem during DeFi’s Q3 2020 boom, with leading DEX Uniswap now processing almost $1 billion in volume each day and regularly surpassing many major centralized exchanges by trade activity.
Despite the booming volume, the DEX sector is currently dominated by a handful of platforms — with roughly half of the combined DEX trade activity taking place on Uniswap, and 90% of combined volume transpiring on the four largest platforms.
TA: Ethereum Corrects Lower, Why Dips In ETH Remain Attractive
Ethereum traded as high as $1,437 before starting a downside correction against the US Dollar. ETH price is approaching a key support at $1,340 and $1,320.
- Ethereum surged above $1,400 and traded towards the $1,440 zone.
- The price is currently correcting lower from $1,437, but it is well above the 100 hourly simple moving average.
- There is a major declining channel forming with support near $1,340 on the hourly chart of ETH/USD (data feed via Kraken).
- The pair could correct further, but the price is likely to remain stable above $1,340 and $1,325.
Ethereum Price is Correcting Gains
Yesterday, we saw a sharp increase in Ethereum above $1,350 and $1,400. ETH price traded above the $1,420 resistance, and traded as high as $1,437 before starting a downside correction.
There was a short-term downside correction below the $1,400 level. There was a break below the 23.6% Fib retracement level of the upward wave from the $1,215 swing low to $1,437 high. Ether is now trading below the $1,380 and it is approaching a couple of important supports at $1,340.
Source: ETHUSD on TradingView.com
There is also a major declining channel forming with support near $1,340 on the hourly chart of ETH/USD. An immediate support is near the $1,325 level, where the bulls are likely to take control.
The 50% Fib retracement level of the upward wave from the $1,215 swing low to $1,437 high. If there is a downside break below $1,325, there are chances of a drop towards the $1,280 level. The 100 hourly simple moving average is also near the $1,280 support zone. Any more losses could lead the price towards the $1,250 and $1,220 support levels.
Fresh Increase in ETH?
If ethereum remains stable above $1,280 support zone, it could start a fresh increase. An initial resistance is near the $1,400 level and the channel upper trend line.
A close above the channel resistance could open the doors for more gains towards the $1,440 level. A clear break above the $1,440 zone could clear the path for a push towards the $1,500 resistance zone in the coming sessions. The next key target could be near the $1,550 and $1,580 levels.
Hourly MACD – The MACD for ETH/USD is now slowly gaining pace in the bearish zone.
Hourly RSI – The RSI for ETH/USD is correcting lower below the 50 level.
Major Support Level – $1,280
Major Resistance Level – $1,400
Will exchanges run out of Ethereum?
Consob Blocks 6 New Illegal FX Websites
Charted: Chainlink (LINK) Remains In Strong Uptrend, Why It Could Test $25
Bitcoin Cash, Zcash, Decred Price Analysis: 17 January
Ripple partners Mobile Money for wallet-to-wallet payments between Malaysia and Bangladesh
Bitcoin Reserves Of Block.one Stands As Twice The Worth Of EOS
Decred co-founder explains the possible effects of a CBDC takeover
Ethereum, Monero, Algorand Price Analysis: 17 January
Tether (USDT) January 15th Deadline on iFinex Case: Everything You Need to Know
Six-Figure Bitcoin Price Predictions Back on The Table
Cardano “Working On Something” That Could Solve Twitter’s Decentralization Dilemma
Healthcare Jobs of the Future
Fintech’s Hottest Trends in 2021? Privacy, Control, & Customization
Exchanges See 27% Drop In ETH Supply In Just 48 Hours
FinCEN Extends Comment Window on Proposed Crypto Regulations
Will Bitcoin see another trend reversal in 2021?
Federal Reserve’s Powell Says Stablecoins Risk “High-Level Focus”
Michael Novogratz’s Galaxy Digital to Jump Into BTC Mining
Top 5 cryptocurrencies to watch this week: BTC, LINK, UNI, XTZ, ATOM
Analyst: Hodlers will be this year’s biggest Bitcoin gainers
Blockchain1 week ago
Ethereum Whale Addresses With Over 10,000 ETH Continue to Grow In Numbers, Price Holds Above $1000
Blockchain4 days ago
Will exchanges run out of Ethereum?
Blockchain1 week ago
As Bitcoin Regains Lost Ground, Options Traders Bet on $52K Move By Late January
Blockchain1 week ago
‘Crypto is exactly like dot com bubble; Bitcoin, Ethereum can survive it’
Blockchain1 week ago
Ethereum Price Analysis: 12 January
Blockchain1 week ago
Shanghai Government Invests $5M in Blockchain Startup Conflux
Blockchain1 week ago
Coinbase Custody Lists DeFi Project BarnBridge
Blockchain1 week ago
Brian Brooks, Crypto-Friendly OCC Leader, Steps Down