StackShareStackShare
Follow on
StackShare

Discover and share technology stacks from companies around the world.

Follow on

© 2025 StackShare. All rights reserved.

Product

  • Stacks
  • Tools
  • Feed

Company

  • About
  • Contact

Legal

  • Privacy Policy
  • Terms of Service
  1. Stackups
  2. Application & Data
  3. Databases
  4. Big Data Tools
  5. Amazon Athena vs Apache Spark vs Presto

Amazon Athena vs Apache Spark vs Presto

OverviewDecisionsComparisonAlternatives

Overview

Apache Spark
Apache Spark
Stacks3.1K
Followers3.5K
Votes140
GitHub Stars42.2K
Forks28.9K
Presto
Presto
Stacks394
Followers1.0K
Votes66
Amazon Athena
Amazon Athena
Stacks519
Followers840
Votes49

Amazon Athena vs Apache Spark vs Presto: What are the differences?

Introduction:

In the world of big data and analytics, there are several tools available for processing and analyzing large volumes of data. Two popular options are Amazon Athena and Apache Spark with Presto. While both tools offer powerful capabilities, there are key differences between them that make them suitable for different use cases.

  1. Data Processing Paradigm: Amazon Athena is a serverless interactive query service that allows you to directly analyze data stored in Amazon S3 using standard SQL. It is designed for ad-hoc queries and does not require any infrastructure provisioning. On the other hand, Apache Spark with Presto is a distributed computing framework that supports batch processing, real-time streaming, machine learning, and graph processing. It provides a more comprehensive set of tools and capabilities for data processing.

  2. Scalability: Amazon Athena is highly scalable and can handle large volumes of data, but its performance may be impacted by the size and complexity of the dataset. In contrast, Apache Spark with Presto is designed to scale horizontally, allowing you to process and analyze massive amounts of data efficiently. It can be used to build data pipelines and handle large-scale data processing workloads.

  3. Flexibility: Amazon Athena is tightly integrated with Amazon S3 and is optimized for querying data stored in this service. It supports various file formats like Parquet, ORC, CSV, and JSON. On the other hand, Apache Spark with Presto is agnostic to the underlying storage system and supports a wide range of data sources, including Hadoop Distributed File System (HDFS), Amazon S3, Apache Kafka, and more. It provides more flexibility in terms of data source compatibility.

  4. Processing Speed: Amazon Athena provides near real-time query performance as it directly scans and queries data in Amazon S3. However, its performance may vary based on the size and complexity of the data. Apache Spark with Presto offers faster processing speeds through its in-memory computing capabilities. It can cache data in memory and leverage distributed computing to perform data processing tasks efficiently.

  5. Data Types and Functions: Amazon Athena provides a wide range of built-in functions and supports various data types for querying data. However, its SQL support is limited compared to Apache Spark with Presto, which offers a more extensive set of built-in functions, data types, and libraries for data manipulation, aggregation, and analysis. This makes Apache Spark with Presto more suitable for complex data transformations and advanced analytics tasks.

  6. Ecosystem and Integration: Amazon Athena is part of the broader AWS ecosystem and integrates seamlessly with other AWS services like AWS Glue for data cataloging and AWS Lambda for automating data workflows. Apache Spark with Presto, on the other hand, has a rich ecosystem and integrates with various data processing frameworks, storage systems, and machine learning libraries. It supports integration with big data technologies like Hadoop, Hive, and HBase.

In summary, Amazon Athena is a serverless query service optimized for analyzing data stored in Amazon S3 using SQL, while Apache Spark with Presto is a versatile distributed computing framework that supports batch processing, real-time streaming, machine learning, and graph processing. The key differences between them lie in their data processing paradigms, scalability, flexibility, processing speed, data types and functions, and ecosystem integrations.

Share your Stack

Help developers discover the tools you use. Get visibility for your team's tech choices and contribute to the community's knowledge.

View Docs
CLI (Node.js)
or
Manual

Advice on Apache Spark, Presto, Amazon Athena

