Prompt
How do I trigger one app when something changes in another
Latest observation
There are a few common ways to make App B run when something changes in App A, and the best one depends on whether you control both apps and whether they can “talk” to each other.
Common approaches
1) Webhooks
If App A can send a notification when data changes, it can call a URL in App B.
- App A: on change, sends an HTTP POST
- App B: exposes an endpoint to receive it and trigger whatever it needs
Best for: real-time integrations
Example: “When a customer is updated in CRM A, notify service B.”
2) Polling
App B periodically checks App A for changes.
- App B runs every minute / 5 minutes / etc.
- It asks App A: “Anything new since last time?”
- If yes, it reacts
Best for: when App A doesn’t support webhooks
Tradeoff: less efficient, not instant
3) Message queue / event bus
App A publishes an event when something changes, and App B subscribes to it.
Examples:
- RabbitMQ
- Kafka
- AWS SNS/SQS
- Azure Service Bus
- Google Pub/Sub
Best for: scalable, decoupled systems
Example: “OrderCreated” event triggers downstream apps.
4) Database trigger or CDC
If both apps use the same database, or you can watch the database:
- Use a DB trigger to emit an event
- Or use change data capture (CDC) to stream changes
Best for: data-driven systems
Tradeoff: can be harder to maintain cleanly
5) Automation tools / no-code integration
Use tools like:
- Zapier
- Make
- n8n
- Power Automate
Best for: quick setup without much coding
Simple rule of thumb
- Need instant reaction? Use webhooks or an event bus
- Can’t modify App A? Use polling
- Need reliable decoupling at scale? Use a message queue/event bus
- Want quick and easy? Use Zapier/Make/n8n
If you want a code example
I can show you how to do this in:
- JavaScript/Node
- Python
- C#/.NET
- Java
- PHP
If you tell me what the two apps are, I can suggest the best method.