An open API service indexing awesome lists of open source software.

https://github.com/bota5ky/retransmission-sample

Demo for webflux, webmvc and gateway practise
https://github.com/bota5ky/retransmission-sample

gateway java webflux webmvc

Last synced: 8 months ago
JSON representation

Demo for webflux, webmvc and gateway practise

Awesome Lists containing this project

README

          

STEP 1: 实现 webflux 和 webmvc,请求从 gateway 根据不同的 uri 转发到不同的服务,最终都转发到 remote,response 返回所有 header 内容

STEP 2: 使用 Spring interceptor 根据特殊的 header 字段选择进行透传

STEP 3: 根据不同的特殊 header 字段的值转发到不同的 instance

指定端口运行不同的实例:

```bash
SERVER_PORT=8081 ./gradlew :mvc:bootRun
```