英文:
Is functions composition in spring-cloud-function / spring-cloud-stream pass by value, or is it reusing the integration in between
问题
你好,我不理解并且在“spring-cloud-function
”或“spring-cloud-stream
”的文档中没有描述。如果我有两个函数“Uppercase
”和“reverse
”。
假设我有一个源队列 - “uppercase-source
”输入到“Uppercase
”函数,它的输出连接到“uppercase-output
”。
然后“uppercase-output
”作为源连接到“reverse
”函数,其输出连接到“reverse-output
”。
如果我按以下方式执行函数组合:
--spring.cloud.function.definition=uppercase|reverse
在“uppercase
”和“reverse
”之间的过程中,结果函数会使用按值传递,还是仍然会使用中间的队列/主题,也就是说会使用“uppercase-output
”?
英文:
Hi don't understand and it is not described in the documentation of either "spring-cloud-function
" or "spring-cloud-stream
". If I have two functions "Uppercase
" and "reverse
".
Lets say I have a source queue - "uppercase-source
" input to "Uppercase
" function which does output to "uppercase-output
".
And then "uppercase-output" is source to "reverse
" function which outputs to "reverse-output
".
If I perform a function composition the following way:
--spring.cloud.function.definition=uppercase|reverse
Wil the resulting function use pass by value in between "uppercase" and "reverse", or will the resulting function still uses the queues/topics in between this would say "uppercase-output"?
答案1
得分: 1
已测试。Spring Cloud Stream在执行组合时在函数之间使用集成。
英文:
Tested it.Spring cloud stream uses the integration in between the functions when performing composition.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论