Application Integration Services

EventBridge, Step Functions, SNS and SQS recap, API Gateway, SES and Amazon Connect - connecting applications and people.

What is it?

Modern apps are made of many small parts. Application integration services connect them loosely, so one piece can fail, slow down or change without breaking the others.

  • Amazon EventBridge: a serverless event bus. Apps, AWS services and SaaS partners publish events; rules match them and route them to targets such as Lambda or SQS. It also has scheduled (cron-style) rules and a scheduler.
  • AWS Step Functions: visual workflows (state machines) that coordinate steps such as Lambda functions, with retries, branching, parallel work and error handling.
  • Amazon SQS (recap): a queue that holds messages until a consumer processes them; decouples producers and consumers.
  • Amazon SNS (recap): publish/subscribe notifications that fan one message out to many subscribers (email, SMS, SQS, Lambda, HTTP).
  • Amazon API Gateway: creates, publishes and secures REST, HTTP and WebSocket APIs in front of Lambda or other backends, with throttling, caching and authorization.
  • Amazon SES (Simple Email Service): send bulk and transactional email, such as receipts and newsletters, at low cost.
  • Amazon Connect: a cloud contact center. Customers call or chat, and agents answer in a browser, with routing, IVR menus and analytics, paid per use.

Rule of thumb:

  • SQS: one consumer pulls work at its own pace.
  • SNS: many subscribers all need the message.
  • EventBridge: route events by content from many sources.
  • Step Functions: the order and state of steps matter.

Integration usually goes through an intermediate system, not direct calls. Common patterns: queuing, streaming, pub/sub, API gateways, state machines and event buses.

EventBridge buses (EventBridge was formerly CloudWatch Events): every account has a default event bus for events from AWS services. You can add custom event buses for your own apps (including sharing across accounts) and partner event buses for events from third-party SaaS providers.

More integration services

  • Amazon MQ: a managed message broker for Apache ActiveMQ and RabbitMQ. Choose it when migrating an app that already speaks those standard protocols, instead of rewriting it for SQS/SNS.
  • Amazon MSK (Managed Streaming for Apache Kafka): fully managed Kafka for real-time streaming pipelines, similar in purpose to Kinesis.
  • AWS AppSync: a fully managed GraphQL API service. A schema defines the data model, and resolvers connect each field to a data source (DynamoDB, Lambda, OpenSearch, HTTP endpoints, RDS/Aurora, EventBridge). It supports real-time updates through GraphQL subscriptions, merged APIs that combine several teams' APIs behind one endpoint, and authorization with API keys, IAM, Cognito user pools, OpenID Connect or Lambda authorizers.
  • API Gateway also transforms requests and responses and can forward to backends such as Lambda, EC2 or Kinesis.

Which email service?

  • SNS: plain system notifications to operators (alarms, alerts).
  • SES: application email, both transactional (sign-up, password reset, invoices) and bulk, with HTML templates, custom domains, inbound receiving and reputation monitoring.
  • Amazon WorkMail: managed business mailboxes and calendars for staff, like Outlook or Gmail.
  • Amazon Pinpoint was the marketing-campaign service (segments, journeys). It is closed to new customers, and its engagement features end in October 2026, moving to AWS End User Messaging and Amazon Connect. Older exam material may still list it for marketing campaigns.

Explain like I'm 10

Picture a restaurant. Orders wait for the cook on a ticket rail (SQS). A loudspeaker announces 'table 4 is ready' to everyone (SNS). A switchboard sends each kind of message to the right station (EventBridge). The head chef follows the recipe step by step (Step Functions). A host at the door checks reservations (API Gateway). There's also a mailing desk (SES) and a phone line for customers (Connect).

Examples

An EventBridge rule that matches an event

{
  "source": ["my.orders.app"],
  "detail-type": ["OrderPlaced"],
  "detail": { "amount": [{ "numeric": [">", 100] }] }
}

