Spring Integration and REST Gateway

Question about features / capabilities. Trying to figure out if Spring Integration can be used to create Gateway web services for RESTful. Essentially, you are trying to create a proxy gateway that will intercept all calls to the rear-end REST services and add security, such as OAUTH, Throttling, etc. I reviewed apache synapse, wso2 API Manager and wanted to build a similar service using Spring.

+4
source share
1 answer

Yes; starting with Spring Integration 3.0 (current version 4.0.2), you can specify several access paths for the incoming-gateway ( foo/{bar}, /baz/{qux}), etc. In previous versions, for each URL, you needed a separate gateway, which would be impractical for a large service.

Depending on the complexity, you may need to implement a reverse interface using Spring MVC ReST support directly and interacting with the back-end Spring Stream integration using the Messaging Gateway as needed.

spring -security-oauth project is available for oauth.

EDIT: There is also a rest-http example .

+5
source

Source: https://habr.com/ru/post/1543098/


All Articles