Open shashanksdixit opened 4 years ago
@shashanksdixit Do you have a simple app that reproduces this behavior?
@amamounelsayed @TsuyoshiUshio @apawast @anirudhgarg Is this something you can help look into?
I have uploaded the source code here. It is simple function app with two different functions.
Thank you, @shashanksdixit . I'll have a look.
Any Update on this issue, I am also facing the same issue.
Hi @shashanksdixit and @SelvamRajendrn ,
Sorry for late reply. I can reproduce it. I identify why it happens. It is happens inside of the spring-cloud-function. According to their code, they assume that it has one function. I'm not sure if it is a bug or limitation. So that I create an issue on their repo.
Could you watch this issue for the solution? https://github.com/spring-cloud/spring-cloud-function/issues/600
Hi @TsuyoshiUshio Thank you for your reply. Also thank you for creating the issue at Spring Cloud. I will watch that issue.
I have the same issue here... When I create a Java application for Azure Function Apps which has more than one function within, a new Spring Application is started for each function... In a scenario that I had 10 small functions, I got 10 Spring Applications started... for each one there was a Hikari pool starting and so on...
Description
I have created an function app [Java class com.example.DemoFunction], which has two functions namely function1 and function2. At the begining when function1 is called below is how the log messages are
If we keep switching between the function calls, the application initializes again.
Investigative information
Please provide the following:
Repro steps
Example:
Expected behavior
Once the function app is initialized then it should not get initialized for different function calls in it (unless it goes in cold state). One function app is initialized for function1 call, it should not get initialized again for function2 call.
Actual behavior
Function app is initialized for different function calls in it as given in the Example above.
Known workarounds
No workaround found.
Related information
Provide any related information