Suggest best practice to save 3rd party webhook requests timestamp details with in AEM 6.5 to avoid older request from processing.
Hi All,
I have an use case where a 3rd party system make a post call to AEM author and post a payload (this is webhook scenario).
Based on the timestamp of the request, I should ignore older requests.
For this I’m thinking to store under /content to verify timestamp like below,
/content/abc/en
/webhooks
/webhook-id
-timestamp - Date - <time stamp value>
So that, whenever requests comes in, i can fetch respective node and compare timestamps.
If that is latest one process the request & update the timestamp.
If that is older than existed timestamp will ignore.
Please suggest me the best practice in this case.
Thanks,
Raju.