Spring Boot for Apache Geode & VMware GemFire 1.4.0-M2 和 1.3.3.RELEASE 已釋出

釋出 | John Blum | 2020年8月22日 | ...

我很高興代表 Spring、Apache Geode 和 VMware Tanzu GemFire 社群,宣佈釋出 Spring Boot for Apache Geode & VMware GemFire (SBDG) 1.4.0-M21.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 已經支援同步(讀/寫通)內聯快取。另請參閱相關的示例指南示例程式碼

提示

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

獲取 Spring 新聞通訊

透過 Spring 新聞通訊保持聯絡

訂閱

領先一步

VMware 提供培訓和認證,助您加速進步。

瞭解更多

獲得支援

Tanzu Spring 提供 OpenJDK™、Spring 和 Apache Tomcat® 的支援和二進位制檔案,只需一份簡單的訂閱。

瞭解更多

即將舉行的活動

檢視 Spring 社群所有即將舉行的活動。

檢視所有