サービス · アプリケーション統合
Amazon EventBridge
A serverless event bus that routes events from AWS services, your apps and SaaS apps to the targets that need them.
このレッスンはまだ翻訳されていないため、英語で表示しています。
- 1Events arrive on the event bus: a change in an AWS service, an event from your app or a SaaS app, or a scheduled time.
- 2Rules match each event by its content and send it to the right targets, such as a Lambda function, an SNS topic or a Step Functions workflow.
流れ
- 1Events arrive on the event bus: a change in an AWS service, an event from your app or a SaaS app, or a scheduled time.
- 2Rules match each event by its content and send it to the right targets, such as a Lambda function, an SNS topic or a Step Functions workflow.
- Works like
- A to-do list: messages wait in a queue
- How messages move
- Consumers pull messages when they are ready
- Who gets each message
- One consumer processes each message
- Choose it to
- Buffer work and decouple the parts of an application
- Works like
- A loudspeaker: one message, many listeners
- How messages move
- SNS pushes each message to subscribers at once
- Who gets each message
- Every subscriber, including people by email, SMS or push
- Choose it to
- Send alerts and notifications, or fan out one message
EventBridge
- Works like
- A router: events go where rules send them
- How messages move
- Rules match events by their content and send them to targets
- Who gets each message
- Only the targets whose rules match
- Choose it to
- React to events from AWS services, SaaS apps and schedules
| Service | Works like | How messages move | Who gets each message | Choose it to |
|---|---|---|---|---|
| A to-do list: messages wait in a queue | Consumers pull messages when they are ready | One consumer processes each message | Buffer work and decouple the parts of an application | |
| A loudspeaker: one message, many listeners | SNS pushes each message to subscribers at once | Every subscriber, including people by email, SMS or push | Send alerts and notifications, or fan out one message | |
| A router: events go where rules send them | Rules match events by their content and send them to targets | Only the targets whose rules match | React to events from AWS services, SaaS apps and schedules |
1 / 3
- Works like
- A to-do list: messages wait in a queue
- How messages move
- Consumers pull messages when they are ready
- Who gets each message
- One consumer processes each message
- Choose it to
- Buffer work and decouple the parts of an application
| Service | Works like | How messages move | Who gets each message | Choose it to |
|---|---|---|---|---|
| A to-do list: messages wait in a queue | Consumers pull messages when they are ready | One consumer processes each message | Buffer work and decouple the parts of an application |
2 / 3
- Works like
- A loudspeaker: one message, many listeners
- How messages move
- SNS pushes each message to subscribers at once
- Who gets each message
- Every subscriber, including people by email, SMS or push
- Choose it to
- Send alerts and notifications, or fan out one message
| Service | Works like | How messages move | Who gets each message | Choose it to |
|---|---|---|---|---|
| A loudspeaker: one message, many listeners | SNS pushes each message to subscribers at once | Every subscriber, including people by email, SMS or push | Send alerts and notifications, or fan out one message |
3 / 3
EventBridge
- Works like
- A router: events go where rules send them
- How messages move
- Rules match events by their content and send them to targets
- Who gets each message
- Only the targets whose rules match
- Choose it to
- React to events from AWS services, SaaS apps and schedules
| Service | Works like | How messages move | Who gets each message | Choose it to |
|---|---|---|---|---|
| A router: events go where rules send them | Rules match events by their content and send them to targets | Only the targets whose rules match | React to events from AWS services, SaaS apps and schedules |
概要
Amazon EventBridge (formerly Amazon CloudWatch Events) is a serverless event bus. An event is a record that something happened, such as “an EC2 instance stopped” or “a customer placed an order”. Events come from AWS services, from your own applications and from software as a service (SaaS) applications made by AWS partners.
Rules look at the content of each event and send the ones that match to targets, such as an AWS Lambda function, an Amazon SNS topic or an AWS Step Functions workflow. The service that produced the event does not need to know about the targets, so teams can add new targets without changing it.
概要
EventBridge can also start targets on a schedule, for example every night at 2 AM, or once at a set time. This part is called EventBridge Scheduler.
覚えること
- Event sources: AWS services, your own applications and SaaS partner apps.
- Rules filter events by their content, so each target receives only what it needs.
- Targets include Lambda, SNS, SQS, Step Functions and event buses in other accounts.
- EventBridge Scheduler runs tasks on a schedule, such as every hour.
覚えること
- Serverless: nothing to manage, and you pay for the events you use.
試験では
- “React automatically to a change in an AWS service” or “route events from a SaaS application to AWS” points to Amazon EventBridge.
- “Run a Lambda function every night at 2 AM” points to an EventBridge schedule.
- “Hold messages until a worker is ready” points to SQS. “Push one message to many subscribers, including email and SMS” points to SNS.
混同しやすいもの
Amazon Simple Notification Service (Amazon SNS)Publish a message once, and SNS pushes it to every subscriber: queues, functions, apps, phones and email.
Amazon Simple Queue Service (Amazon SQS)A fully managed message queue, so the parts of an application can work at their own pace without losing messages.
Amazon CloudWatchMonitors your AWS resources and applications with metrics, logs, dashboards and alarms.