Use functional options configuration
Closed this issue · 1 comments
maestre3d commented
Is your feature request related to a problem? Please describe.
Since broker has a lot of ways to get configured, we should be using an idiomatic way to tackle factory's value overhead.
Describe the solution you'd like
Uber, AWS SDK v2 and many more companies use the Option
type or also called Functional Options
pattern along with a method chaining so developers can easily add up new configs on either factories or at runtime.
Describe alternatives you've considered
None.
Additional context
More info here.