while building our streams we tried to avoid code duplication by replacing our outputs with a resource.
While trying different configurations, we noticed that if we declare multiple output resources, they immediately connect upon startup even if these resources aren't referenced in any stream.
In our solution, we would like to define multiple output resources in a single yaml file. Since we plan to have plenty of different outputs in the same file, we want to be sure that only the referenced resources are actually instantiated.
Is there any way to avoid the "second_output" resource to be used when not referenced? (e.g. lazy loading?)
Hi!
while building our streams we tried to avoid code duplication by replacing our outputs with a resource. While trying different configurations, we noticed that if we declare multiple output resources, they immediately connect upon startup even if these resources aren't referenced in any stream.
Here's our resource.yaml file:
Here's the stream file:
And this is the startup script:
In our solution, we would like to define multiple output resources in a single yaml file. Since we plan to have plenty of different outputs in the same file, we want to be sure that only the referenced resources are actually instantiated. Is there any way to avoid the "second_output" resource to be used when not referenced? (e.g. lazy loading?)