MarkLogic version : 9.0-6.2
We have a customer collection and a Real Time PUT/POST API that updates each customer document.
Based on the requirement, when a customer phone number is updated, we sometimes have to update the documents of other related customers. For a better response time of the PUT/POST API, we want to update the document to which the change was made and return a success response to the caller, and then, update all other impacted customer documents. Our first thought is to use triggers but coming from relational/RDBMS background, we are looking for any better alternatives to achieve the same. Are there any alternatives to using triggers?
Thanks in advance!