AWS Notes
5.6K subscribers
444 photos
42 videos
10 files
2.8K links
AWS Notes — Amazon Web Services Educational and Information Channel

Chat: https://xn--r1a.website/aws_notes_chat

Contacts: @apple_rom, https://www.linkedin.com/in/roman-siewko/
Download Telegram
Хорошее практически-прикладное видео по Amazon EventBridge:

https://www.youtube.com/watch?v=ea9SCYDJIm4

Коротко (9 мин.), понятно, на простом примере работы с эвентами для S3.

Кто ещё не познакомился с Amazon EventBridge - очень советую. А всем, кто работает с Event Driven архитектурой - просто must know.

#EventBridge
EventBridge получил две крутые фичи — возможность сохранять эвенты и воспроизводить их:

https://aws.amazon.com/blogs/aws/new-archive-and-replay-events-with-amazon-eventbridge/

Сохранять можно все, по паттерну, навсегда или указав срок их хранения. При воспроизведении нужно указать период времени, когда они были получены.

Данный функционал был весьма востребован, точно знаю, что многие написали свои реализации этого. Очень жаль, что нет публичного Roadmap для EventBridge, чтобы не плодить своих велосипедов и видеть, над каким функционалом нужного сервиса трудится команда Амазона.

#EventBridge
EventBridge + Resource-based policy:

https://aws.amazon.com/blogs/compute/simplifying-cross-account-access-with-amazon-eventbridge-resource-policies/

С помощью Resource-based политик проще создавать мультиаккаунтные проекты. То есть, к примеру, когда фронт в одном аккаунте отправляет эвенты в центральный аккаунт, а бэкенд, допустим, с какими-то суровыми требованиями по безопасности, обрабатывает их в своём отдельном аккаунте.

#EventBridge
AWS SQS vs SNS vs Eventbridge:

https://beabetterdev.com/2021/09/10/aws-sqs-vs-sns-vs-eventbridge/

Use SQS when:
▪️ You’re looking for reliable 1:1 Asynchronous communication to decouple your applications from one another
▪️ You want to rate limit your consumption of messages (perhaps due to a database bottleneck or some other use case)
▪️ You want ordered message processing of vents
Use SNS when:
▪️ You want to publish messages to MANY different subscribers with a single action
▪️ Require high throughput and reliability for publishing and delivery to consumers
▪️ Have many subscribers
Use Eventbridge when:
▪️ You want to publish messages to many subscribers, and use the event data itself to match targets interested certain patterns.
▪️ Want integration with other SaaS providers such as Shopify, Datadog, Pagerduty, or others
▪️ Want to easily discover schemas that other teams produce and incorporate them into your application.
▪️ You want to use regularly scheduled events using a cron-like expression to periodically send messages to your event bus.

#SQS #SNS #Eventbridge
​​S3 Event Notifications + EventBridge:

https://aws.amazon.com/blogs/aws/new-use-amazon-s3-event-notifications-with-amazon-eventbridge/

Доступ к S3 Event Notifications через EventBridge позволяет их фильтровать, отправлять в разные сервисы и использовать такие фичи EventBridge как archive и replay, что очень пригодится для реализации Disaster Recovery в требовательных проектах.

#EventBridge
🆕 EventBridge Scheduler: 🎉🎉🎉

https://aws.amazon.com/blogs/compute/introducing-amazon-eventbridge-scheduler/

EventBridge Scheduler provides at-least-once event delivery to targets, and you can create schedules that adjust to different delivery patterns:

Time window allows you to start a schedule within a window of time. This means that the scheduled tasks are dispersed across the time window to reduce the impact of multiple requests on downstream services.
Maximum retention time of the event is the maximum time to keep an unprocessed event in the scheduler. If the target is not responding during this time, the event is dropped or sent to a DLQ.
🔁 Retries with exponential backoff help to retry a failed task with delayed attempts. This improves the success of the task when the target is available.
✉️ A dead letter queue is an SQS queue where events that failed to get delivered to the target are routed.

By default, EventBridge Scheduler tries to send the event for 24 hours and a maximum of 185 times.

⚠️ Quota on schedules: 1 million per account (soft limit)

#EventBridge
👍5🎉2
🆕 Amazon EventBridge Pipes:

https://aws.amazon.com/blogs/aws/new-create-point-to-point-integrations-between-event-producers-and-consumers-with-amazon-eventbridge-pipes/

EventBridge Pipes supports the following services as event sources:

✺ DynamoDB
✺ Kinesis
✺ Kafka
/MSK
✺ SQS
✺ MQ

#EventBridge_Pipes
🎉4🔥1
EventBridge + cross-account targets 💪

https://aws.amazon.com/blogs/compute/introducing-cross-account-targets-for-amazon-eventbridge-event-buses/

EDA (Event-Driven Architecture) продолжает цвести и пахнуть — теперь в EventBridge можно отправить любое событие в любой аккаунт, что и ускоряет работу, и убирает костыли.

#EventBridge
👍19