领先一步
VMware 提供培训和认证,助您加速进步。
了解更多我谨代表团队和社区,很高兴地宣布 Spring Boot for Apache Geode and Pivotal GemFire 1.0.0.M2 版本发布。
总而言之,本次发布带来了以下改进:
在使用 Apache Geode、Pivotal GemFire 或 Pivotal Cloud Cache (PCC) 来管理和存储 Spring Boot 应用程序的(HTTP)Session 状态时,增加了对 Spring Session 的自动配置支持。
在使用 Spring 的 Cache Abstraction 并通过 Spring Boot 自动配置时,识别 spring.cache.type。
文档的添加和改进。
升级到 Spring Framework 5.0.8.RELEASE、Spring Boot 2.0.4.RELEASE 和 Spring Data Kay-SR9。
此版本建立在 最近推出的 Spring Session for Apache Geode/Pivotal GemFire (SSDG) 2.0.5.RELEASE 的基础上。
SSDG 的一项关键新增功能是能够使用 Properties 以及新的 SpringSessionGemFireConfigurer 回调接口,动态配置 Spring Session 与 Apache Geode/Pivotal GemFire/PCC。
除了此处 讨论 和此处 记录 的 Properties 之外,Spring Boot for Apache Geode & Pivotal GemFire 还额外识别以下 Properties:
spring.session.timeout
server.servlet.session.timeout
即便如此,如果设置了这些 Properties 的任何组合,spring.session.data.gemfire.session.expiration.max-inactive-interval-seconds 仍然优先于 spring.session.timeout,后者又优先于 server.servlet.session.timeout。
Spring Boot for Apache Geode/Pivotal GemFire 还额外识别并尊重 spring.session.store-type。但是,不幸的是,此 Property 不能设置为 gemfire 或 geode,因为这些值不被 Spring Boot 本身识别为有效的(枚举)值。
对于新的 SpringSessionGemFireConfigurer 回调接口,Spring Boot for Apache Geode & Pivotal GemFire 除了 Spring Session for Apache Geode/Pivotal GemFire 已提供的功能外,不添加任何其他内容,此处 讨论 和此处 记录。
接下来,Spring Boot for Apache Geode & Pivotal GemFire 将提供开箱即用的 HealthIndicators,用于评估和监控由 Apache Geode/Pivotal GemFire 驱动的 Spring Boot 应用程序的运行时健康状况。
有关 Spring Boot HealthIndicators 的更多信息,请在此处 查阅。
这将会在下一个版本 1.0.0.M3 中提供。
更长远来看,我们计划添加对 Spring Boot Actuator 的支持。目前正在进行一项工作,将 Apache Geode/Pivotal GemFire 的 Stats 架构与 Micrometer 进行改造。这将成为 Spring Boot for Apache Geode & Pviotal GemFire Actuator 支持的基础。这很可能在 SBDG 1.1 中提供。
快来尝试一下吧!
您可以从 Spring 的 libs-milestone 仓库获取新的 Spring Boot for Apache Geode 或 Pivotal GemFire 组件,并通过包含以下依赖来开始构建支持 Apache Geode/Pivotal GemFire 的 Spring Boot 应用程序:
org.springframework.geode:spring-geode-starter (Apache Geode)
org.springframework.geode:spring-gemfire-starter (Pivotal GemFire/PCC)
欢迎任何反馈和/或贡献:Issues | PR | StackOverflow。
另外,别忘了关注今年的 SpringOne Platform。届时将有大量精彩的 内容 和 演讲者。此外,Luke Shannon 和我将就 “实时扩展 Spring Boot 应用程序” 进行演讲,届时我们将展示此项目以及更多内容。