XenonStack

Big Data Engineering

XenonStack Blog Amazon Athena with QuickSight: Architecture Guide

and | Published | Updated

Amazon Athena with QuickSight: Architecture Guide
7:26

Key takeaway

  • Amazon Athena runs serverless SQL on S3 data. Learn the Athena and Quick Sight architecture, when to choose Redshift or EMR, and what to govern.

Amazon Athena is a serverless service that runs standard SQL directly on data in Amazon S3, so there is no infrastructure to set up or manage and you pay only for the queries you run. Paired with Amazon QuickSight, it gives an enterprise a self-service BI layer over a data lake without loading data into a warehouse first. QuickSight is now called AWS Quick Sight and sits inside AWS Quick; AWS states that existing QuickSight APIs, SDKs and integrations continue to work without changes.

This guide is for architects and data platform leads who need to decide where Athena fits, how the Athena and Quick Sight pipeline is built, and what to govern. If your workload is heavy on joins across large tables, read our guide to Amazon Redshift with QuickSight alongside this one.

What is the Amazon Athena architecture?

Athena is an interactive query service for data in Amazon S3. It works with structured, semi-structured and unstructured data, in formats such as CSV, JSON, and columnar formats such as Apache Parquet and Apache ORC, and it needs no loading step: you define a table over the S3 location and query it with ANSI SQL. Table metadata is held in the AWS Glue Data Catalog, a persistent metadata store for data in S3. Athena also connects to BI tools and SQL clients through JDBC or ODBC drivers, and to Amazon Quick for visualisation. Athena scales automatically and runs queries in parallel. Apache Spark on Athena is also serverless. Source: AWS Athena documentation.

LayerComponentRole
StorageAmazon S3Holds the raw and curated data files
MetadataAWS Glue Data CatalogPersistent table definitions over S3
QueryAmazon AthenaServerless SQL, no data loading
VisualisationAWS Quick SightDashboards and self-service analysis

When should you choose Athena, Redshift or EMR?

AWS gives a clear split. Athena suits quick, ad hoc queries on data in S3, for example a query on web logs to troubleshoot a site performance issue. Redshift suits pulling data from many sources into a common format, storing it for long periods and running complex queries that join large numbers of very large tables. EMR suits custom code and very large datasets with frameworks such as Spark, Hadoop and Presto, where you want full control of clusters. The services also work together: Athena can query data that EMR processes, because its catalog is Hive metastore compatible. Source: AWS, choosing Athena, Redshift or EMR.

Two-column diagram mapping workloads (ad hoc S3 SQL, historical reporting, complex joins, custom processing) to Athena, Redshift or EMR
ServiceBest fitInfrastructureTrade-off
AthenaAd hoc SQL on data in S3None to manageNot built for long-term consolidated warehousing
RedshiftHistorical reports, complex joins across large tablesData warehouseData is consolidated into it first
EMRCustom Spark or Hadoop processingYou configure clustersMore operational control and effort

How do you build the Athena and Quick Sight pipeline?

Step 1: Land and organise data in S3

Create or choose an S3 bucket, organise data into folders, and upload the files. Folder layout matters later because it drives partitioning.

Step 2: Define the database and tables in Athena

In the Athena console, create a database, then create a table over the S3 location with a partition clause. Load partitions, then query the table with standard SQL to confirm the data reads correctly. For tables with many partitions, AWS also documents partition projection as an option.

Step 3: Connect Quick Sight to Athena

In Quick Sight, create a new dataset and choose Athena as the source, name the data source, validate it and create it. Select the table, edit the fields if needed, then save and visualise.

What should you govern and tune?

AWS groups Athena performance work into service, query and data-structure choices, and points to columnar formats, partitioning and bucketing, partition projection and avoiding Amazon S3 throttling. Source: AWS, optimise Athena performance. Because billing follows the queries you run, decide early who may query which datasets and how results are shared into dashboards. Infrastructure as code keeps the buckets, catalog and permissions repeatable; see our guide to infrastructure as code on AWS. When business users want to ask questions of this data in plain language, AgentAnalyst lets teams ask questions of enterprise data in plain language and get real-time insights, while ElixirData Context OS keeps governed context, versioned policy and decision traces in one decision layer above AI agents.

What is the adoption sequence and when should you not use Athena?

  • Start with one dataset in S3 and one dashboard, to prove the path from file to chart.
  • Move the data to a columnar format and partition it before usage grows.
  • Standardise the catalog and access rules, then add further sources.
  • Do not stretch Athena into a long-term consolidated warehouse for complex multi-table joins; that is the case AWS points to Redshift for.

For managed delivery on AWS, see our AWS managed services. For machine learning on the same data, see SageMaker MLOps.

To map one analytics decision your agents should make, and the context and policy it depends on, book a Context Workshop. See what happens in the workshop.

Frequently asked questions

Does Athena need infrastructure?

No. Athena is serverless, with no infrastructure to set up or manage, and you pay only for the queries you run.

Which data formats does Athena query?

CSV, JSON and columnar formats such as Apache Parquet and Apache ORC, stored in Amazon S3.

Should I use Athena or Redshift?

Use Athena for ad hoc SQL on data in S3. Use Redshift to consolidate many sources for long-term reporting and complex joins across very large tables.

Is QuickSight still called QuickSight?

It is now AWS Quick Sight, a feature within AWS Quick. AWS states existing QuickSight APIs, SDKs and integrations continue to work without changes.

What reduces Athena query effort?

AWS points to columnar formats, partitioning and bucketing, partition projection and avoiding S3 throttling.

Follow XenonStack on LinkedIn: XenonStack on LinkedIn for new guides on agentic AI, data and platform engineering.

Ready to put AI agents to work? Explore ElixirClaw, the agentic OS platform to build, orchestrate and govern AI agents.

Table of Contents

navdeep-singh-gill

Navdeep Singh Gill

Global CEO and Founder of XenonStack

LinkedIn profile

Navdeep Singh Gill is serving as Chief Executive Officer and Product Architect at XenonStack. He holds expertise in building SaaS Platform for Decentralised Big Data management and Governance, AI Marketplace for Operationalising and Scaling. His incredible experience in AI Technologies and Big Data Engineering thrills him to write about different use cases and its approach to solutions.

Get the latest articles in your inbox

Subscribe Now

Interested in Solving your Challenges with XenonStack Team
Get Started

Get Started with your requirements and primary focus, that will help us to make your solution

Please Select your Industry
Banking
Fintech
Payment Providers
Wealth Management
Discrete Manufacturing
Semiconductor
Machinery Manufacturing / Automation
Appliances / Electrical / Electronics
Elevator Manufacturing
Defense & Space Manufacturing
Computers & Electronics / Industrial Machinery
Motor Vehicle Manufacturing
Food and Beverages
Distillery & Wines
Beverages
Shipping
Logistics
Mobility (EV / Public Transport)
Energy & Utilities
Hospitality
Digital Gaming Platforms
SportsTech with AI
Public Safety - Explosives
Public Safety - Firefighting
Public Safety - Surveillance
Public Safety - Others
Media Platforms
City Operations
Airlines & Aviation
Defense Warfare & Drones
Robotics Engineering
Drones Manufacturing
AI Labs for Colleges
AI MSP / Quantum / AGI Institutes
Retail Apparel and Fashion

Proceed Next