Skip to content

Trendyol/go-dcp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Dcp Client

This repository contains go implementation of a Couchbase Database Change Protocol (DCP) client.

Contents


Why?

  • Our main goal is to build a dcp client for faster and stateful systems. We want to use this repository in below implementations:
    • Couchbase Elastic Connector
    • Kafka Connector

Features

  • Metrics calculator
  • Kubernetes StatefulSet membership
  • Kubernetes High Availability
  • Auto membership
  • Durable connection
  • Auto restart

Usage

$ go get github.com/Trendyol/go-dcp-client


Configuration

Variable Type Is Required
hosts array yes
username string yes
password string yes
bucketName string yes
metadataBucket string yes
dcp.group.name string yes
dcp.group.membership.type string yes
dcp.group.membership.memberNumber integer no
dcp.group.membership.totalMembers integer no
api.port integer yes
metric.enabled boolean (true/false) yes
metric.path string yes
leaderElection.enabled boolean (true/false) yes
leaderElection.type string no
leaderElection.config string/string key value map no
leaderElection.rpc.port integer no

Examples