Gateway Design
Brief
Architecture Introduction
- gateway-core: Gateway’s core interface definition module, mainly defines the “GatewayParser” and “GatewayRouter” interfaces, corresponding to request parsing and routing according to the request; at the same time, it also provides the permission verification tool class named “SecurityFilter”.
- gateway-server-support: The driver module of Gateway, relies on the spring-cloud-gateway module to implement “GatewayParser” and “GatewayRouter” respectively, among which “DefaultLabelGatewayRouter” provides the function of label routing.
- gateway-httpclient-support: Provides a client-side generic class for Http to access Gateway services, which can be implemented based on more.
- instance-label: External instance label module, providing service interface named “InsLabelService” which used to create routing labels and associate with application instances.