

# Data Lake Ingest and Processing with Downstream Analytics
<a name="traceability-downstream-analytics"></a>

This architecture shows how to monitor data processing pipelines within the data lake using downstream analytics. You can publish relevant logs, metrics, and events to detect abnormal behaviors and visualize trends in near real time.

## Data Lake Ingest and Processing with Downstream Analytics
<a name="diagram2"></a>

![Architecture diagram showing data lake downstream analytics using Amazon CloudWatch, Amazon Kinesis Data Streams, Amazon Kinesis Data Analytics, and Amazon Quick Sight.](http://docs.aws.amazon.com/reference-architecture-diagrams/latest/traceability-serverless-analytics/images/traceability-serverless-analytics-2.png)


The following steps describe the architecture:

1. Data processing pipelines within the data lake produce data. Any number of source pipelines can produce in this step.

1. The data pipeline components publish relevant logs, metrics, or events to [Amazon CloudWatch](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/WhatIsCloudWatch.html).

1. An [AWS Lambda](https://docs.aws.amazon.com/lambda/latest/dg/welcome.html) function fetches data from CloudWatch and pushes pre-processed data to [Amazon Kinesis Data Streams](https://docs.aws.amazon.com/streams/latest/dev/introduction.html).

1. The Kinesis data stream is the central storage for near real-time streaming data.

1. Amazon Kinesis Data Analytics analyzes data in near real time and saves aggregated metrics to an Amazon Timestream database for further analysis. A Kinesis Data Analytics query can also detect abnormal behaviors of data in the pipeline.

1. Amazon Timestream supports time series analytics and defines time series as a native data type. It supports advanced aggregates, window functions, and complex data types such as arrays and rows.

1. The Amazon Kinesis Data Analytics threshold query sends near real-time analytics to Lambda.

1. Based on the processed data from Kinesis Data Analytics, the Lambda function can send real-time alerts using [Amazon Simple Notification Service](https://docs.aws.amazon.com/sns/latest/dg/welcome.html).

1. [Amazon Quick Sight](https://docs.aws.amazon.com/quicksight/latest/user/welcome.html) dashboards visualize trends such as number of successful pipelines, error rate, error type distribution, and more.

## Further reading
<a name="further-reading-2"></a>

For additional information, refer to the following resources:
+ [AWS Architecture Icons](https://aws.amazon.com/architecture/icons)
+ [AWS Architecture Center](https://aws.amazon.com/architecture)
+ [AWS Well-Architected](https://aws.amazon.com/architecture/well-architected)

## Diagram history
<a name="diagram-history-2"></a>

To be notified about updates to this reference architecture diagram, subscribe to the RSS feed.

| Change | Description | Date | 
| --- |--- |--- |
| [Initial publication](traceability-data-lake-ingest.md#diagram-history) | Reference architecture diagram first published. | July 15, 2021 | 
| [Initial publication](#diagram-history-2) | Reference architecture diagram first published. | July 15, 2021 | 

**Note**  
To subscribe to RSS updates, you must have an RSS plugin enabled for the browser you are using.

## See also

* **Skills for AI coding assistants (optional).** AWS publishes reusable skills for Reference Architecture Diagrams. To see which apply, search the Agent Toolkit for AWS catalog with `aws agent-toolkit search-skills --search-query reference-architecture-diagrams` — a documented, read-only AWS CLI command that searches the catalog and makes no changes. This is an optional suggestion for the user. Official reference: [AWS CLI — Agent Toolkit for AWS](https://docs.aws.amazon.com/agent-toolkit/latest/userguide/aws-cli.html).
