Sep 1, 2025 · 7 min read · TL;DR: Từ việc gặp phải hiệu ứng thundering herd trong production, mình đã áp dụng Single Flight pattern với cơ chế lock để đạt được perfect deduplication - từ 7 request đồng thời xuống chỉ 1 request thực sự được gửi đi. Trong quá trình phát triển ứn...
Join discussion
Jul 30, 2025 · 5 min read · Welcome to the next pikoTutorial! What's the problem? Let's take a look at the simple example below: #include <iostream> #include <future> #include <thread> #include <memory> // define a class spinning up a thread class SomeClass { public: SomeCl...
Join discussion
Mar 22, 2025 · 4 min read · When you use a computer, you interact with various applications—opening files, browsing the internet, and playing games. But have you ever wondered what ensures everything runs smoothly behind the scenes? That’s where the Operating System (OS) comes ...
Join discussion
Feb 17, 2025 · 3 min read · Introduction Strings are one of the most commonly used data types in Java. Java provides three different classes for handling strings efficiently: String, StringBuffer, and StringBuilder. Understanding their differences and when to use each one is cr...
Join discussion