2 ms·
I'm hitting this right now with my predecessors' setup/factory classes for Kafka in our codebase. There's different kinds of factories stacked atop one another
by mrkeen 3y ago
I'm hitting this right now with my predecessors' setup/factory classes for Kafka in our codebase.
There's different kinds of factories stacked atop one another. There's Guide dependency injection so that the factories are able to reach into config classes and copy custom properties into the actual Kafka constructors right before instantiation.
It's just an extra Rube Goldberg machine in front of Kafka instantiation which doesn't prevent the caller from needing to know the implementation details.