21. Red Expert Alliance
https://www.redexpertalliance.com
Reactive Patterns: Backpressure
• Systems should be designed and implemented to react
assertively under sustained load
• This is often neglected although such conditions are
usually expected and highly predictable
• Negotiating back pressure usually requires some sort
of Flow Control
• Which in simpler terms is the ability to say “hey, slow
down!!”, or even “stop it!!”
24. Red Expert Alliance
https://www.redexpertalliance.com
Reactive Patterns: Circuit Breaker
https://blog.risingstack.com/designing-microservices-architecture-for-failure/
• Used in the industry to protect
electronic components
• In software development
• Protect resources
• Help resources to auto-recover
from failures
• Prevent hanging operations
32. Red Expert Alliance
https://www.redexpertalliance.com
Demo: Backpressure
• Fast Producer, Fast Consumers
• Fast Producer, Fast and Slow Consumers
• Fast Producer, Fast and Slow Consumers with buffering:
OverflowStrategy.dropNew
• Fast Producer, Fast and Slow Consumers with buffering:
OverflowStrategy.backpressure
33. Red Expert Alliance
https://www.redexpertalliance.com
Implement Integration with Serverless/FaaS
• Function-as-a-Service (FaaS)
• Atomar step within a certain business capability
• Example: Bicycle rental - Process incoming Damage events
• Serverless
• No need to care about servers
• Scale-out functions automatically on-demand
• You only pay processing time
35. Red Expert Alliance
https://www.redexpertalliance.com
When is FaaS adequate for integration?
• Typical use cases:
• Batch processing, which takes place on regular schedules
• Event processing
• Considerations to make:
• Number of invocations
• Keep runtime short
• Serverless Platforms will terminate long-running Functions
• Don‘t block HW resources for too long
39. Red Expert Alliance
https://www.redexpertalliance.com
Happy Path: Renting a bike
Scan a QR Codes at
bike rental station with an mobile app
Book the rental bike
Remove the bicycle from the station
and drive off
Open lock at rental
station
40. Red Expert Alliance
https://www.redexpertalliance.com
Use Case: Bonus Action
„After renting a bike for a fee for the 10th
time you get a 20% discount and can get a
free coffee at the next Mermaid Coffee during
your tour at our expense.“
41. Red Expert Alliance
https://www.redexpertalliance.com
What does this mean for the application?
• Connection to CRM and ERP necessary
• Calculation of different cost rates on the basis of historical data
• Connection of all branches of the external partner (Mermaid Coffee)
• Near real-time - cyclists must still have rented a bike to redeem their
coffee
• Payment flows between partners, so that a high degree of robustness
is necessary
47. Red Expert Alliance
https://www.redexpertalliance.com
Summary
• Integration is still a relevant discipline nowadys, but the way how to
implement it has chnged
• Existing integration approaches based on ESB solutions are still valid,
but
• Businesses getting disrupted, are volatile and techologies is
emerging rapidly, so the architecture needs to consider this
• Architectures must address this accordingly