logo

Async logging doesn't remove cost – What limits?

Posted by efmsoft |4 hours ago |2 comments

emishkurov 3 hours ago

With asynchronous logging, the total time spent across the calling thread and the thread that actually performs the write will, of course, be higher. However, the latency of the calling thread can be reduced.

efmsoft 4 hours ago

I wrote this after profiling real logging systems.

The main takeaway: formatting and IO dominate much more than async vs sync.

Curious what others saw as bottlenecks in production.