LearningTree Β· AWS Β· Integration

Integration Services β€”
Connecting Distributed Systems in the Cloud

SNS, SQS, EventBridge, Step Functions β€” four models for passing messages and coordinating workflows in AWS. This page maps the full integration landscape before you dive into each service.

01
Chapter One

What is Integration?

Integration services let your systems talk to each other without tight coupling β€” so a payment service, order service, and notification service can each evolve independently while still collaborating reliably.

Modern cloud architectures are not monoliths β€” they are collections of services, microservices, and functions that must coordinate. Integration is how you wire them together: passing events, queuing work, routing messages, and orchestrating multi-step workflows.

Why Integration Matters
πŸ”—

The Problem Integration Solves

  • Producer services run at different speeds than consumers
  • A failure in one service shouldn't cascade to others
  • Multiple consumers may need the same event
  • Complex workflows span many services and need coordination
⚑

What Integration Services Provide

  • Decoupling β€” producer and consumer are independent
  • Buffering β€” absorb traffic spikes without dropping messages
  • Fan-out β€” one event reaches many subscribers
  • Orchestration β€” coordinate multi-step workflows with retries and state
Three Core Integration Models
πŸ“¬

Messaging (Queue)

  • Producer sends message to a queue
  • Consumer polls and processes independently
  • At-least-once delivery, one consumer per message
  • Service: SQS
πŸ“’

Pub/Sub (Notification)

  • Publisher sends to a topic
  • All subscribers receive the message simultaneously
  • Fan-out to N destinations at once
  • Service: SNS
⚑

Event Bus (Routing)

  • Services emit events to a central bus
  • Rules route events to the right targets
  • Schema-based filtering and 3rd-party integrations
  • Service: EventBridge
02
Chapter Two

Services & Spectrum

Core Integration Services
Integration Models at a Glance
ModelServicesDeliveryConsumersBest For
QueueSQSPullOne consumer per messageWork distribution, load levelling
Pub/SubSNSPushAll subscribersFan-out notifications, parallel processing
Event BusEventBridgePush (rule-based)Filtered targetsMicroservice events, SaaS integrations
OrchestrationStep FunctionsManaged stateEach workflow stepMulti-step workflows, error handling
StreamingKinesisPull (shard)Multiple independentlyReal-time data pipelines
BrokerAmazon MQAMQP / MQTTStandard broker semanticsLift-and-shift JMS / AMQP workloads
The Integration Spectrum β€” Simple to Orchestrated

Every integration service trades simplicity for coordination power. SQS is simple point-to-point; Step Functions orchestrates complex multi-step workflows with error handling and state.

← Simpler / lower latency More control / richer routing β†’
SQS
Queue a message
SNS
Notify N subscribers
EventBridge
Route by content
Step Functions
Orchestrate a workflow
How the Services Connect
AWS Integration β€” Message flow patterns per service
SQS Producer SQS Queue Consumer One message β†’ one consumer SNS Publisher SNS Topic SQS Lambda Email/SMS One message β†’ N subscribers EB Service Event Event Bus Target A Target B Rules filter & route by content SF Trigger State Machine Step 1 β†’ Step 2 β†’ … β†’ Step N Your code / service AWS managed resource
03
Chapter Three

Decision Guide

When to Use What
Use SQS when…
  • Work queue between producer and consumer
  • Buffer traffic spikes (absorb burst)
  • Each message processed by exactly one consumer
  • Need DLQ for failed messages
  • Decouple Lambda or EC2 workers
Use SNS when…
  • Fan-out to multiple subscribers at once
  • Send notifications (email, SMS, push)
  • Same event needs to trigger parallel pipelines
  • Combine with SQS for durable fan-out
  • Simple pub/sub without complex filtering
Use EventBridge when…
  • Content-based routing (filter by field value)
  • React to AWS service events (CloudTrail, S3, etc.)
  • Integrate SaaS apps (Zendesk, Datadog, etc.)
  • Schema registry and event discovery needed
  • Decouple microservices via events
Use Step Functions when…
  • Multi-step workflow with branching logic
  • Need retry, catch, and error handling
  • Long-running processes (up to 1 year)
  • Human approval tasks in a flow
  • Coordinate Lambda, ECS, Glue, SNS
