Compare the methods to trigger workflow within SuprSend.
Event-streaming is a loosely coupled SuprSend Integration where you can publish events to your event bus in a pub-sub model and build associated workflows within SuprSend. Whenever a notification needs to be sent, your system simply pushes an event containing the necessary data, while SuprSend handles all processing—such as determining which user to notify, fetching user profile and their preferences and computing target channels. This approach is ideal for notifications triggered in response to user-initiated actions.
Pros:
Cons:
Event-Based triggers are best suited for event streaming architectures, microservices orchestration, and service buses.
With API-based triggers, you explicitly call a workflow using its workflow-slug, specifying the workflow and recipients directly in the API request. This approach provides tighter integration with SuprSend and is ideal for system-generated workflows, such as sending a daily digest to all users in a company or sending anonymous notifications to unidentified users. It’s also useful for cases where you don’t want to setup a separate user sync and just want to pass user information within the trigger.
Pros:
Cons:
Workflow API is best for system-generated notifications where you need better control of triggers in your backend, or for sending to anonymous users or non-user entities like object.