Process Automation | Tools
Event-Driven Automation: How to Connect Systems Without Constant Polling
· 7 min
A company running five systems often has ten or fifteen integrations asking the same question all day: "anything new?". The answer is almost always no. And when it is yes, someone has usually been waiting for a few minutes.
Event-driven automation flips that logic. Instead of every system checking the others on a timer, the system where something happens announces it once, and whoever needs to react does.
It sounds like a technical detail. In practice, it changes how your integrations grow, fail and get maintained.
From "anything new?" to "this just happened"
An event is a business fact that has already happened. "Order paid." "Contract signed." "Invoice overdue." It is always in the past tense, and it gives nobody an instruction.
That last point matters most. An event does not say "issue the invoice" or "notify the account manager". It only says what happened. Each interested system decides what to do about it.
The alternative is polling: querying another system at fixed intervals. It is the default in many tools. Zapier's help centre states that most of its triggers work this way, checking every 15 minutes on the free plan, every 2 on Professional and every minute on Team and Enterprise.
The most common technical mechanism for receiving events is the webhook. We have already covered how webhooks work and what you need to build around them. This article deals with the layer above: how to organise your integrations around events, rather than just swapping a check for a notification.
The real problem is not delay, it is the tangle
Polling delay is visible. The bigger cost is not.
When each integration is built in isolation, every pair of systems gets its own connection. The online shop talks to invoicing. The shop talks to the warehouse. The shop talks to the CRM. The CRM talks to invoicing. Each link has its own credentials, its own interval and its own error handling.
With four systems, that is manageable. With eight, nobody is quite sure what depends on what. And adding a new consumer means touching one or more integrations that were working fine.
Microsoft's Azure Architecture Center guide to event-driven architecture sums up the benefit in two lines: there are no point-to-point integrations, and new consumers can be added without modifying producers or other consumers.
For an SME, that means something simple: the next system you bring in connects to one place, not to all of them.
A worked example
A distributor receives around 60 orders a day through its online shop. Each paid order has to reach four places: invoicing, the warehouse, the CRM and an alert to the account manager.
The figures below are our own estimate, based on simple arithmetic. You can rerun it with your own volumes.
Four separate integrations, each polling every 5 minutes:
- Each integration queries the shop 288 times a day (24 hours × 12 per hour).
- That is 1,152 queries a day in total.
- At most 240 of them find a new order (60 orders × 4 destinations). At least 912 — roughly 79% — come back empty.
- If the warehouse only hears about an order after invoicing has processed it, and each step has its own interval, the worst-case delay adds up: 10 minutes instead of 5.
With event-driven automation:
- The shop emits 60 "order paid" events a day. One per order, none empty.
- A central workflow receives each event and fans it out to the four consumers.
- When the company decides to add a loyalty programme, it subscribes to the same event. The shop is not touched.
Empty polls cost next to nothing on a self-hosted tool. What they do cost is API quota on the source system, noise in the logs and, above all, four separate places where something can fail without anyone noticing.
The three building blocks, in plain terms
Event-driven architecture has three parts. Microsoft calls them producers, channels and consumers.
Producer. The system where the fact happens: the online shop, the CRM, the e-signature tool, Microsoft 365.
Channel. The route the event travels through. Large companies use a dedicated message broker. In an SME it is often a single entry workflow in a platform such as n8n, which receives every event, logs it and routes it to the right sub-workflows.
Consumer. Each workflow that reacts: issuing the invoice, reserving stock, updating the customer record.
One design decision worth making early is what goes inside the event. There are two approaches, and Microsoft's documentation describes the trade-off well:
- The event carries all the data. Consumers do not need to look anything up, but each ends up with a copy that can go stale.
- The event carries only the key (the order number, say). Each consumer fetches the current data from the source. Slower, but there is a single source of truth.
For invoicing, we almost always recommend the second. An invoice issued to an address that had already been corrected costs more to cancel than a second API call. If the underlying question is which customer record is the right one, our article on integrating CRM, email and invoicing without creating duplicates goes deeper.
Design the events before the workflows
This is where most projects save or lose weeks.
Before opening any tool, list the business events that matter. Not the technical events each system emits, but the facts your team would recognise in a meeting.
Three rules help:
- Business names, in the past tense. "Order paid", not "order.updated with status=3". If only a developer understands the name, it is the wrong event.
- The right granularity. Too many events swamp the system. Too few force every consumer to open the payload just to decide whether it cares. Microsoft's example is a compliance check that only needs to publish two events: compliant and non-compliant.
- A correlation ID in every event. When an order passes through four workflows, this field is what lets you reconstruct what happened to it. Adding it later is far harder than designing it in.
A useful test: if your list starts filling up with names that only make sense to someone who knows the database, you are describing field changes, not business facts.
When the system tells nobody
Many ERPs and invoicing tools do not emit events at all. That does not rule out event-driven automation. It just moves the place where the event is born.
There are three options, in order of preference:
- Read the change in the database. If the system stores its data in an accessible PostgreSQL database, n8n's Postgres Trigger node automatically creates a trigger on the table and notifies the workflow on every insert, update or delete. It needs a database user allowed to create triggers and procedures, which not every vendor permits.
- Poll in one place and turn it into an event. A single workflow queries the system, detects what changed and publishes "invoice issued" to the central channel. Polling still happens, but once, not in every integration.
- If there is no API at all, it is a different conversation. We covered the options in our piece on API automation, RPA or AI.
The second option is the most underrated. It contains the problem in one spot, and the day the vendor starts sending webhooks you swap one component without touching any consumer.
Notifications expire too
A detail that rarely makes it into sales decks: many event subscriptions have a shelf life.
The Microsoft Graph subscription documentation is explicit. A subscription to Outlook messages lasts at most 10,080 minutes, just under seven days. If the notification includes the message content, the limit drops to 1,440 minutes, under a day. If the app does not renew it in time, notifications simply stop arriving.
The same page shows something else worth knowing. "Event-driven" does not always mean "instant". For mail messages, the stated maximum latency is 3 minutes. For OneDrive files and SharePoint lists, it can reach 6 hours.
Both lessons are practical. First, renewing subscriptions is a job the system must do, not a configuration detail, and it needs monitoring. Second, if a process depends on reacting within seconds, check the producer's real latency before promising anyone real time.
How error handling changes
In a synchronous flow, when something breaks, you know where straight away. In event-driven automation, invoicing may have succeeded while the warehouse failed. For a few minutes, the systems disagree about the order's status. This is called eventual consistency, and it is a deliberate trade-off, not a bug.
That calls for three things you should plan from day one:
- A dead-letter queue, where unprocessed events land for someone to review instead of disappearing.
- Idempotent consumers, which can receive the same event twice without creating two invoices.
- Periodic reconciliation, comparing source and destination to catch anything that slipped through.
The last two are covered in the webhooks article. The first is the one usually missing.
When it is not worth it
Event-driven automation is not always the right answer. Microsoft lists the cases where it does not fit, and we agree:
- Simple request-response processes. Validating a VAT number before saving a customer needs an immediate answer, not an event.
- Operations that need strong consistency. If no part of the system can see a different state from the others, even for a minute, eventual consistency works against you.
- Teams with no experience running asynchronous systems. Debugging an event lost between three workflows is very different from reading an error on a single line.
And there is a more mundane case: daily processes. A bank reconciliation run every morning gains nothing from being event-driven. A job scheduled for 7am is simpler and easier to monitor.
The decision for this week
Pick the business fact that the most systems need to know about today. In most companies, it is "order paid" or "new customer".
Count how many integrations check, each on its own, whether it has happened. If it is three or more, event-driven automation already pays for itself in maintenance, before real time even comes up. If it is one, leave it as it is and revisit when the second appears.