Tag: cassandra
Posts
Cassandra CDC
Enable Cassandra CDC To enable Cassandra CDC, need to enable both the table-level CDC and node level CDC.
To enable table-level CDC, update the table option cdc:
ALTER TABLE foo WITH cdc=true; To enable node-level CDC, update the configuration file cassandra.yaml:
cdc_enabled=true Other CDC options:
cdc_raw_directory cdc_total_space cdc_free_space_check_interval WARNNING If CDC is enabled, when fill up the cdc_free_space_in_mb, writes to CDC-enabled tables will be rejected.
Cassandra 3.11.X CDC Implementation Memtable is per table (or column family).
Tag: go
Posts
gPRC 学习笔记(一):第一个 gPRC 服务
gRPC 官方网站的介绍:
A high performance, open source universal RPC framework
gPRC 是由 Google 于 2015 年开源,在功能上参考了其内部 RPC 框架 Stubby
gPRC 构建在 HTTP/2 之上 Protocal Buffer 编码格式
核心特性:
支持主流的编程语言 高效且简单的服务定义框架 支持双工流(Bi-directional Streaming) 可插拔的认证、追踪、负载均衡和健康检查 安装 macOS 使用 Brew 安装 Protocal Buffer 编译器 protoc:
brew install protoc 更新 PATH 环境变量:
export GOBIN=$GOPATH/bin export PATH=$PATH:$GOBIN 安装插件:
go install google.golang.org/protobuf/cmd/protoc-gen-go go install google.golang.org/grpc/cmd/protoc-gen-go-grpc Ping 接下来,基于 gPRC 实现一个简单的 Ping 服务,客户端和服务端均使用 Go 语言
安装 gRPC 库:
go get -u google.