function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Kumar_ShahKumar_Shah 

Platform Events design question

Hello,

I am planning to implement Platform events for most of the after save operations on my account trigger. If I define a new platform event object for each operation, there could be too many platform events objects. Will it be the right approach to define platform events for each after save operation or is there a generic platform event object design?

P.S. I am going to use platform events to enforce async operation on the trigger.

Thanks in advance. 
MagulanDuraipandianMagulanDuraipandian
Kumar,
My recommendation will be to check th Platform Event limits before using it.
Other alternatives are
1. Future Method
2. Queueable Interface
3. Aysnchronous Flow Execution
4. Change Data Capture
--
Magulan Duraipandian
Follow in Medium for more updates: https://infallibletechie.medium.com/
Emma Parkers 3Emma Parkers 3

It takes a lot of creativity to create a design for a project. I develop websites and my tasks are also to design it. I am helped by https://masterbundles.com , and a large selection of script templates and so on. It has all the necessary tools to create a unique design, and most importantly it is modern. I recommend it!