Data Architecture

Building a Scalable Cost Optimized Resilient Data Platform

Part of the series Deploying a Cost Optimized Resilient Data Platform

For any business running cloud native infrastructure, the infrastructure costs will increase as the business grows, and cost efficiency is always paramount.

Data engineering requires a high level of autonomy, so as a data engineer you must have a firm grasp of the infrastructure on which your data pipelines run.

You should be able to design, build and operationalize a data platform, then secure and monitor the data processing systems running on it; and for this reason a "You Build it, You Run it!" approach for data engineers especially in startups is always encouraged.

You should be able to troubleshoot issues within a pipeline without any reliance on a third party; the DevOps/Platform engineer might be too busy to be bothered about the intrinsic details of the "Spark Shuffle" process when setting up or making infrastructure decisions and this will have a direct influence on your pipeline performance, it could be either transient or manifest later

If you ran this infrastructure, as a data engineer, one of your KPIs, in a finance perspective will be to keep these costs at a minimum while still meeting SLAs set by business

So how can we build a cost optimized but resilient data platform?Link to section: So how can we build a cost optimized but resilient data platform?

In this series of posts, I discuss the data architecture of a scalable cost optimized resilient data platform, the tooling (toys), the reasons for the choices for tooling, the alternatives to the chosen tooling and the different persona in the ecosystem

The entire platform infrastructure is managed by Infrastructure as Code (IaC), the choice for this being Terraform, and complete project will be shared at a GitHub repo

A cloud-agnostic platform was paramount to this project to alleviate cloud lock-in concerns but were necessary cloud-native services where used.

The overall architecture of the project can be found below, or as a download link

Data platform architecture in six layers: data sources (CRM, OLTP, WAF/ALB access logs, ERP); ingestion (Apache NiFi, Kafka via CDC, Spark Structured Streaming, Logstash); storage (OpenSearch and AWS Neptune data catalog, AWS Glue metadata, S3 data lake with Iceberg, EFS logging); query and governance (Trino); transform (dbt, Great Expectations, Airflow, Spark); and presentation (Superset, Power BI, a Flask-backed data subscription service). Prometheus and Grafana, Spark History Server, Amundsen and CloudWatch provide monitoring, logs and data discovery.
Data platform architecture. Select the diagram to open it at full size.