My AEM application depends on data from a 3rd party API which will be used to render HTML on the page. I understand data from 3rd party API is recommended to be stored in AEM, so it can improve performance overall effort
Old aem is recommended to store data under /etc, how about about AEM 6.5?
How is the 3rd party data, saved as nodes, invalidated?
How is the data within the saved nodes refreshed?
What is the best practice to invoke the 3rd party data saving mechanism?
example JSON response from the 3rd party API (2,000 cars):
@karthik4 Can the content be cached? How frequently the other side content changes? Is it secure or public content?
Based on the above responses,
If the data is huge, instead of json or data attributes to you may need to put some flags to check and call rest api only once and for subsequent calls refer to jcr nodes. Or other option is to go with scheduler if api content changes are scheduled.