Quantcast
Channel: Opinion: Shopify Community - Shopify APIs & SDKs
Viewing all articles
Browse latest Browse all 25503

Siam commented on Webhook URL is called between 2-4 times

$
0
0

@HunkyBill That is indeed correct. You raise a good point. In fact, I almost gave up on memcache due to this (I only ever used set and get). But luckily while randomly looking at other functions, I found memcache's add function which is atomic. You basically exploit that feature to avoid race condition. So if two separate threads try to add at the same time, they'll be queued and the one unlucky enough to be second will get a "no sorry, bud".


Viewing all articles
Browse latest Browse all 25503

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>