如果已经安装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
distributed cloud architecture:基于分布式云架构的内存数据存储系统;具有高吞吐低延时,可分区,可伸缩,可容错,高一致,高可用等特点
- KV : put/get
- OQL : 类sql查询
- 强一致性事务保证
- 二级索引及多种索引类型
- 数据变更本地事件监听
- 服务端函数代码注册与触发
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
ClientCache cache = new ClientCacheFactory().addPoolLocator("localhost", 10334).create();
Region<String, String> region = cache.<String, String>createClientRegionFactory(ClientRegionShortcut.CACHING_PROXY).create("regionA");
- @ClientCacheApplication
- @Region
- @ContinuousQuery