Part 1 | Mule 4 | Custom Circuit Breaker Connector| Solution Overview
Вставка
- Опубліковано 1 жов 2024
- Unlinke frameworks likes Spring Cloud, Mule does not having any out of the box solution for circuit breaker pattern. In this video I have discussed the solution for implementing circuit breaker by creating custom connector.
The solution works in distributed as well as standalone systems, this is acheived using hazelcast behind the scenes.
📌 Links to videos in this series
==========================
🔗 Circuit Breaker Part 1: • Part 1 | Mule 4 | Cust...
🔗 Circuit Breaker Part 2: • Part 2 | Mule 4 | Cust...
🔗 Circuit Breaker Part 3: • Part 3 | Mule 4 | Cust...
🔗 Circuit Breaker Part 4: • Part 4 | Mule 4 | Cust...
🔗 Circuit Breaker Part 5: • Part 5 | Mule 4 | Cust...
🔗 Github: github.com/Vis...
🎬 Popular Mule 4 Playlists
==========================
💥 Advanced Concepts in Mule: bit.ly/Advance...
💥 Mule 4 Custom Connectors: bit.ly/Mule4Cu...
💥 Dataweave Series: bit.ly/dataweave2
Let's connect:
=========================
💥 Twitter: / vishwas_p13
🔗 Icon by flaticon: www.flaticon.c...
A new video .. thanks
All 5 videos seems excellently presented. Not sure whether Mr Vishwas will reply but I have couple of feedback/queries to share after following the entire videos.
1) How multiple IPs could be configured in Member IP Address properties, if the Mule Apps are deployed in cloudhub because the IPs are dynamically changing? Appreciate if he can talk on that.
2) In CBUtility class when getCoreEvent gets triggered in case of Error scenario the code breaks. Any thoughts?
1. In cloudhub its not possible until you have static IPs alloted. This solution can work for horizontally scaled application only when you know the IPs of the runtimes. Hazelcast cannot automagically determine the members to form group.
2. Please share some error stack trace to be able to comment on it.
hi i have anypoint 7.8 maven version 3.9.0 and java version 1.8 but i cant install the circuit breaker project through my maven in cmd, can you please help, i really need the connector for my project
What is the error you are facing?
@@Vishwasp13 when im installing the project via cmd, im getting BUILD FAILURE error, and
[WARNING] diagnostic: warning: Supported source version 'RELEASE_8' from annotation processor 'org.mule.runtime.ast.internal.extension.loader.ASTExtensionResourcesGeneratorAnnotationProcessor' less than -source '16'
[ERROR] error on execute: java.lang.ExceptionInInitializerError
@@Vishwasp13 i have also tried to downgrade my java runtime version but still its failing
I've tried to install using maven version 3.8.6, Java version 1.8.0_332, it installs without any error. Can you try with this version of maven? I haven't checked with maven 3.9.0 yet.
Awesome
When making a custom connector that listens on messages how do you forward that message to the flow
Follow these steps
1. extend the class to org.mule.runtime.extension.api.runtime.source.Source
2. Implement onStart(SourceCallback scb)
3. In the implementation you can use the SourceCallback object's handle method to perform somehting using the Result object like so -> scb.handle(Result.builder)
4. The Result class builder method will take a Message and this can be sent to the flow.
I'll see if I can make a video that would be a change listener for this circuit breaker.
Here's the link for the listener ua-cam.com/video/LED1GvqUSWA/v-deo.html hope it helps