Jan 5 · 10 min read · Assume you are making a very simple login system. A user sends a request with a username and password. Let us list down what all needs to be present in the system. If the credentials are valid, a session should be created. All the authorized action...
Join discussion
Jan 11, 2025 · 11 min read · Distributed Lock với Redis là một cơ chế khóa phân tán sử dụng Redis như một kho lưu trữ để điều phối và quản lý trạng thái khóa giữa nhiều client trong môi trường phân tán. Cơ chế này đảm bảo rằng tại một thời điểm, chỉ một client duy nhất có thể gi...
Join discussion
Jan 8, 2025 · 17 min read · 💡 Khóa (locking) là một cơ chế cho phép thực hiện công việc song song với cùng một dữ liệu trong cơ sở dữ liệu. Khi có nhiều giao dịch (transaction) cố gắng truy cập cùng một dữ liệu cùng lúc, các khóa sẽ được sử dụng để đảm bảo rằng chỉ có mộ...
Join discussion
Oct 8, 2024 · 7 min read · "When debugging concurrency issues, remember: Schrödinger's bug may or may not exist until observed." In large applications which are accessed daily by thousands or millions of users, concurrency is inevitable. (especially in high transactional syst...
Join discussionOct 7, 2024 · 26 min read · In modern multi-core processors, multiple cores operate in parallel, each with its own cache to store frequently accessed data. These caches are designed to reduce the time it takes for a processor to retrieve data from memory, speeding up overall pe...
Join discussionFeb 8, 2023 · 4 min read · Introduction In today's high-traffic database management systems (DBMS), leveraging the full potential of hardware is essential. With the advent of modern CPUs, the opportunity for parallel processing has increased significantly. However, executing m...
Join discussion
Jul 19, 2022 · 9 min read · Whether you are a manager or a developer, I’m sure you heard the complaints “the application is slow” or “the application is blocked”. They lead to unhappy clients and even lost contracts. This paper presents a way to get rid of waits and deadlocks c...
Join discussion