#4819·go-zero

HTTP 网关是否应该更加灵活?

作者: hide-in-code创建于 2025年4月30日更新于 2026年9月12日
标签enhancementstalefeaturearea/gateway

https://GitHub.com/zeromicro/go-zero/blob/aeceb3cfbed54e77bdfea40cad2caf217678d05a/gateway/server.go#L221 The code here determines that go-zero's gateway can only proxy through the Mappings set in `etc/gateway.yaml`, including request paths and request methods. In actual production, the number of backend service APIs continues to increase rapidly, and the request methods of backend interfaces are constantly changing. As such, when using go-zero as an HTTP gateway, this complex and cumbersome configuration will be a terrible experience. I'm wondering if the official team has more improvement plans to simplify the configuration for this part.

内容来源: zeromicro/go-zero