Tag: Concurrency
4 articles
Build MQ Prototype with BlockingQueue: Producer-Consumer Gap
Implement a minimal runnable message model with queue buffering and async decoupling using Java concurrency.
Guava Cache: concurrencyLevel and refreshAfterWrite in Practice
Deep dive into concurrencyLevel, refreshAfterWrite and LoadingCache dynamic loading behavior, with horizontal comparison with custom LinkedHashMap LRU implementation.
MySQL Transaction Control: Lost Update, Locking and MVCC
Concurrent transaction problems: lost update, dirty read, non-repeatable read, phantom read, lock mechanism: shared lock, exclusive lock, MVCC.
MySQL Transaction Issues: Dirty Read, Non-Repeatable Read and Phantom Read
Common issues in database transactions include dirty read, non-repeatable read, and phantom read. These issues are closely related to database isolation levels.