concept - chain in category blockchain

This is an excerpt from Manning's book Blockchain in Action.
Results of smart contract function execution

This is an excerpt from Manning's book Permissioned Blockchains in Action.
Trying to analyze and filter raw data on-chain is generally infeasible - every operation is replicated across all nodes so doing heavy computation on chain is expensive. So oracle services serve as an off-chain support to the chain. In the case of Joe and the insurance company, an oracle would provide the input on weather. In case of the new app, Sue will need oracles to collect all sorts of information throughout the process of wine production. There are a few ways Sue could implement the oracles she needs.
9.5.3 Centralized, off-chain migration
The simplest upgrade mechanism to implement is the centralized, off-chain model. In this model, there is a single entity that initiates, migrates and commits the update process. Moreover, the data migration is done by off-chain mechanisms. Figure up1 illustrates this process.
Figure up1. Steps taken in the centralized off-chain update mechanism. The numbers in circles denote the sequence of operations.
![]()
As the figure shows, there is an entity that first disables the old contract. This would usually be done by setting a global variable that is used in a widely used modifier within the contract. Next, it downloads all the data it wants to preserve. Then it deploys the new contract and commits the old data to it. Lastly, it tells the end-user applications to update the contract address. In many cases, this final step may be performed by another entity called a naming service. Basically, a naming service is a service (on or off-chain) that, given a string, returns the valid smart contract address. So, in this case, the administrator would only need to update the contract address in the naming service and then it would be up to the end-user applications to poll the naming service and update the address locally themselves. On-chain naming service contracts are also referred to as registries.