Connect with us

Blockchain

Blockchains vs centralized databases

Published

on

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:

  1. 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.
  2. 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.
  3. 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.

Source: https://www.multichain.com/blog/2016/03/blockchains-vs-centralized-databases/

Blockchain

TA: Bitcoin Hesitates Above $13.2K, But 100 SMA Could Trigger Another Increase

Published

on

Bitcoin price traded to a new monthly high at $13,352 before correcting lower against the US Dollar. BTC is currently trading nicely above the 100 hourly SMA and it could attempt another increase.

  • Bitcoin is trading nicely above the $12,800 and $13,000 support levels.
  • The price is holding gains above the 100 hourly simple moving average, with a positive angle above towards $13,300.
  • There is a crucial bullish trend line forming with support near $12,900 on the hourly chart of the BTC/USD pair (data feed from Kraken).
  • The pair is likely to continue higher as long as it is above the 100 hourly SMA and $12,800.

Bitcoin Price Is Showing Positive Signs

Bitcoin price remained well bid above the 13,000 resistance and extended its rise. BTC even broke the last high at $13,250 and traded to a new monthly high at $13,352.

Recently, there was a downside correction and the price broke the $13,000 support. The decline found support near the $12,800 zone and the 100 hourly simple moving average. There is also a crucial bullish trend line forming with support near $12,900 on the hourly chart of the BTC/USD pair.

Bitcoin Price

Source: BTCUSD on TradingView.com

Bitcoin is currently rising and trading above the $13,000 level. There was a break above the 50% Fib retracement level of the recent decline from the $13,352 high to $12,834 low.

An immediate resistance is near the $13,150 level. It is close to the 61.8% Fib retracement level of the recent decline from the $13,352 high to $12,834 low. To continue higher, BTC must gain momentum above the $13,200 level.

If there is a daily close above the $13,200 level, the price is likely to accelerate higher above $13,350. The next major resistance on the upside is near the $13,500 level.

Downside Break in BTC?

If bitcoin fails to climb above the $13,150 and $13,200 resistance levels, there could be a fresh decline. The first major support is near the 100 hourly SMA at $13,000.

The main support is near the trend line at $12,900, below which the bulls might even struggle to protect the $12,800 support level in the coming sessions.

Technical indicators:

Hourly MACD – The MACD is slowly gaining momentum in the bullish zone.

Hourly RSI (Relative Strength Index) – The RSI for BTC/USD is now well above the 50 level, with a positive angle.

Major Support Levels – $13,000, followed by $12,900.

Major Resistance Levels – $13,150, $13,200 and $13,500.

Source: https://www.newsbtc.com/analysis/btc/bitcoin-hesitates-above-13-2k/

Continue Reading

Blockchain

Bitcoin Just Marked New 2020 High, But This Indicator Signals Correction Incoming (BTC Price Analysis)

Published

on

Starting by looking at the bigger picture, Bitcoin price had made a remarkable run since October began, gaining almost $3000 to its value.

Looking at the following long-term weekly chart, we can see this week’s greenish candle that will be closed later today. From a technical point of view, as long as the candle close price is above the $12,500 area (previous high) – we can safely say that BTC is on a healthy uptrend.

btc_oct25_w-min
BTC/USD weekly. Chart by TradingView

The Good and The Bad: New 2020 High but Bearish Divergence

Just a few hours ago, Bitcoin price recorded a new 2020 high close to $13,400 (on Binance Futures); however, the primary cryptocurrency could not hold there, and quickly slumped to $12,700 in a matter of one hour.

Looking at the shorter-term chart, the 4-hour, we can identify a bearish divergence on the RSI. This is a bearish pattern and might indicate that the buying power is fading away.

This happens when the price goes through a higher-high, but the RSI indicator is doing the opposite and going through a lower-high.

Another worrying sign is the trading volume. Since its peak volume on October 20-21, four days ago, the trading volume decreased even though the BTC price had actually gone up.

BTC Support and Resistance Levels To Watch

As mentioned above, if BTC were to correct, then the first major level of support lies at the current levels around $12.9 – $13K. If Bitcoin breaks here, then the first significant level lies at $12,700, followed by the previous 2020 high from August at $12,400 – $12,500.

