Is functions composition in spring-cloud-function / spring-cloud-stream pass by value, or is it reusing the integration in between

huangapple go评论90阅读模式
英文:

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.

huangapple
  • 本文由 发表于 2020年9月16日 16:10:18
  • 转载请务必保留本文链接:https://go.coder-hub.com/63915764.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定