Re: Load route steps dynamically

2021-04-17 Thread Claus Ibsen
Ad 4) We designed route templates on purpose to be static and simple to keep the concept easy while we evolve and improve its implementation. The recent additon of Kamelets to the core, and with the many new DSLs makes it important that the route templates work great across all of those. However

Re: Load route steps dynamically

2021-04-17 Thread ski n
Yes, I already use the choice blocks. I wondered that there maybe was a performance penalty, while the choices aren't really necessary in runtime. Did a small load test between minimal route (8 steps) vs full route (94 steps). Done with Camel 3.7.3. The test was processing 100 MB of messages with b

Re: Load route steps dynamically

2021-04-17 Thread Mantas Gridinas
Sounds like you're programming in your routes rather than integrating processes/systems. I think the simplest solution would be using feature flags in choice blocks. On Sat, Apr 17, 2021 at 8:00 AM ski n wrote: > > Hi all, > > I have a question how to load (add or remove) route steps dynamically

Load route steps dynamically

2021-04-17 Thread ski n
Hi all, I have a question how to load (add or remove) route steps dynamically with Java/Java DSL. For example, I have a route with around 20 steps. The users can configure which steps are used and which not. Now the creating of the route has the following steps: 1) Write code (Java DSL) 2) Comp