Message Brokers
If an application already listens to a cloud queue or topic, Files.com can send it a message when a file arrives, when a run fails, or when a step in a workflow finishes. The application can act on that message without repeatedly checking Files.com for new work.
A queue lets one or more workers share the work of processing messages. For example, an importer can receive a message from Amazon SQS when a report is ready. A topic distributes messages to several subscribers, so an inventory loader and an operations dashboard can receive their own copies. Azure Service Bus supports both queues and topics.
Choose What Sends the Message
Use folder Notifications for file and folder operations in a selected folder. Use Event Channels for operational events, such as a failed Sync or Automation run, or when you need event filters and reusable destinations. To route file activity through Event Channels, a Site Administrator enables file activity events.
Use an Automation v2 publishing action when a specific branch needs to send custom JSON. If a file had to pass validation before an application could load it, the publishing action would go on the branch for accepted files.
| Broker | Folder Notifications | Event Channels | Automations v2 |
|---|---|---|---|
| Amazon SNS | Folder setup | Target setup | Action setup |
| Amazon SQS | — | Target setup | Action setup |
| Azure Service Bus | — | Target setup | Action setup |
| Google Cloud Pub/Sub | Folder setup | Target setup | Action setup |
Files.com publishes to the broker, and the receiving application handles the work. Check the broker or its subscriber for message receipt and use the application's records to confirm the job completed. Retries and acknowledgment failures can result in a message being received more than once. Use an event or business identifier to recognize work the application already completed.