In this article, we will discover how Alibaba optimizes flash sales for its annual Double Eleven online shopping festival using advisory locks on PostgreSQL.