This pattern matches only OrderPlaced events over 100 and can send them to a target, such as a Lambda function for review.

A tiny Step Functions workflow

{
  "StartAt": "ChargeCard",
  "States": {
    "ChargeCard": { "Type": "Task", "Resource": "arn:aws:lambda:...:charge", "Next": "SendReceipt",
      "Retry": [{ "ErrorEquals": ["States.ALL"], "MaxAttempts": 2 }] },
    "SendReceipt": { "Type": "Task", "Resource": "arn:aws:lambda:...:receipt", "End": true }
  }
}

Each state is a step. Step Functions tracks progress and retries failures, so you don't hand-code that logic.

How it works

Event-driven design: a producer emits an event without knowing who consumes it. EventBridge checks rules against each event and invokes matching targets. Queues store messages durably until deleted, buffering spikes. SNS topics push to every subscriber at once. Step Functions saves each execution's state, so a long workflow survives individual failures.

API Gateway receives the HTTP request, authenticates it (IAM, Cognito or a Lambda authorizer), applies throttling and optional caching, and forwards it to the backend.

  Producer --event--> EventBridge --rule A--> Lambda
                          |--rule B--> SQS --> worker
  User --> API Gateway --> Lambda --> SNS --> email / SMS / SQS
  Step Functions:  [Validate] -> [Charge] -> [Ship] -> [Notify]

Why does it exist?

Tightly coupled systems fail together and are hard to change. Messaging, events and workflows isolate failures, absorb spikes and let teams change parts independently.

When to use it

Use them to decouple microservices, process orders asynchronously, expose APIs, orchestrate multi-step business processes, send notification emails, or run a support line without hardware.

When not to use it

Don't add queues and workflows to a simple synchronous app that needs one function call. Don't use SES for personal inboxes (it sends and receives application email), or Step Functions for sub-millisecond logic.

Common mistakes

  • Using SNS when you need messages to wait for a slow consumer (that is SQS).

  • Writing retry and branching logic by hand inside Lambda instead of using Step Functions.

  • Exposing a Lambda or backend directly to the internet when API Gateway would add auth and throttling.

  • Thinking Amazon Connect is a telephone hardware product; it is a cloud service.

  • Rewriting an ActiveMQ or RabbitMQ application for SQS during a lift-and-shift when Amazon MQ would run it unchanged.

  • Using SNS email for customer-facing messages; use SES.

  • Confusing AppSync (GraphQL) with API Gateway (REST, HTTP and WebSocket APIs).

Practice exercises

  1. Easy:

    Match each service to its job: EventBridge, Step Functions, API Gateway, SES, Connect.

  2. Medium:

    Design an order flow where one 'order placed' event triggers inventory, billing and email independently.

  3. Medium:

    Explain the difference between SQS and SNS using a real example.

  4. Hard:

    Model a refund approval process with a manual approval and a timeout as a state machine on paper.

Interview questions

Exam-style: Which service coordinates multiple AWS services into a visual serverless workflow?

AWS Step Functions.

Exam-style: Which service routes events from AWS services and SaaS applications to targets using rules?

Amazon EventBridge.

Exam-style: Which service creates and secures REST APIs?

Amazon API Gateway.

Exam-style: Which service sends transactional or marketing email?

Amazon SES.

Exam-style: Which service provides a cloud-based contact center?

Amazon Connect.

When do you choose SNS over SQS?

When one message must reach many subscribers at once; SQS is for a queue consumed by workers.

Exam-style: A company is migrating an application that uses Apache ActiveMQ and wants a managed broker without code changes. Which service?

Amazon MQ.

Exam-style: Which service provides managed GraphQL APIs with real-time subscriptions?

AWS AppSync.

Exam-style: Which service gives employees managed business email and calendars?

Amazon WorkMail.

What kinds of event bus does EventBridge offer?

The default bus (AWS service events), custom buses for your own applications, and partner buses for third-party SaaS events.