Fabric Java Pool 0.0.3 Release

FabricJavaPool是一个基于fabric-sdk-java 1.4.6、fabric-gateway-java 1.4.3和JDK8的Fabric开发连接池管理器,遵循JDBC设计。它提供了一个配置和基于用户的通道对象池,主要用于特定用户的链码查询。通过缓存支持和memcache,提高性能,减少多次IO会话的需求。
摘要由CSDN通过智能技术生成

FabricJavaPool

A Connection pool manager for Fabric development

based on fabric-sdk-java 1.4.6, fabric-gateway-java 1.4.3 and JDK8
following design of JDBC
Basing common pool and Fabric Java SDK, able with cache support for query with memcache.
Will provide you a config and a pool object of channel obj base on User.
Mostly used as query chain code for a specific user.

Why

Assuming we have a webUI for client, and the UI need request times to fabric network to fetch data.
For performance exception, we don’t want to have IO session many times.
So a connection pool basing on user’s msp, and try to reuse the connection on java server side by session or cookie.

Sample usage:

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值