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...

КОМЕНТАРІ • 12

  • @sastabazaar
    @sastabazaar 3 роки тому

    A new video .. thanks

  • @archnapandey5485
    @archnapandey5485 2 роки тому

    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?

    • @Vishwasp13
      @Vishwasp13  2 роки тому

      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.

  • @thecraftsman915
    @thecraftsman915 Рік тому

    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

    • @Vishwasp13
      @Vishwasp13  Рік тому

      What is the error you are facing?

    • @thecraftsman915
      @thecraftsman915 Рік тому

      @@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

    • @thecraftsman915
      @thecraftsman915 Рік тому

      @@Vishwasp13 i have also tried to downgrade my java runtime version but still its failing

    • @Vishwasp13
      @Vishwasp13  Рік тому

      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.

  • @ceop1239
    @ceop1239 3 роки тому

    Awesome

  • @ceop1239
    @ceop1239 3 роки тому

    When making a custom connector that listens on messages how do you forward that message to the flow

    • @Vishwasp13
      @Vishwasp13  2 роки тому

      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.

    • @Vishwasp13
      @Vishwasp13  2 роки тому

      Here's the link for the listener ua-cam.com/video/LED1GvqUSWA/v-deo.html hope it helps