Node.js还是Go for Hyperledger Fabric的链码开发?

时间:2018-11-14 13:31:01

标签: hyperledger-fabric hyperledger blockchain

在可维护性,可伸缩性和更好的支持方面,+---+-----+-----+-----+ | ID|COL_A|COL_B|COL_C| +---+-----+-----+-----+ | 1| 123| abc| | +---+-----+-----+-----+ input_data = pd.read_csv(inputFilePath,dtype=str) for key, value in mapRow.iteritems(): #mapRow is the dict if value is None: input_data[key] = "" else: input_data[key] = value 中哪种语言更适合“链码”开发?

1 个答案:

答案 0 :(得分:6)

这是个人喜好问题,但是我要说Golang,因为:

  • Node.js链代码在容器构建时使用npm install,这很慢并且可能由于网络问题而失败,而Golang只是在不获取任何内容的情况下编译源代码。

  • 首先将链码功能引入Golang链码,然后再引入其他链码实现。