You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let's reuse AsyncInitializationWrapper and remove the thread from ServerlessMVC. I already introduced a minimal InitializableLambdaContainerHandler interface so it's easier to reuse it.
The text was updated successfully, but these errors were encountered:
The issue with it is that it will create circular dependency since s-c-function would need to depend on AWS code which depends on s-c-function.
Let me see if I can create some callback.
Overall I do agree that it should be the same code that uses async
Lambda has max. 10 seconds for init which is handled in https://github.com/spring-cloud/spring-cloud-function/blob/14160f8201424d532c7e19e83853ac87ccc0f829/spring-cloud-function-adapters/spring-cloud-function-serverless-web/src/main/java/org/springframework/cloud/function/serverless/web/ServerlessMVC.java#L109. Currently if the init e.g. takes 15 seconds, the initial request fails while it works for the other older handlers.
Let's reuse
AsyncInitializationWrapper
and remove the thread fromServerlessMVC
. I already introduced a minimalInitializableLambdaContainerHandler
interface so it's easier to reuse it.The text was updated successfully, but these errors were encountered: