Closed Sneagan closed 4 months ago
Because we are doing CPU-intensive work, it is unlikely that 100 is the most efficient buffer size here. Instead, use runtime.NumCPU() + something to more intelligently set this buffer limit.
runtime.NumCPU() + something
https://github.com/brave-intl/challenge-bypass-server/blob/17fec6895e373d00b87317650c70bfda128784a9/kafka/main.go#L92
Because we are doing CPU-intensive work, it is unlikely that 100 is the most efficient buffer size here. Instead, use
runtime.NumCPU() + something
to more intelligently set this buffer limit.https://github.com/brave-intl/challenge-bypass-server/blob/17fec6895e373d00b87317650c70bfda128784a9/kafka/main.go#L92