Vostok.ZooKeeper
  • Overview
  • Quickstart
  • Basics
    • Creating a Client
    • Connecting to a ZooKeeper Cluster
    • Using Client
    • Limitations
  • Operations
    • Common Concepts
    • Creating a Node
    • Deleting a Node
    • Probing Node Existence
    • Getting Children of a Node
    • Getting of a Node Data
    • Setting of a Node Data
  • Observing Node Events
  • Recipes
    • Distributed Lock
Powered by GitBook
On this page

Quickstart

PreviousOverviewNextBasics

Last updated 3 years ago

  • Install abstractions and client modules:

Install-Package Vostok.ZooKeeper.Client.Abstractions 
Install-Package Vostok.ZooKeeper.Client
  • Install recipes, testing and local ensemble if needed:

Install-Package Vostok.ZooKeeper.Recipes
Install-Package Vostok.ZooKeeper.Testing
Install-Package Vostok.ZooKeeper.LocalEnsemble
  • Create ZooKeeper client with the constructor

using Vostok.Logging.Abstractions;
using Vostok.ZooKeeper.Abstractions;
using Vostok.ZooKeeper.Client;

var log = new SynchronousConsoleLog();
var settings = new ZooKeeperClientSettings(connectionString: "10.217.10.42:2181,10.217.20.73:2181");
using var client = new ZooKeeperClient(zookeeperSettings, log);

Continue to explore Vostok.ZooKeeper by learning some basic concepts...

Basics