During Deploy, the chain code is sent to the register as a transaction and distributed to all nodes of the network. Each node creates a new Docker container with this built-in codec. After that the container will be launched and the Init method will be launched.
During the " Request " circuit code will read the current state and send it to the user. This transaction is not saved in the blockchain.
During " Invoke ", chained code can change the state of variables in a register. Each transaction "Invoke" will be added to the "block" in the register.
Sergey Balashevich
source share