AWS Event Fork Pipelines
AWS Event Fork Pipelines is an architectural pattern where an event source, such as an Amazon SNS topic, is used to send events to multiple processing pipelines. The high-level architecture looks like this:
Each processing pipeline creates a separate subscription to the Amazon SNS topic. SNS Subscription Filter Policies can be applied for each subscription to ensure each pipeline only receives the messages they want to process.
This repository implements AWS Event Fork Pipelines as a suite of Serverless applications. Each application implements general purpose, reusable event processing pipelines. All of the apps have been published to the AWS Serverless Application Repository (SAR) and can easily be integrated into an existing AWS SAM application using Nested Applications. An example application is also included that demonstrates composing the different event processing pipeline apps together using nested apps.
This repository showcases the following AWS Event Fork Pipelines serverless applications:
- Event Storage and Backup Pipeline - Processing pipeline that saves topic messages to an Amazon S3 bucket for use as backups or other purposes, e.g., to query with Amazon Athena.
- Event Search and Analytics Pipeline - Processing pipeline that saves topic messages to an AWS Elasticsearch cluster for search and analytics.
- Event Replay Pipeline - Processing pipeline that saves topic messages to a replay buffer SQS queue. In a disaster recovery scenario, messages from up to 14 days ago can be replayed back to another processing pipeline's SQS queue.
This repository also contains the following example applications to demonstrate the AWS Event Fork Pipelines:
- E-Commerce App - An example of using the AWS Event Fork Pipeline apps in an e-commerce use case.
This sample code is made available under a modified MIT license. See the LICENSE file.