You are viewing a single comment's thread from:

RE: Vlog 387: Steemit inc. reduces cost of full nodes drastically + Powerdown rumours + My ideas where the blockchain is going.

in #dtube6 years ago

Great post as always. One thing I'd like to just clarify is that one would be forgiven for getting confused over whether the social data is being "moved" from the blockchain to hivemind, versus it being mirrored in hivemind. The social information is not being removed from the blockchain and placed into hivemind. The social information remains on the blockchain, what's changing is where the APIs route applications that are asking for that information. It used to be that no matter what an application is looking for the APIs would route the query directly to the blockchain; a database that is optimized for establishing consensus, not powering real time applications. This lead to the blockchain nodes getting huge. But most of the information people wanted to pull from the blockchain had nothing to do with tokens, it had to do with information that had no monetary aspect to it. This is essentially information that was not required to be perfectly accurate every 3 seconds (i.e. consensus). In other words: social information.

Hivemind just copies this information from the blockchain and makes it accessible to developers in a more appropriate database that uses a more developer-friendly programming language. The sacrifice essentially comes down to the information taking more like 6 seconds to be perfectly reliable (still way faster than the majority of other blockchains), but the upside is clear: dramatically reduced node sizes and the ability to add the types of features to Steem-powered applications that user have come to expect from web applications. Esteem has already demonstrated how search can be improved by leveraging hivemind and that was before this big release, so I'm personally really excited to see the possibilities that are unlocked by the release of hivemind.

Sort:  

Does that mean the transaction speed of STEEM blockchain changed from 3 to 6 seconds now? Did I understand it correctly?

I'm assuming it means that the return from some requests for info from the nodes (Like who you follow) can take a little longer to be reliable than it used to be (6 seconds instead of 3 seconds). The block-times for block-creation are still the same.

Thanks, man :) Let me see how much time takes to follow you.

That's basically right. The core challenge, I think, is something called microforks. Basically there are ways for people to create very brief forks of the blockchain. The witnesses have mechanisms for resolving these forks, but Hive does not. So it is possible for devs to use Hive with a 0-second lag, but then there is a chance it will briefly display microfork data and not consensus data. This would still quickly be resolved by Hive. The default setting of a 6 second lag ensures that the vast majority of microfork scenarios are resolved before information is displayed. It bears repeating that none of this has to do with economic information which is still queried directly from the blockchain. Developers can set the time lag to as long as 5 minutes if they want to ensure that all the information they are displaying is perfectly accurate.

Thanks for the extra info @andrarchy! Very useful!

Coin Marketplace

STEEM 0.19
TRX 0.15
JST 0.029
BTC 63964.02
ETH 2592.87
USDT 1.00
SBD 2.75