Lock & Semaphore: The gatekeepers of your resources
Released with Symfony 3.4, the Lock component allows you to limit concurrent access to shared resources. 3 years later, its little brother, the Semaphore component completes the range of tools at our disposal.
Well beyond the classic flock() or sem_acquire(), these components enable us to cover more complex use-cases such as maintaining a lock on several pages or integrating into a distributed and high availability infrastructure.
In this talk, through business examples, I'll show you how those components work. And we will see the possibilities they offer us as well as their limits.
Delivered in English
Check out the rest of talks of SymfonyWorld Online 2020 conference.