AWS application integration service guide
Parts 1 and 2 cover compute/networking and storage/databases: runtime and state. This part examines five common integration services—API Gateway, SQS, SNS, EventBridge and Step Functions—for reliable communication among small services, often asynchronously and across teams. This is a selection, not a measured popularity ranking. Related reading: Part 1, Part 2
Sources: API Gateway product comparison
The Integration Landscape
Before diving into each service it helps to see how they relate. Roughly speaking: API Gateway is how clients talk to your system; SQS moves work between producers and consumers with at-least-once delivery; SNS fans a single message out to many subscribers via pub/sub; EventBridge routes structured events from many sources to many targets with content-based filtering; and Step Functions orchestrates multi-step workflows where you need to coordinate, branch, retry, and wait.
1. Amazon API Gateway — The Front Door
API Gateway accepts HTTP or WebSocket traffic and connects it to supported backends, including Lambda and HTTP services. TLS, authorization and throttling are managed capabilities; validation, transformations, caching and usage plans depend on API type and configuration. Private integrations can connect to supported load-balancer targets rather than exposing every backend publicly.
Sources: API Gateway product comparison
REST APIs provide features such as mapping templates, API keys and usage plans, caching and request validation. HTTP APIs offer a smaller feature set at lower base request prices and native JWT authorizers; both support IAM and Lambda authorizers. WebSocket APIs manage persistent bidirectional connections for chat or live dashboards. Compare current regional pricing and traffic instead of assuming a universal 70% saving.
Sources: API Gateway product comparison
Start by comparing required features. HTTP APIs may be sufficient; REST APIs are appropriate for usage plans, caching or request validation. IAM on routes is not a reason by itself to require REST. API Gateway WebSocket APIs are one managed option, not mandatory: a suitable WebSocket service or a self-managed ECS/EC2 tier may also fit.
Sources: API Gateway product comparison
2. Amazon SQS — Simple Queue Service
SQS persists producer messages for consumers that poll and process them; retention is configurable up to 14 days. Standard queues provide at-least-once delivery and best-effort order. FIFO preserves order within a message group and deduplicates sends within its deduplication interval, but consumers must still make side effects idempotent. FIFO throughput varies by Region, batching and mode; 3,000 messages/second is not the high-throughput ceiling.
Sources: SQS message quotas
Visibility timeout temporarily hides a received message; successful consumers must delete it. A configured redrive policy moves repeatedly received failures to a DLQ after maxReceiveCount. Long polling can wait up to 20 seconds and reduce empty requests. Message attributes carry metadata, but SQS ReceiveMessage does not itself select messages by an arbitrary attribute filter; filtering may occur in SNS or a Lambda event-source mapping.
Sources: SQS message quotas; Lambda SQS mapping
A configured Lambda event-source mapping polls SQS and invokes the function in batches. Standard queues allow up to 10,000 records subject to payload limits; FIFO allows up to 10. Partial batch responses are a separate feature that must be enabled and returned correctly; they do not increase batch size. Failed records become visible after the timeout and can be retried. A DLQ requires a queue redrive policy; it is not automatic.
Sources: Lambda SQS mapping
3. Amazon SNS — Simple Notification Service
SNS publishes messages to topic subscriptions, subject to filtering and delivery policies. Standard topics support destinations including SQS, Lambda, HTTP/S, email, SMS, mobile push and Amazon Data Firehose; FIFO topics have different supported subscriptions and ordering constraints. A publish acknowledgment is not proof that every consumer completed processing.
Sources: SNS retries
SNS supports fanout—for example cache updates, audit logs, email and billing—and supported cross-account or cross-Region delivery. SNS→SQS gives each subscriber a durable queue and an independent processing pace. It is a useful pattern, not a measured most-common production topology; isolation still needs quotas, permissions and failure handling.
Sources: SNS retries
SNS subscription filters can match message attributes or a JSON message body. Ordered fanout can use SNS FIFO with SQS FIFO and appropriate group/deduplication IDs. Throughput and delivery guarantees depend on the topic, subscription and filtering configuration, not simply on a universal lower-throughput rule.
Sources: SNS filtering
4. Amazon EventBridge — The Serverless Event Bus
EventBridge routes structured events using fields such as source, detail-type, account, region, time and detail. It is useful for domain-event routing, but it does not replace SNS universally: SNS also supports content-based filtering. Choose on source integrations, destinations, replay, throughput and operational requirements.
Sources: SNS filtering; EventBridge SaaS sources
EventBridge can receive AWS service events, configured partner events and custom application events. Some AWS sources require explicit setup, such as S3 delivery or relevant CloudTrail logging. Partner integrations such as Datadog and Auth0 need partner-side association and an event bus; not every SaaS name in a broad ecosystem list is a native source. Custom buses can separate domains or tenants.
Sources: EventBridge SaaS sources
Schema discovery and bindings can help describe events. Explicitly configured archives retain events matching their filters and replay them to the original bus; they do not automatically store every event. Pipes connects supported stream/queue sources—including DynamoDB Streams, Kinesis, SQS, MQ and MSK—to targets with optional filtering and enrichment. Scheduler handles one-time and recurring schedules with time zones; its default 10 million schedule quota is per Region and adjustable.
Sources: EventBridge archive; Scheduler quotas
Choose EventBridge for supported service/partner event sources, structured routing or archive/replay. Choose SNS for its pub/sub destinations, including SMS and mobile push, and fanout. Both can filter content. Estimate regional charges, message sizes, delivery volume and retries rather than assuming one is always cheaper or faster.
Sources: SNS filtering; EventBridge archive
5. AWS Step Functions — Workflow Orchestration
AWS Step Functions is the orchestrator for multi-step workflows. You define a state machine in Amazon States Language (a JSON DSL), and the service drives execution through your states — invoking Lambdas, calling AWS APIs, branching on conditions, waiting on timers or callbacks, executing tasks in parallel, retrying with backoff, and catching errors. It is durable: the service holds state across invocations that may span minutes, days, or up to a year.
Standard workflows run for up to one year and are billed by state transitions. Their exactly-once workflow model excludes explicitly configured retries and does not make external business effects automatically idempotent. Express runs up to 5 minutes and is billed by requests, duration and memory: asynchronous Express is at-least-once, while synchronous Express is at-most-once. Pick by duration, audit history and integration support; lower cost depends on workload, not a promised order-of-magnitude saving.
Sources: Step Functions execution types
Step Functions provides optimized service integrations and AWS SDK integrations, often avoiding a Lambda wrapper for actions such as DynamoDB reads, SQS sends or ECS tasks. Support is action- and workflow-type-specific. The callback pattern waits for SendTaskSuccess or SendTaskFailure with a task token and is supported for appropriate Standard integrations, not Express; protect task tokens as sensitive capabilities.
Sources: Step Functions execution types
How to Choose Between Them
The decision boils down to shape of communication. If a client needs a synchronous request/response, use API Gateway. If one producer wants to hand work to one or many independent consumers, use SQS (and add SNS in front for fanout). If you are routing events with structure across teams or third parties, use EventBridge. If you are coordinating a multi-step process with branching, parallelism, retries, or human-in-the-loop, use Step Functions.
One illustrative order flow uses all five services: API Gateway accepts a request, Lambda enqueues SQS work, an OrderPlaced event reaches EventBridge, a rule starts a Step Functions fulfillment workflow, and SNS sends a notification. Each service can scale separately, but authorization, idempotency, retries and monitoring must be designed across the chain. This is a design example, not a deployed system.
Sources: Step Functions execution types
Common Patterns and Anti-Patterns
Useful patterns include filtered fanout; sagas with explicit compensating actions; and SQS with a configured DLQ and redrive policy. These reduce coupling but do not guarantee no loss indefinitely: retention and retries are finite. A webhook path can acknowledge after durable enqueue, then process asynchronously; return the provider’s required response promptly and make duplicate deliveries safe.
Sources: SQS message quotas; SNS retries
Avoid relying on Standard SQS for strict per-entity order; use FIFO and meaningful groups when required. SNS is not a pull queue, but does have delivery retries and optional subscription DLQs. Evaluate Step Functions before building a custom orchestrator, and compare HTTP versus REST features and regional costs without assuming a fixed code or price ratio.
Sources: API Gateway product comparison; SNS retries
What is Next
Compute, storage and integration form a working architecture; security and observability keep it manageable. Part 4 continues with IAM, CloudWatch, CloudFormation/CDK and Secrets Manager for access, telemetry, infrastructure as code and credentials. These are selected services, not an evidence-based most-used ranking.
Sources: API Gateway product comparison
- Part 1: Compute & Networking →
- Part 2: Storage & Databases →
- ▸ Part 3: Application Integration (you are reading this)
- Part 4: Security, Observability & DevOps →