Are cache purge requests rate limited?
Yes. For the cache purge API, we have a rate limit of 2 cache purge requests per second, per customer. We have found that provides a reasonable limit and works well in practice.
If you issue more than two cache purge requests per second, you will get 503 errors from the API.
To avoid this, introduce a delay between purges to ensure that you don't hit up against this limit.
Alternatively, you can check the transaction ID returned from the purge request to poll the API for the status of the purge operation.