spring-cloud-function icon indicating copy to clipboard operation
spring-cloud-function copied to clipboard

Support to convert the existed REST controllers to a function-based application

Open dotekien opened this issue 6 years ago • 0 comments

Is your feature request related to a problem? Please describe. Spring boot applications with REST controllers are very popular. How easy to convert these controllers to function-based application will help lots of team moving to serverless architecture. The current start() function in FunctionInvoker currently support only to load function beans to spring context and then use these function beans to process requests in the handleRequest(). There is no support to forward function-based messages to a DispatcherServlet

Describe the solution you'd like Detect if WebApplicationContext is present then convert the InputStream to HttpRequest, and outputStream to ServerHttpResponse

Describe alternatives you've considered

Additional context

dotekien avatar Dec 26 '19 18:12 dotekien