What is a usecase for the fabric-kafka and fabric-order containers in same network

这一生的挚爱 提交于 2019-12-05 04:24:57

问题


I can see there are 3 types of orderer. When I deploy a fabric-network up to 2 types are used.

https://hub.docker.com/r/hyperledger/fabric-orderer/ https://hub.docker.com/r/hyperledger/fabric-kafka/

https://hub.docker.com/r/hyperledger/fabric-ca-orderer/

The order documentation describes usage

https://github.com/hyperledger/fabric/blob/master/orderer/README.md

but I do not expect to see fabric-orderer and fabric-kafka containers in a fabric network.

What am I misunderstanding here?


回答1:


The architecture for Hyperledger Fabric allows for multiple types of ordering services. At the heart of the architecture is a common atomic broadcast interface.

The orderer interfaces are implemented in the orderer executable which is packaged as the fabric-orderer Docker image.

There are two configuration modes for the orderer:

1) Solo - this is a standalone, single process orderer primarily for use during development and test (although nothing would stop someone from using it for production - it would just not be fault tolerant)

2) Kafka - this leverages Kafka as the "consensus" mechanism to make multiple orderer processes crash fault tolerant and order transactions. In this case, multiple orderer processes communicate with a Kafka cluster which ensures that each orderer process receives transactions and generates blocks in the same order. The orderer process (or fabric-orderer containers) communicate with a Kafka cluster (which can be run using the fabric-kafka and fabric-zookeeper Docker images).



来源:https://stackoverflow.com/questions/47652528/what-is-a-usecase-for-the-fabric-kafka-and-fabric-order-containers-in-same-netwo

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!