Full Service Comparison
ServicePatternDeliveryRetentionMax ScaleBilling
SQS StandardQueuePull14 daysUnlimited TPSPer request
SQS FIFOOrdered queuePull14 days3,000 msg/sPer request
SNSPub/SubPushNone (fire-and-forget)10M topics / 12.5M subsPer publish + delivery
EventBridgeEvent BusPush (rules)24-hour retryUnlimited events/secPer event
Step FunctionsOrchestrationManaged stateUp to 1 yearPer workflowPer state transition
Amazon MQBrokerAMQP / MQTTBroker managedBroker instance limitsPer broker hour
04
Chapter Four

Architecture Patterns

Common Production Patterns

Most production architectures combine integration services in complementary ways. Here are the three canonical patterns:

πŸ“’

Pattern 1: SNS β†’ SQS Fan-out

SNS Topic β†’ [SQS A, SQS B, Lambda]
  • One event fans out to many queues
  • Each consumer is independent and durable
  • Best for: order placed β†’ billing + shipping + analytics
⚑

Pattern 2: EventBridge + Lambda

Service Event β†’ EventBridge β†’ Lambda
  • React to AWS service or custom events
  • Zero infrastructure, filter by content
  • Best for: S3 upload β†’ process image, IAM change β†’ alert
πŸ”€

Pattern 3: Step Functions Workflow

Trigger β†’ State Machine β†’ [Ξ», ECS, SNS]
  • Coordinate multi-step logic with retries
  • Visual workflow, audit trail built-in
  • Best for: fraud check β†’ approve/reject β†’ notify
How Integration Fits in the Architecture
🌐
Producer
Lambda Β· EC2 Β· ECS
β†’
πŸ”—
Integration
SNS Β· SQS Β· EventBridge
β†’
⚑
Consumer
Lambda Β· EC2 Β· ECS
β†’
πŸ’Ύ
Storage / DB
S3 Β· RDS Β· DynamoDB
05
Chapter Five

Exam Insights

Exam Decision Hints
If the question says…Think…
"Fan-out" or "multiple consumers same event"SNS (or SNS β†’ SQS)
"Decouple" + "work queue" + "one consumer"SQS
"Preserve message order" or "exactly-once"SQS FIFO
"Content-based routing" or "filter by attribute"EventBridge
"React to AWS service event" (S3, CloudTrail…)EventBridge
"Multi-step workflow" or "orchestrate Lambda"Step Functions
"Migrate from RabbitMQ / JMS" or "AMQP"Amazon MQ
"GraphQL API" or "real-time data sync"AppSync
"Long-running process" + "human approval"Step Functions (waitForTaskToken)
"Dead-letter queue" for failed messagesSQS DLQ (also SNS DLQ for failed deliveries)
Common Exam Traps
TrapReality
"SNS guarantees ordering"NO. SNS is unordered. Use SQS FIFO for ordered delivery.
"SQS delivers to all subscribers"SQS delivers each message to ONE consumer. SNS delivers to ALL.
"EventBridge replaces SNS"Different tools. EventBridge = content-based routing. SNS = fan-out to N subscribers. Often used together.
"Step Functions can only call Lambda"Step Functions integrates with 200+ AWS services directly β€” ECS, DynamoDB, SNS, SQS, Glue, and more.
"SQS FIFO scales the same as Standard"FIFO is limited to 3,000 msg/s with batching. Standard is virtually unlimited.
Summary
πŸ“‹ Integration Services β€” Recap
  • Integration = connecting services without tight coupling. Never have Service A call Service B synchronously when an async message will do.
  • Core services: SQS (queue), SNS (pub/sub), EventBridge (event bus), Step Functions (orchestration). Plus: Kinesis, Amazon MQ, AppSync.
  • SNS + SQS fan-out is the most common exam pattern β€” SNS fans to multiple SQS queues for durable parallel processing.
  • EventBridge is the modern evolution β€” use it for content-based routing, SaaS integration, and reacting to AWS service events.
  • Step Functions when the workflow has state, branching, retries, or human in the loop.
πŸ‘‰ Key Takeaway

Pick the simplest integration primitive that solves your coupling problem. SQS for work queues, SNS for fan-out, EventBridge for event routing, Step Functions for coordinated workflows β€” and combine them freely.