Skip to content

jianran/geode-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

install

如果已经安装brew,执行下列命令直接方案,如果没有安装brew,执行install_brew.sh安装brew

brew install apache-geode
curl https://downloads.apache.org/geode/1.11.0/apache-geode-1.11.0.tgz -O apache-geode-1.11.0.tgz
tar -xvf apache-geode-1.1.0.tar -C path_to_product

或者选择源码编译安装,可能会编译报错,不建议

git clone https://github.com/apache/geode.git
./gradlew build -Dskip.test=true

intro

distributed cloud architecture:基于分布式云架构的内存数据存储系统;具有高吞吐低延时,可分区,可伸缩,可容错,高一致,高可用等特点

feature

  • KV : put/get
  • OQL : 类sql查询
  • 强一致性事务保证
  • 二级索引及多种索引类型
  • 数据变更本地事件监听
  • 服务端函数代码注册与触发

component

架构图

  • locator:
  • server:
  • group:
  • region:
  • partiion:
  • gfsh:
  • pulse: admin/admin
  • cq
  • pdx
  • function

kv

start locator --name="basicLocator"
start server --name="basicServer"
create region --name=regionA --type=REPLICATE_PERSISTENT
put --region=regionA --key="1" --value="one"
put --region=regionA --key="2" --value="two"
query --query="select * from /regionA"
start server --name=server2 --server-port=40412
describe region --name=regionA

client

ClientCache cache = new ClientCacheFactory().addPoolLocator("localhost", 10334).create();
Region<String, String> region = cache.<String, String>createClientRegionFactory(ClientRegionShortcut.CACHING_PROXY).create("regionA");

spring-data-gemfire

  • @ClientCacheApplication
  • @Region
  • @ContinuousQuery

others

geode-example

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published