From the bullish side, if Bitcoin holds the $13,000 – then the first levels of resistance lie at $13,200, followed by today’s high around $13,400. Bitcoin will be looking to break the 2019 high from June – at around $13,880.

Total Market Cap: $400 billion

Bitcoin Market Cap: $240 billion

BTC Dominance Index: 60%

*Data by CoinGecko

BTC/USD BitStamp 4-Hour Chart

btc_oct25_4h-min

SPECIAL OFFER (Sponsored)

Binance Futures 50 USDT FREE Voucher: Use this link to register & get 10% off fees and 50 USDT when trading 500 USDT (limited offer).

Disclaimer: Information found on CryptoPotato is those of writers quoted. It does not represent the opinions of CryptoPotato on whether to buy, sell, or hold any investments. You are advised to conduct your own research before making any investment decisions. Use provided information at your own risk. See Disclaimer for more information.

Cryptocurrency charts by TradingView.


Source: https://cryptopotato.com/bitcoin-just-marked-new-2020-high-but-this-indicator-signals-correction-incoming-btc-price-analysis/

Continue Reading

Blockchain

Bitcoin Breaks New 2020 High As Total Market Cap Topped $400 Billion (Market Watch)

Published

on

Bitcoin continues with the 2020 records and just a few hours ago marked a fresh high of above $13,350. Most alternative coins followed suit with impressive increases, but the market has calmed since then. The entire cryptocurrency market clocked at above $400 billion.

Bitcoin To Yet Another 2020 High

CryptoPotato reported a few days ago that the primary cryptocurrency exceeded the August 2020 high of about $12,500 and reached $13,200. What followed was a slight retracement to about $13,000 and stagnation yesterday.

Nevertheless, the volatility returned in the past 24 hours, and BTC headed towards new highs. This time, Bitcoin broke above $13,350. In fact, according to data from Bitstamp, BTC’s new 2020 high is at $13,362.

Another sharp rejection followed, and the asset tanked briefly below $13,000. Nevertheless, the bulls have since driven it above the coveted mark, and BTC trades at about $12,940.

A compelling chart recently revealed that Bitcoin is forming an inverse head and shoulders pattern. If it’s to play out, the cryptocurrency could soon skyrocket even further and top its all-time high of $20,000.

You Might Also Like:

If this scenario is indeed to materialize, Bitcoin would have to break above the resistance lines at $13,420, $13,500, $13,815, and $14,000 before reaching new records.

btcusd_chart
BTC/USD. Source: TradingView

Altcoins Follow Up And Calm Down

Most alternative coins experienced similarly increased volatility as Bitcoin. Ethereum surged to a new 7-week high of nearly $420. However, ETH quickly retraced and is now hovering around $409 again.

Ripple’s highest level came at about $0,26, but XRP has since decreased to below $0.253.

Thus, on a 24-hour scale, most larger-cap altcoins have remained essentially at the same positions as yesterday, despite the brief price jumps. Chainlink and Litecoin have registered the most gains of about 3.6%. LINK trades close to $12.35, and LTC is positioned at $56.3.

heatmap
Cryptocurrency Market Heatmap. Source: Quantify Crypto

The most impressive gainer since yesterday is Filecoin. After the recent controversy and continuous price slump, FIL has surged by 45% in the past 24 hours.

Ocean Protocol (18%), Quant (17.5%), THETA (10.2%), Reserve Rights (10.2%), and Ampleforth (10%) have also increased by double-digit percentages.

SPECIAL OFFER (Sponsored)

Binance Futures 50 USDT FREE Voucher: Use this link to register & get 10% off fees and 50 USDT when trading 500 USDT (limited offer).

Disclaimer: Information found on CryptoPotato is those of writers quoted. It does not represent the opinions of CryptoPotato on whether to buy, sell, or hold any investments. You are advised to conduct your own research before making any investment decisions. Use provided information at your own risk. See Disclaimer for more information.

Cryptocurrency charts by TradingView.


Source: https://cryptopotato.com/bitcoin-breaks-new-2020-high-as-total-market-cap-tops-400-billion-market-watch/

Continue Reading

Trending