Reddit Programming – Telegram
Reddit Programming
212 subscribers
1.22K photos
125K links
I will send you newest post from subreddit /r/programming
Download Telegram
When Logs Become Chains: The Hidden Danger of Synchronous Logging
https://www.reddit.com/r/programming/comments/1omb1wa/when_logs_become_chains_the_hidden_danger_of/

<!-- SC_OFF -->Most applications log synchronously without thinking twice. When your code calls logger.info(”User logged in”), it doesn’t just fire-and-forget. It waits. The thread blocks until that log entry hits disk or gets acknowledged by your logging service. In normal times, this takes microseconds. But when your logging infrastructure slows down—perhaps your log aggregator is under load, or your disk is experiencing high I/O wait—those microseconds become milliseconds, then seconds. Your application thread pool drains like water through a sieve. Here’s the brutal math: If you have 200 worker threads and each log write takes 2 seconds instead of 2 milliseconds, you can only handle 100 requests per second instead of 100,000. Your application didn’t break. Your logs did. https://systemdr.substack.com/p/when-logs-become-chains-the-hidden https://www.youtube.com/watch?v=pgiHV3Ns0ac&list=PLL6PVwiVv1oR27XfPfJU4_GOtW8Pbwog4 <!-- SC_ON --> submitted by /u/Extra_Ear_10 (https://www.reddit.com/user/Extra_Ear_10)
[link] (https://systemdr.substack.com/p/when-logs-become-chains-the-hidden) [comments] (https://www.reddit.com/r/programming/comments/1omb1wa/when_logs_become_chains_the_hidden_danger_of/)