Debouncing events
Debounce high-frequency Shopify webhook events in Mechanic using event filters and the cache to avoid duplicate processing.
Configuration
{% action "cache" %}
{
"setex": {
"key": "foobar_received",
"value": true,
"ttl": 10
}
}
{% endaction %}{% if event.topic == "user/foo/bar" and cache.foobar_received %}
false
{% else %}
true
{% endif %}
Fingerprinting
Last updated
Was this helpful?