Ashish
Ashish

Tech Lead, Big Data Platform at Pinterest

Nov 27, 2019

Needs adviceonApache HiveApache HivePrestoPrestoAmazon EC2Amazon EC2

To provide employees with the critical need of interactive querying, we’ve worked with Presto, an open-source distributed SQL query engine, over the years. Operating Presto at Pinterest’s scale has involved resolving quite a few challenges like, supporting deeply nested and huge thrift schemas, slow/ bad worker detection and remediation, auto-scaling cluster, graceful cluster shutdown and impersonation support for ldap authenticator.

Our infrastructure is built on top of Amazon EC2 and we leverage Amazon S3 for storing our data. This separates compute and storage layers, and allows multiple compute clusters to share the S3 data.

We have hundreds of petabytes of data and tens of thousands of Apache Hive tables. Our Presto clusters are comprised of a fleet of 450 r4.8xl EC2 instances. Presto clusters together have over 100 TBs of memory and 14K vcpu cores. Within Pinterest, we have close to more than 1,000 monthly active users (out of total 1,600+ Pinterest employees) using Presto, who run about 400K queries on these clusters per month.

Each query submitted to Presto cluster is logged to a Kafka topic via Singer. Singer is a logging agent built at Pinterest and we talked about it in a previous post. Each query is logged when it is submitted and when it finishes. When a Presto cluster crashes, we will have query submitted events without corresponding query finished events. These events enable us to capture the effect of cluster crashes over time.

Each Presto cluster at Pinterest has workers on a mix of dedicated AWS EC2 instances and Kubernetes pods. Kubernetes platform provides us with the capability to add and remove workers from a Presto cluster very quickly. The best-case latency on bringing up a new worker on Kubernetes is less than a minute. However, when the Kubernetes cluster itself is out of resources and needs to scale up, it can take up to ten minutes. Some other advantages of deploying on Kubernetes platform is that our Presto deployment becomes agnostic of cloud vendor, instance types, OS, etc.

#BigData #AWS #DataScience #DataEngineering

3.72M views3.72M
Comments
Aditya
Aditya

Mar 13, 2021

Review

you can use aws glue service to convert you pipe format data to parquet format , and thus you can achieve data compression . Now you should choose Redshift to copy your data as it is very huge. To manage your data, you should partition your data in S3 bucket and also divide your data across the redshift cluster

220k views220k
Comments
Nilesh
Nilesh

Technical Architect at Self Employed

Jul 8, 2020

Needs adviceonElasticsearchElasticsearchKafkaKafka

We have a Kafka topic having events of type A and type B. We need to perform an inner join on both type of events using some common field (primary-key). The joined events to be inserted in Elasticsearch.

In usual cases, type A and type B events (with same key) observed to be close upto 15 minutes. But in some cases they may be far from each other, lets say 6 hours. Sometimes event of either of the types never come.

In all cases, we should be able to find joined events instantly after they are joined and not-joined events within 15 minutes.

576k views576k
Comments

Detailed Comparison

Apache Spark
Apache Spark
Presto
Presto
Amazon Athena
Amazon Athena

Spark is a fast and general processing engine compatible with Hadoop data. It can run in Hadoop clusters through YARN or Spark's standalone mode, and it can process data in HDFS, HBase, Cassandra, Hive, and any Hadoop InputFormat. It is designed to perform both batch processing (similar to MapReduce) and new workloads like streaming, interactive queries, and machine learning.

Distributed SQL Query Engine for Big Data

Amazon Athena is an interactive query service that makes it easy to analyze data in Amazon S3 using standard SQL. Athena is serverless, so there is no infrastructure to manage, and you pay only for the queries that you run.

