spring-cloud / spring-cloud-function

Apache License 2.0
1.04k stars 616 forks source link

Support of Multiple Function Location Jars #1090

Open anoop-awasthi opened 11 months ago

anoop-awasthi commented 11 months ago

We have a use case where Indivisual functions are developed in their seperate Jars due to Isolation reasons and we want to deploy these multiple functions combined in a single deployer. Single Deployer should maintain child application contexts and loads the corresponding function jar.

Ex-

spring.cloud.function.location=target/upper-1.0.0.jar;target/lower-1.0.0.jar
spring.cloud.function.definition=upperFunction;lowerFunction

Similar Issue mentioned in https://github.com/spring-cloud/spring-cloud-function/issues/564

cybdrachir commented 9 months ago

We have the same use case. Is there any plan to add this feature?

olegz commented 2 weeks ago

We have spring-cloud-function-deployer module that doers exactly what you are asking for and in fact was designed for that. Here is the test from it https://github.com/spring-cloud/spring-cloud-function/blob/main/spring-cloud-function-deployer/src/test/java/org/springframework/cloud/function/deployer/FunctionDeployerTests.java.

Also, here are the docs for it https://docs.spring.io/spring-cloud-function/reference/spring-cloud-function/deploying-a-packaged.html

olegz commented 2 weeks ago

Is this about allowing multiple locations instead of a single JAR?

olegz commented 6 days ago

Any updates on this?