Skip to content
Reference

Amazon SQS and SNS adapter

Start workflows from an SQS queue and send workflow output to SQS queues or SNS topics.

PlannedThis page describes what's coming, not working steps.

On this page

The SQS and SNS adapter will connect MedHook to AWS messaging: Amazon SQS queues as a source and a destination, and Amazon SNS topics as a destination for fan-out. It gives an engine on AWS a way to take in and hand off messages without a direct HTTP call between systems, and to keep messages safe while a downstream system is down.

This adapter is not in the engine yet. On this release the engine's message brokers are Google Cloud Pub/Sub and JMS brokers (JMS adapter).

What works today

  • To hand messages to MedHook, post them to a webhook trigger.
  • To drop files for another AWS service to pick up, use the Amazon S3 adapter. S3 is object storage, not a queue: there is no per-message acknowledgement.

What's coming

  • SQS source. A trigger that long-polls a queue and starts one execution per message. A message is deleted from the queue only after its execution has stored it, so a crash leaves it to be received again.
  • SQS send. A destination step that sends the message to a standard or FIFO queue, with a message group ID from the message for feeds that must stay in order.
  • SNS publish. A destination step that publishes to a topic, with message attributes taken from the message.
  • AWS sign-in. Requests signed with AWS Signature Version 4, reusing the signer the S3 adapter already uses.
  • Duplicates. Redelivered SQS messages go through the engine's existing inbound duplicate suppression.

Reference