Spring Cloud Gateway

此專案提供一個建構於 Spring 生態系統之上的 API 閘道,包括:Spring 6、Spring Boot 3 和 Project Reactor。Spring Cloud Gateway 旨在提供一種簡單而有效的方式來路由到 API,並為它們提供橫切關注點,例如:安全性、監控/指標和彈性。

Spring Cloud Gateway 有兩種不同的版本:ServerProxy Exchange。每個版本都提供 WebFlux 和 MVC 相容性。

  • Server 變體是一個功能齊全的 API 閘道,可以是獨立的,也可以嵌入在 Spring Boot 應用程式中。

  • Proxy Exchange 變體專門用於基於註解的 WebFlux 或 MVC 應用程式,並允許使用特殊的 ProxyExchange 物件作為 Web 處理器方法的參數。