All Projects → stulzq → NZookeeper

stulzq / NZookeeper

Licence: Apache-2.0 license
A zookeeper client library based on ZookeeperEx,easily use for Zookeeper.

Programming Languages

C#
18002 projects

Projects that are alternatives of or similar to NZookeeper

zooweb
No description or website provided.
Stars: ✭ 86 (+514.29%)
Mutual labels:  zookeeper, zookeeper-client
zk cpp
zookeeper client of cpp, base on zookeeper c api
Stars: ✭ 34 (+142.86%)
Mutual labels:  zookeeper, zookeeper-client
haskell-zookeeper-client
Apache ZooKeeper client for Haskell (GHC)
Stars: ✭ 16 (+14.29%)
Mutual labels:  zookeeper, zookeeper-client
zkcli
A interactive Zookeeper client.
Stars: ✭ 101 (+621.43%)
Mutual labels:  zookeeper, zookeeper-client
Thunder
⚡️ Nepxion Thunder is a distribution RPC framework based on Netty + Hessian + Kafka + ActiveMQ + Tibco + Zookeeper + Redis + Spring Web MVC + Spring Boot + Docker 多协议、多组件、多序列化的分布式RPC调用框架
Stars: ✭ 204 (+1357.14%)
Mutual labels:  zookeeper
Idworker
idworker 是一个基于zookeeper和snowflake算法的分布式ID生成工具,通过zookeeper自动注册机器(最多1024台),无需手动指定workerId和datacenterId
Stars: ✭ 171 (+1121.43%)
Mutual labels:  zookeeper
Bigdata docker
Big Data Ecosystem Docker
Stars: ✭ 161 (+1050%)
Mutual labels:  zookeeper
Mango
A high-performance, open-source java RPC framework.
Stars: ✭ 150 (+971.43%)
Mutual labels:  zookeeper
eagle
Eagle分布式rpc调用,借助Zookeeper实现服务注册和发现,基于AQS实现高性能连接池,支持分布式追踪、监控、过载保护等配置。提供Spring和SpringBoot插件,方便与Spring和SpringBoot集成。
Stars: ✭ 77 (+450%)
Mutual labels:  zookeeper
Springcloud
springCloud学习
Stars: ✭ 251 (+1692.86%)
Mutual labels:  zookeeper
Firecamp
Serverless Platform for the stateful services
Stars: ✭ 194 (+1285.71%)
Mutual labels:  zookeeper
Operators
Collection of Kubernetes Operators built with KUDO.
Stars: ✭ 175 (+1150%)
Mutual labels:  zookeeper
Mini Rpc
Spring + Netty + Protostuff + ZooKeeper 实现了一个轻量级 RPC 框架,使用 Spring 提供依赖注入与参数配置,使用 Netty 实现 NIO 方式的数据传输,使用 Protostuff 实现对象序列化,使用 ZooKeeper 实现服务注册与发现。使用该框架,可将服务部署到分布式环境中的任意节点上,客户端通过远程接口来调用服务端的具体实现,让服务端与客户端的开发完全分离,为实现大规模分布式应用提供了基础支持
Stars: ✭ 205 (+1364.29%)
Mutual labels:  zookeeper
Albert
这个是我个人网站的项目,欢迎贡献代码,力求能够应用到实际工作中java相关的大多数技术栈。有兴趣请Star一下,非常感谢。qq交流群:587577705 这个项目将不断地更新!生产环境:
Stars: ✭ 168 (+1100%)
Mutual labels:  zookeeper
Advanced Java
😮 Core Interview Questions & Answers For Experienced Java(Backend) Developers | 互联网 Java 工程师进阶知识完全扫盲:涵盖高并发、分布式、高可用、微服务、海量数据处理等领域知识
Stars: ✭ 59,142 (+422342.86%)
Mutual labels:  zookeeper
Pifpaf
Python fixtures and daemon managing tools for functional testing
Stars: ✭ 161 (+1050%)
Mutual labels:  zookeeper
Herddb
A JVM-embeddable Distributed Database
Stars: ✭ 192 (+1271.43%)
Mutual labels:  zookeeper
Devicehive Java Server
DeviceHive Java Server
Stars: ✭ 241 (+1621.43%)
Mutual labels:  zookeeper
Kafdrop
Kafka Web UI
Stars: ✭ 3,158 (+22457.14%)
Mutual labels:  zookeeper
Xbin Store
模仿国内知名B2C网站,实现的一个分布式B2C商城 使用Spring Boot 自动配置 Dubbox / MVC / MyBatis / Druid / Solr / Redis 等。使用Spring Cloud版本请查看
Stars: ✭ 2,140 (+15185.71%)
Mutual labels:  zookeeper

NZookeeper

Latest version

English|中文

A zookeeper client library based on ZookeeperEx,easily use for Zookeeper.

Transaction operation is not supported at present, and will be supported in the next version

Get start

1.Connect to Zookeeper

using var loggerFactory = LoggerFactory.Create(builder =>
            {
                builder
                    .AddFilter("Microsoft", LogLevel.Debug)
                    .AddFilter("System", LogLevel.Information)
                    .AddConsole();
            });
var logger = loggerFactory.CreateLogger<ZkConnection>();
//Multiple zookeeper addresses are separated by ,
var zk = new ZkConnection(new ZkConnectionOptions() { ConnectionString = "localhost:2181", SessionTimeout = 5000 }, logger);
await zk.ConnectAsync();

2.Set watch event

It is used to monitor node changes and data changes. Node changes include: node creation and node deletion

zk.OnWatch += Zk_OnWatch;

private Task Zk_OnWatch(ZkWatchEventArgs args)
{
    Console.WriteLine($"OnWatch: Path {args.Path}, Type {args.EventType}, State {args.State}");
    return Task.CompletedTask;
}

3.Node operation

//Create node
await zk.CreateNodeAsync("/mynode", "nodedata",
                    new List<Acl>() { new Acl(AclPerm.All, AclScheme.World, AclId.World()) }, NodeType.Ephemeral);
//Get child node
await zk.GetChildrenAsync("/mynode");
//Delete node
await zk.DeleteNodeAsync("/mynode");
//Check if the node exists
await zk.NodeExistsAsync("/mynode")

4.Data

//Update node data
await zk.SetDataAsync("/mynode", "111");
//Get node data
await zk.GetDataAsync("/mynode")

5.ACL

//Get ACL
await zk.GetAclAsync("/mynode");
//Set ACL
await zk.SetAclAsync("/mynode",new List<Acl>() { new Acl(AclPerm.All, AclScheme.World, AclId.World()) })
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].