Can anybody guide me through any framework which I can refer in order to achieve this use case?I am not able to get my head around it on how to do it efficiently.
I want to process records in near real time when the limit for no of dml rows have exceeded, now since the trigger is not a right place to do it, initiating async processing from a trigger could be highly problematic as rightly mentioned here link,
I am thinking to do it at on the application level may be using platform events instead of batch when the limit has exceeded, but again we'll have to consider following pointers:
1.With platform events we'll have to ensure that are not fired again and again with subsequent updates from workflow or process builder on the record. 2.Take care of limits for Platform events.
Any help is appreciated. Thanks in advance!