![]() |
Spring Cloud Stream is a framework for creating highly scalable event-driven microservices that communicate over common messaging systems. The framework provides a versatile programming architecture based on well-known Spring idioms and best practices, such as support for persistent pub/sub semantics, consumer groups, and stateful partitioning. Java
Spring Cloud Stream Core Building Blocks
Composed Functions or EIPFunction CompositionA declarative method of composing many functions together is possible using SCF’s function composition feature. This is demonstrated by the example as below: --spring.cloud.function.definition=uppercase|reverse Enterprise Integration Patterns (EIP)A collection of precisely defined and comprehended patterns, known as enterprise integration, patterns, enables you to characterize a business case. Filter, transformer, router, and so forth are a few examples. Click this link to learn more about EIP. Spring provides a reference implementation of EIP using the Spring Integration framework. IntegrationFlow.fromChannel(inputChannel) Using Two Applications Spring Cloud Stream – Composed FunctionsThe functionality of the two apps in the Stream (http | transformer) is combined into a single application, which we construct and register. The new stream is then put into use, and we confirm that the output matches that of the prior example. Java
ConclusionSo, this is Spring Cloud Stream – Composed Functions or EIP. For orchestrating capabilities that are aligned in sequence, SCF Composition is a better fit, whereas SI is a better option for anything else that falls within the EIP category. |
Reffered: https://www.geeksforgeeks.org
Advance Java |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 13 |