Hello!
On Wed, Jul 3, 2013 at 10:03 AM, Calin Don wrote:
> I want to ask if there is some kind of locking between multiple nginx
> workers accessing a shared dictionary and if the accesses can be serialized.
>
Yes. There's a spin lock involved.
> I need to achieve something like N requests come at about same time, first
> which reaches the server sets and expiring lock using dict.safe_add and all
> other requests return 202 Accepted.
>
This should work :)
Best regards,
-agentzh