领先一步
VMware 提供培训和认证,助您加速进步。
了解更多各位 Spring 和 Apache Geode/Pivotal GemFire 社区的成员们:
我很高兴地宣布 Spring Boot for Apache Geode & Pivotal GemFire 的第一个里程碑版本,版本号为 1.0.0.M1。
这是一个很棒的新项目,它建立在近两年前我们在 Spring Data for Apache Geode/Pivotal GemFire 中开始的工作之上,当时我们引入了基于注解的配置。
借助 Spring Boot 的“约定优于配置”方法以及自动配置,无论是在独立还是托管环境(如 Pivotal CloudFoundry (PCF))中构建和运行应用程序,此项目都将 Spring Boot、Apache Geode 和 Pivotal GemFire 应用程序的配置和开发提升到了新的水平,尤其是在使用 Pivotal Cloud Cache (PCC) 时。
本项目包含对以下功能的自动配置支持
使用 Spring 的缓存抽象进行旁路缓存 (Look-Aside Caching)
使用 Spring Data Repositories 和 Spring 事务管理进行记录系统 (SOR) (System of Record (SOR))
使用函数实现与执行进行分布式计算
使用连续查询进行事件流处理 (ESP)
使用PDX进行域对象版本控制/序列化
安全
里程碑 2 将为 Spring Session 添加自动配置支持,使用 Apache Geode 或 Pivotal GemFire 来管理您的(HTTP)会话状态。
在里程碑 3 中,我们将开始探索自定义 Spring Boot 健康指示器,并支持 Spring Boot Actuator,该支持由 Micrometer 提供支持。
要了解此项目的方向和进展的更多信息,请查看 Issues。
Spring Boot for Apache Geode/Pivotal GemFire 的 参考指南可以通过点击链接找到。
现在已经有几个示例展示了 Spring Boot for Apache Geode & Pivotal GemFire 的使用。
第一个示例是 Pizza Store,这是一个 Spring Boot 应用程序,用于展示在将 Spring Boot、Pivotal GemFire ClientCache 应用程序推送到/部署到 Pivotal CloudFoundry (PCF) 时 Pivotal Cloud Cache (PCC) 的功能。
下一个示例(boot-example)来自 Contacts Application 参考实现,演示了 Spring Data for Apache Geode/Pivotal GemFire。
构件可从 Spring libs-milestone Maven 存储库获取
Maven
<repositories>
<repository>
<id>spring-milestone</id>
<url>https://repo.spring.io/libs-milestone</url>
</repository>
</repositories>
Gradle
repositories {
maven { url: 'https://repo.spring.io/libs-milestone' }
}
包含 spring-geode-starter 依赖项用于开发 Spring Boot、Apache Geode 应用程序,或者在开发 Spring Boot、Pivotal GemFire 应用程序时包含 spring-gemfire-starter 依赖项。这些依赖项是可互换的。
Maven
<dependencies>
<dependency>
<groupId>org.springframework.geode</groupId>
<artifactId>spring-geode-starter</artifactId>
<version>1.0.0.M1</version>
</dependency>
</dependencies
Gradle
dependencies {
compile 'org.springframework.geode:spring-geode-starter:1.0.0.M1'
}
我们始终高度重视并欢迎反馈和贡献。
GitHub 页面 | Issues | Pull Requests
谢谢。