spring-cloud / spring-cloud-function

Apache License 2.0
1.04k stars 618 forks source link

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

Open dotekien opened 4 years ago

dotekien commented 4 years ago

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

github-actions[bot] commented 4 days ago

This issue has been stale for over 60 days