haskell-works / hw-kafka-client

Kafka client for Haskell, including auto-rebalancing consumers
MIT License
140 stars 50 forks source link

Use Bytestring instead of String for stats callback? #158

Closed phile314 closed 3 years ago

phile314 commented 3 years ago

As the statistics callback returns a JSON which might be not so small, I am wondering if maybe it makes sense to use ByteString there instead of String? A bytestring could be passed directly to the Aeson decode function.