Describes how to prevent race conditions and DCS error handling.
A race condition can occur if you send multiple calls simultaneously (or in rapid succession) to the DCS before it finishes responding to the initial queries and writing data to the user’s cookie. A race condition is undesirable because it can corrupt or improperly overwrite cookie data. As a best practice, consider the following methods to help avoid this problem:
Adobe may introduce rate limiting if it detects excessive DCS API calls that could have a negative impact on service availability.
If rate limiting is enabled, you might receive a 429 Too Many Requests
HTTP response status code on your DCS calls. When receiving this HTTP response, please retry the API calls at a later time.
Error handling is limited for invalid or poorly formed queries. An invalid request returns an HTTP 200 OK
response and no data. Also, the DCS stops processing a request, discards trait data, and returns an HTTP 200 OK
response when a user:
See also, DCS Error Codes, Messages, and Examples.