Run programs up to 100x faster than Hadoop MapReduce in memory, or 10x faster on disk;Write applications quickly in Java, Scala or Python;Combine SQL, streaming, and complex analytics;Spark runs on Hadoop, Mesos, standalone, or in the cloud. It can access diverse data sources including HDFS, Cassandra, HBase, S3
--
Statistics
GitHub Stars
42.2K
GitHub Stars
-
GitHub Stars
-
GitHub Forks
28.9K
GitHub Forks
-
GitHub Forks
-
Stacks
3.1K
Stacks
394
Stacks
519
Followers
3.5K
Followers
1.0K
Followers
840
Votes
140
Votes
66
Votes
49
Pros & Cons
Pros
  • 61
    Open-source
  • 48
    Fast and Flexible
  • 8
    Great for distributed SQL like applications
  • 8
    One platform for every big data problem
  • 6
    Easy to install and to use
Cons
  • 4
    Speed
Pros
  • 18
    Works directly on files in s3 (no ETL)
  • 13
    Open-source
  • 12
    Join multiple databases
  • 10
    Scalable
  • 7
    Gets ready in minutes
Pros
  • 16
    Use SQL to analyze CSV files
  • 8
    Glue crawlers gives easy Data catalogue
  • 7
    Cheap
  • 6
    Query all my data without running servers 24x7
  • 4
    No data base servers yay
Integrations
No integrations available
PostgreSQL
PostgreSQL
Kafka
Kafka
Redis
Redis
MySQL
MySQL
Hadoop
Hadoop
Microsoft SQL Server
Microsoft SQL Server
Amazon S3
Amazon S3

What are some alternatives to Apache Spark, Presto, Amazon Athena?

Apache Flink

Apache Flink

Apache Flink is an open source system for fast and versatile data analytics in clusters. Flink supports batch and streaming analytics, in one system. Analytical programs can be written in concise and elegant APIs in Java and Scala.

lakeFS

lakeFS

It is an open-source data version control system for data lakes. It provides a “Git for data” platform enabling you to implement best practices from software engineering on your data lake, including branching and merging, CI/CD, and production-like dev/test environments.

Druid

Druid

Druid is a distributed, column-oriented, real-time analytics data store that is commonly used to power exploratory dashboards in multi-tenant environments. Druid excels as a data warehousing solution for fast aggregate queries on petabyte sized data sets. Druid supports a variety of flexible filters, exact calculations, approximate algorithms, and other useful calculations.

Apache Kylin

Apache Kylin

Apache Kylin™ is an open source Distributed Analytics Engine designed to provide SQL interface and multi-dimensional analysis (OLAP) on Hadoop/Spark supporting extremely large datasets, originally contributed from eBay Inc.

Splunk

Splunk

It provides the leading platform for Operational Intelligence. Customers use it to search, monitor, analyze and visualize machine data.

Apache Impala

Apache Impala

Impala is a modern, open source, MPP SQL query engine for Apache Hadoop. Impala is shipped by Cloudera, MapR, and Amazon. With Impala, you can query data, whether stored in HDFS or Apache HBase – including SELECT, JOIN, and aggregate functions – in real time.

Vertica

Vertica

It provides a best-in-class, unified analytics platform that will forever be independent from underlying infrastructure.

Azure Synapse

Azure Synapse

It is an analytics service that brings together enterprise data warehousing and Big Data analytics. It gives you the freedom to query data on your terms, using either serverless on-demand or provisioned resources—at scale. It brings these two worlds together with a unified experience to ingest, prepare, manage, and serve data for immediate BI and machine learning needs.

Apache Kudu

Apache Kudu

A new addition to the open source Apache Hadoop ecosystem, Kudu completes Hadoop's storage layer to enable fast analytics on fast data.

AWS Glue

AWS Glue

A fully managed extract, transform, and load (ETL) service that makes it easy for customers to prepare and load their data for analytics.

Related Comparisons

Bootstrap
Materialize

Bootstrap vs Materialize

Laravel
Django

Django vs Laravel vs Node.js

Bootstrap
Foundation

Bootstrap vs Foundation vs Material UI

Node.js
Spring Boot

Node.js vs Spring-Boot

Liquibase
Flyway

Flyway vs Liquibase