In this scenario, udf and kafkaStream can vary depending on the consumer. For instance, if there are 10 Kafka consumers, there will be 10 udfs and 10 kafkaStreams, but only one instance each of logger and stats objects.
I attempted to utilize multiple ParamTags, but it doesn't seem to work as intended.
Describe the solution you'd like
I'd like this to support multiple ParamTags. If there are more than one ParamTags, we should attempt to find those objects and utilize them accordingly.
Describe alternatives you've considered
Currently, I've eliminated the use of fx for this particular use case and transitioned to a traditional argument-based approach.
Is this a breaking change?
NO
Additional context
What challenges are we facing in supporting it? I'm considering submitting a pull request to address these issues. Additionally, I've come across cases where we've explicitly tested and disallowed this behavior.
Is your feature request related to a problem? Please describe. I've found a use case of using multiple ParamTags with
ParamTags
,In this scenario,
udf
andkafkaStream
can vary depending on the consumer. For instance, if there are 10 Kafka consumers, there will be 10udf
s and 10kafkaStream
s, but only one instance each oflogger
andstats
objects.I attempted to utilize multiple ParamTags, but it doesn't seem to work as intended.
Describe the solution you'd like I'd like this to support multiple
ParamTags
. If there are more than oneParamTags
, we should attempt to find those objects and utilize them accordingly.Actually, the
invoke
isn't necessary here. Once we can begin utilizingfx.Lifecycle
withinNewKafkaConsumer
, it could look something like this.Describe alternatives you've considered Currently, I've eliminated the use of
fx
for this particular use case and transitioned to a traditional argument-based approach.Is this a breaking change? NO
Additional context What challenges are we facing in supporting it? I'm considering submitting a pull request to address these issues. Additionally, I've come across cases where we've explicitly tested and disallowed this behavior.