You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've previously written another statsd-client, where I ended up factoring out the connection-handling into a separate file per connection type:
Common-ish interface to a "connection" makes the core client much simpler.
Easier to test when can poke at more "internals" in the connection logic.
Lowers the bar for adding new kinds of connections.
ATM, I see UDP, UDS, TCP and mock connection types, which all seem to have quirks and special-casing to some degree, and I think a split-up like this would simplify things quite a bit.
I don't personally have the bandwidth to take it on, but if someone is looking for something to hack on, I think this would be nice to work on (there's already a quite comprehensive test-suite to work with).
The text was updated successfully, but these errors were encountered:
@msiebuhr Thank you for the suggestion, and for your recent improvements here! Happy to have your help here, especially with your statsd library expertise, whenever you can give it.
I imagined having a udp.js, uds.js, tcp.js etc. would provide an obvious split. transport.js or whatever else would then pick the right one and maybe do some thin wrapping...
I've previously written another statsd-client, where I ended up factoring out the connection-handling into a separate file per connection type:
ATM, I see
UDP
,UDS
,TCP
andmock
connection types, which all seem to have quirks and special-casing to some degree, and I think a split-up like this would simplify things quite a bit.I don't personally have the bandwidth to take it on, but if someone is looking for something to hack on, I think this would be nice to work on (there's already a quite comprehensive test-suite to work with).
The text was updated successfully, but these errors were encountered: