Hyperledger Fabric 1.4新特性

Fabric打雞血了, 1.3正式版發佈一個月1.4的RC版出來了,按照慣例在兩個月內1.4正式版會發布,我們先預覽下新特性。
官方文檔鏈接參考
https://hyperledger-fabric.readthedocs.io/en/release-1.4/whatsnew.html

自1.0版本開始, Fabric日漸成熟。1.4版本專注於提高運維和開發的易用性,主要包括兩方面。

(1)可維護性和可操作性 
1.4大大的改進了日誌,服務健康檢查和可操作的度量指標, 持續的修復bug和提供系統健壯性。更多的bug fix會合併到1.4.x, 而新的特性會合到2.0版本。也就是說1.4會是1.x最後一個系列,應該會適合用於生產環境。

(2)改進應用的編程模型 
Node.js SDK的編程模型得到改善,node.js的鏈碼開發更直觀,可更專注於業務邏輯。這裏吐槽下,其它語言怎麼辦。。

可維護性的改進 
新的運維服務接口, 暴露了三個restful服務用於監控和管理peer, orderer節點的操作。
/logspec 接入點允許運維人員動態的獲取和設置各節點日誌的級別。
/healthz 接入點允許運維人員或容器服務去檢查節點的健康和存活。
/metrics 接入點允許運維人員使用開源監控工具”Prometheus ”從各節點拉取度量數據,同時也支持工具”StatsD”。筆者只用過Zabbix和Nagios, restful的估計也能集成吧。

編程模型的改進 
筆者團隊用Java和Go, 鏈碼也慢慢切Java, Nodejs模型細節自行閱讀。

The scenario:
Describes a hypothetical business network involving six organizations who want to build an application to transact together that will serve as a use case to describe the programming model.

Analysis:
Describes the structure of a commercial paper and how transactions affect it over time. Demonstrates that modeling using states and transactions provides a precise way to understand and model the decentralized business process.

Process and Data Design:
Shows how to design the commercial paper processes and their related data structures.

Smart Contract Processing:
Shows how a smart contract governing the decentralized business process of issuing, buying and redeeming commercial paper should be designed.
Application Conceptually describes a client application that would leverage the smart contract described in Smart Contract Processing.
Application design elements:
Describes the details around contract namespaces, transaction context, transaction handlers, connection profiles, connection options, wallets, and gateways.

新的入門例子
商業票據入門例子
https://hyperledger-fabric.readthedocs.io/en/release-1.4/tutorial/commercial_paper.html

私有數據加強 
1.2引入的私有數據得到功能加強。
覈對, 允許已加入私有數據的節點獲取之前的有資格採訪的歷史交易數據。
客戶採訪控制,允許鏈碼基於採訪的客戶端的組織或者MSP自動控制採訪權限,而不用寫具體的鏈碼邏輯。

同理Fabric CA也升到1.4, 主要是維護bug fix版本。Fabric CA一些細節是有點小問題,雖然可以繞過, 希望有空後面寫個Fabric CA的課程。

話說Fabric的這些迭代,它更定位在底層的實現,可提供可擴展的運維服務接口。而實際上Hyperledger Cello等Baas部署工具應該是遠遠落後,區塊鏈落地很多最佳實踐和模型還待大家努力去踩坑。商業區塊鏈的旅途是星辰大海,another ditch in the road, keep moving.

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章