Automating serverless workflows with Amazon EventBridge

Blog on Amazon EventBridge to automate serverless workflows

Event-driven applications have become the foundation for developing modern digital applications. Application workflows are easier to automate with serverless frameworks, and Amazon EventBridge has revolutionized the way serverless applications are built.

Since serverless is the new cool kid in the town, there has been a lot of infrastructure reengineering. This blog describes how alert-driven business logic can automate serverless workflows using Amazon EventBridge.

What is Amazon EventBridge?

Amazon EventBridge is a serverless bus that makes it easy to connect application data, integrated Software as a Service (SaaS) applications, and Amazon Web Services (AWS). 

Let's address few basic questions. What are the new features introduced with Amazon EventBridge? How is the functionality different from CloudWatch Events? Read along to know more.

Amazon EventBridge vs. CloudWatch Events

Amazon EventBridge was released to facilitate the integration of SaaS platforms with AWS services. What makes EventBridge beneficial is its support for custom events. CloudWatch Events does not integrate with SaaS applications and only supports default functions.

Since EventBridge is key to building serverless applications, let's discover how the Site24x7 integration with Amazon EventBridge can help you deploy serverless applications with confidence.

Alert-driven business logic

Multiple legacy monitoring solutions create a deluge of alerts that can't always be attended to efficiently. Responding to critical alerts manually requires machine data and human intelligence to be paired. What if these alerts could drive business logic-like cloud bursting, auto-scale instances, or auto-remediate themselves?

Site24x7 integration with Amazon EventBridge enables you to auto-remediate the alerts. While monitoring your hybrid IT infrastructure, the real-time alerts from Site24x7 can be routed to EventBridge easily. EventBridge uses its rule set to invoke built-in targets like AWS Lambda, SNS, ECS tasks, Kinesis streams, or other AWS services. The targets are part of multiple fan-out options of EventBridge and can be used to start auto-remediation pipelines, run analytics queries, or other automation steps.

Closed-loop automation

Closed-loop event response in IT automation has been reactive rather than proactive for quite some time. Continuous closed-loop automation solutions help you improve SLA compliance, customer experience, and reduce the need for manual intervention in the cloud operational process. With EventBridge, you can orchestrate your workflows to achieve optimal efficiency, but it is much more than an orchestration tool.

Let's learn how Site24x7-EventBridge integration can help you achieve closed-loop automation for your applications.

1. Cloud bursting

Combating capacity issues of on-premises IT infrastructure has always been a challenge, and most organizations benefit from cloud bursting. Monitor the capacity level of your on-premises IT infrastructure and trigger alerts from Site24x7 when the capacity threshold is breached. The EventBridge integration lets you route and triggers a Lambda function for cloud bursting.

2. Improve website response time

It is essential that customer-facing web pages load faster; keeping track of the website response time is crucial. While you monitor the websites, a spike in the First Byte Time metric indicates a delay in server response time and network latency time. As part of your failover configuration, you can send this alert via EventBridge to a load-balancer to reroute incoming traffic.

3. Accommodate high website traffic

While you assess the number of people who visit your website during a particular time using Site24x7 Real User Monitoring, it triggers an alert when traffic spikes and a threshold is breached. You can route this alert through EventBridge to auto-scale EC2 instances horizontally or vertically using a Lambda function.

4. Debug delayed container tasks

With Amazon ECS monitoring, you can collect the number of tasks that are in a pending state for each cluster. When this count reaches a threshold, you can route this alert from Site24x7 to EventBridge with ECS tasks as the target for the alerts. ECS tasks can be triggered to send log data to CloudWatch logs and then to debug the cluster if multiple tasks are pending to be executed.

5. Track storage usage

Collect service-level storage data with S3 monitoring or RDS monitoring offered by Site24x7. When a threshold is breached, route the alert via EventBridge to trigger Step Functions to scale the instances.

Wrapping it up

With Site24x7 AWS monitoring and EventBridge integration in place, you can replace pretty much every webhook-based implementation available. EventBridge is reliable, easy to set up and scale, and is cost-effective to operate since AWS manages everything behind the scenes.

The possibilities are vast with EventBridge, and it is exciting to see how developers leverage this integration. Let us know in the comments section below, how you have automated your workflow with Site24x7-EventBridge integration. 

If you're a small business and struggling to cope with the COVID-19 pandemic, we have put together some relief initiatives to help you navigate through this crisis.

Comments (0)