Shopify가 재고 예약 시스템을 Redis에서 MySQL로 교체하였다.
Shopify는 재고 예약 시스템을 Redis 기반에서 MySQL로 변경하였다. MySQL 8의 SKIP LOCKED 기능을 이용해 시스템을 재설계하여 오버셀을 방지하는 방식으로 효율성을 높였다. 이 변경은 결제 처리 중 동일 상품이 두 번 판매되는 것을 방지하는 핵심 인프라 개선이다.
Shopify has replaced its inventory reservation system from Redis to MySQL.
Shopify has transitioned its inventory reservation system from Redis to MySQL. The redesign utilizes MySQL 8's SKIP LOCKED feature, shifting from a quantity column per item to a 1-row-per-sale unit structure. This change enhances efficiency and prevents overselling during payment processing.