Skip to main content
Question

Cache issue with beta api

  • February 27, 2025
  • 1 reply
  • 18 views

After updating the event(insight) it is getting updated in the cdf portal.
Passing filter to “cdf_beta_api = "https://api.cognitedata.com/api/v1/projects/{CDF-PROJECT-NAME{/events/list"” 

when we try to list event based on filter all of the sudden, we are getting the older data in response.

When it is called again we get the updated data in response
 

python code snippet


 

In line 34 we are getting updated role but in line 49 we are getting older role,when it is called again we  get updated response

1 reply

Forum|alt.badge.img

Hi,

The data read for the advancedFilters option in the Events API are eventually consistent. In other words, what you’re seeing is actually “expected behavior” for certain scenarios. I.e. during large number of updates to the data, the delay is probably going to be more pronounced than during smaller update volumes. 

Although we work to keep the update frequency and volume capability high, I would not expect us to change the behavior nor make significant improvements to this API. The Events API will eventually be replaced by a new service expected to enter Beta during the coming spring (in the northern heimsphere); Records.


Reply


Cookie Policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings