How to protect your application from overloading? Use Throttler EIP and build it using Apache Camel.

Поделиться
HTML-код
  • Опубликовано: 27 ноя 2024

Комментарии • 10

  • @albertoponce3159
    @albertoponce3159 Год назад +1

    70 / 5.000
    The best explained tutorials I've seen / read of apache camel. Thanks

  • @abirganguly2626
    @abirganguly2626 Год назад +1

    Sir , you are too good. Hats off to you.

  • @kambiz.h
    @kambiz.h Год назад +2

    Thanks for sharing and it was a great demo. I am a big fan of Apache Camel and it has been working for me extremely well in production for many years. I do understand your demo is just to depict the Throttle. Just want to add up here, Although, Throttle save our application to consume as expected request as we assumed, it move the pressure to incoming component part, in this case to RabbitMQ, which it has limitation to queue up the incoming requests as well based on the resources in MQ. In this case we can also add up the SEDA (Staged Event-Driven Architecture) component to stage incoming messages and process them asynchronously, which can help to handle bursts of traffic and maximize the use of our resources.

    • @SagguUK
      @SagguUK  Год назад +2

      Thanks for sharing your input. I do agree this approach can create back-pressure. There are several ways to overcome this problem, and SEDA is one such approach. I like SEDA but it has it's own pros & cons. One issue could be that you might endup over consuming messages and then lose all in JVM crash.

  • @skin4813
    @skin4813 Год назад +1

    Thanks, it's clever to put the throttle directly after a queue, so the memory stay low.

  • @konstantingromov6485
    @konstantingromov6485 Год назад

    Good video. Will be nice to know how to configure properly message broker with throttler and queue size not to loose data.
    I guess it's also possible to persist data if it exceed queue size.

  • @AkilDiwakar
    @AkilDiwakar Год назад

    Brilliant. Can you also explain how you managed to print the number increments on the same line on the console?

  • @gunapmk1979
    @gunapmk1979 3 месяца назад

    Hi could you explain what is the difference between from and fromF?

    • @SagguUK
      @SagguUK  3 месяца назад

      This method is used when you want to construct the URI using a formatted string (similar to String.format() in Java).
      Example: fromF("file:%s?fileName=%s", "inputFolder", "test.txt")
      .to("log:received");