领先一步
VMware 提供培训和认证,助您加速进步。
了解更多我很高兴代表 Spring、Apache Geode 和 VMware Tanzu GemFire 社区,宣布发布 Spring Boot for Apache Geode & VMware GemFire (SBDG) 1.4.0-M2 和 1.3.3.RELEASE。
SBDG 1.4.0-M2 基于
Spring Boot 2.4.0-M2
Spring Framework 5.3.0-M2
Spring Data for Apache Geode & VMware GemFire (SDG) 2020.0.0-M2 (Ockham-M2/2.4.0-M2)
Spring Session for Apache Geode & VMware GemFire (SSDG) 2020.0.0-M1 (2.4.0-M1)
Spring Test for Apache Geode & VMware GemFire (STDG) 0.0.18.RELEASE
SBDG 1.3.3.RELEASE 基于
Spring Boot 2.3.3.RELEASE
Spring Framework 5.2.8.RELEASE
Spring Data for Apache Geode & VMware GemFire (SDG) Neumann-SR3 (2.3.3.RELEASE)
Spring Session for Apache Geode & VMware GemFire (SSDG) Dragonfruit-RELEASE (2.3.0.RELEASE)
Spring Test for Apache Geode & VMware GemFire (STDG) 0.0.18.RELEASE
您可以查阅版本兼容性矩阵以获取完整详情(请向右滚动表格以查看所有依赖项)。
开始使用Apache Geode构建Spring Boot应用程序的最佳方式是使用start.spring.io上的Spring Initializer。只需点击此链接即可开始。
SBDG 1.4 M2 增加了对异步(写后)内联缓存的专用支持!
通过将“内联缓存”模式应用于您的Spring Boot应用程序,Apache Geode将在缓存未命中时“读通”,并在缓存更新时“写通”(同步)或“写后”(异步),自动完成,无需您在应用程序中进行任何特殊操作。
如果不需要强一致性并且您希望获得更好的吞吐量,则应使用异步的“写后”内联缓存。
提示
SBDG 已经支持同步(读/写通)内联缓存。另请参阅相关的示例指南和示例代码。
提示
注意
当大多数人想到缓存时,他们实际上是指“旁路缓存”模式。但是,您知道吗,缓存有几种模式:“旁路缓存”、“近缓存”、“内联缓存”(同步和异步)和“多站点缓存”。不要将缓存的“模式”(如何应用)与缓存的“用例”(用于什么)混淆,例如(HTTP)会话状态缓存。是的,缓存还有许多其他“用途”,但是有一些非常具体的模式,具有适用于或不适用于特定用例的架构优缺点。“了解得越多越好…”
SBDG 1.4 M2 和 1.3.3.RELEASE 都包含了新的 spring-geode-bom 模块。鉴于 SBDG 包含以下模块
spring-geode-starter
spring-geode-starter-actuator
spring-geode-starter-session
spring-geode-starter test
通过使用新的 Maven BOM 文件,您只需在 Spring Boot Gradle 或 Maven POM 项目构建文件中声明依赖管理,即可统一且一致地管理应用程序所需的 SBDG 模块版本。
例如
<properties>
<spring-geode.version>1.4.0-M2</spring-geode.version>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.geode</groupId>
<artifactId>spring-geode-bom</artifactId>
<version>${spring-geode.version}</version>
<scope>import</scope>
<type>pom</type>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.geode</groupId>
<artifactId>spring-geode-starter</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.geode</groupId>
<artifactId>spring-geode-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.geode</groupId>
<artifactId>spring-geode-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
我们将请求对 Spring Initializer 进行更改,以便在使用 Apache Geode 生成 Spring Boot Gradle/Maven 项目时声明新的 spring-geode-bom Maven BOM。
此版本中包含的其他值得注意的更改
更新了“入门”示例指南,在“在云平台环境中运行应用程序”下增加了一个名为“匹配客户端/服务器版本”的部分,以帮助用户了解 Spring Boot、Apache Geode、VMware/Pivotal GemFire 和 Pivotal Cloud Cache(现在称为 VMware Tanzu GemFire for VMs - BOSH)的版本兼容性要求…呼!
包括一个新的安全示例指南和示例代码,即在使用 Spring Boot 在本地和托管(例如云平台)环境中运行 GemFire/Geode 客户端和服务器时的安全配置。
请参阅更新日志了解完整详情。
我们可能会在 SBDG 1.4 的正式发布版本中,再增加一个关于异步(写后)内联缓存的示例指南和代码,并加倍努力使现有功能更加健壮和可靠。
这个项目的其他首要目标之一是让做错事变得困难。我们还有很长的路要走,但每一步都让我对事情朝着正确的方向发展更有信心。
一如既往,欢迎并感谢您的反馈和贡献。
问题 | 拉取请求 | StackOverflow