I have a Jira Cloud Add On that listens for webhook events 'issuelink_created', 'issuelink_deleted' and 'connect_addon_enabled'.
When 'issuelink_created' or 'issuelink_deleted' events are received I update the entity properties for each issue to store key/values representing the current state of the links.
When 'connect_addon_enabled' is received I update the entity properties for all issues in Jira to store key/values representing the current state of the links.
All of the above works great.
My question. If app.js which hosts the add on microservice goes down and has to be restarted, how do I update all entity properties for all issues in Jira? Is there a best practice design approach like an event to listen for? A hook I should create within app.js back to my index.js routes? Also curious how to handle this for each tenant stored in my store.db with sqlite.
Appreciate any insight.