Struggling with Real-Time Event Listeners in Custom Mautic Plugins

Hello

I am developing a custom plugin intended to capture and respond to real-time external events within Mautic campaigns. The goal is to trigger specific campaign actions based on API calls from third-party systems. :upside_down_face:

However; I am facing challenges with the event listener integration; where the plugin seems to miss / delay processing these external events, leading to inconsistent campaign behavior. :innocent:

The issue appears to stem from the timing and queuing of events in Mautic’s event dispatch system.

Despite confirming that the events are fired correctly; my custom event listener doesn’t always catch them in real time, which disrupts the intended automation flows. I’m curious if recent updates have altered the event processing mechanics or if there’s an alternative approach that could provide more reliable asynchronous handling. :thinking: Checked Mautic Developer Documentation guide related to this and found it quite informative.

I’d appreciate insights / suggestions from others who have tackled similar challenges in custom plugin development for Mautic. :thinking:

Sharing any workarounds or best practices to ensure real-time responsiveness in event-driven plugins would be extremely helpful.

Thank you!! :slightly_smiling_face:

1 Like

Hey there, seemed like there was a wonky link which I’ve removed.

Please check https://devdocs.mautic.org as that’s the most up to date documentation.