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. Apache Flink vs Apache Spark vs Presto

Apache Flink 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
Apache Flink
Apache Flink
Stacks534
Followers879
Votes38
GitHub Stars25.4K
Forks13.7K

Apache Flink vs Apache Spark vs Presto: What are the differences?

Introduction

Apache Flink, Apache Spark, and Presto are all popular distributed computing frameworks used for processing large-scale data. Each framework has its own unique features and characteristics that differentiate it from the others. In this article, we will explore the key differences between Apache Flink, Apache Spark, and Presto.

  1. Data Processing Model:

    • Apache Flink offers both batch and stream processing capabilities in a single unified model. It supports event time processing and provides support for event-driven applications.
    • Apache Spark also supports both batch and stream processing, but it follows a micro-batch model for stream processing, which can introduce a small amount of latency. It focuses more on in-memory processing and provides libraries for machine learning and graph processing.
    • Presto, on the other hand, is primarily designed for interactive query processing on large datasets. It doesn't have built-in support for stream processing or machine learning, but it excels at ad-hoc queries and fast data retrieval.
  2. Fault Tolerance and Recovery:

    • Apache Flink provides strong fault tolerance with exactly-once semantics. It uses a distributed snapshotting mechanism to ensure consistent state recovery in case of failures.
    • Apache Spark offers fault tolerance as well but with at-least-once semantics. It uses RDD (Resilient Distributed Datasets) to recover lost data partitions in case of failures.
    • Presto doesn't provide built-in fault tolerance. It assumes data source-level fault tolerance and relies on the underlying storage system for data recovery.
  3. Execution Engine:

    • Apache Flink has its own execution engine that works on data streams directly, providing low-latency processing and dynamic resource allocation.
    • Apache Spark uses a general-purpose execution engine that works on RDDs, which introduces a slight overhead and latency compared to Flink's native stream processing engine.
    • Presto also uses a general-purpose execution engine, but it focuses more on query optimization and parallel processing to achieve high query performance.
  4. Connectivity and Integration:

    • Apache Flink has built-in connectors to various data sources, including file systems, message queues, and databases. It also supports integration with Apache Kafka for event streaming.
    • Apache Spark has a large ecosystem of connectors and libraries that enable seamless integration with various data sources, machine learning algorithms, and visualization tools.
    • Presto provides connectors for querying data stored in various databases, data lakes, and file systems. It can integrate with external systems like Hive, Hadoop, and Kafka.
  5. Real-time Processing:

    • Apache Flink is designed for real-time stream processing and provides low-latency, event-driven processing capabilities. It supports event time processing, windowing, and stateful computations.
    • Apache Spark's micro-batch model for stream processing introduces some latency, making it less suitable for low-latency, event-driven applications compared to Flink.
    • Presto is not designed for real-time processing and is more suitable for interactive, ad-hoc queries on large datasets.
  6. Ease of Use and Development:

    • Apache Flink provides a rich and easy-to-use API for both batch and stream processing. It has good documentation and a supportive community. However, it may have a steeper learning curve compared to Spark or Presto.
    • Apache Spark has a user-friendly API and provides high-level abstractions that simplify development. It has a large community and extensive documentation, making it easier for developers to get started.
    • Presto also has a user-friendly SQL-like interface for querying data, which makes it accessible to users familiar with SQL. It has a smaller community compared to Flink or Spark but is gaining popularity.

In summary, Apache Flink excels in real-time stream processing, supports event-driven applications, and offers strong fault tolerance with exactly-once semantics. Apache Spark focuses on in-memory processing, provides libraries for machine learning and graph processing, and has a larger ecosystem. Presto specializes in interactive query processing, fast data retrieval, and supports ad-hoc queries on large datasets.

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, Apache Flink

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
Krishna Chaitanya
Krishna Chaitanya

Head of Technology at Adonmo

Jun 27, 2021

Review

For such a more realtime-focused, data-centered application like an exchange, it's not the frontend or backend that matter much. In fact for that, they can do away with any of the popular frameworks like React/Vue/Angular for the frontend and Go/Python for the backend. For example uniswap's frontend (although much simpler than binance) is built in React. The main interesting part here would be how they are able to handle updating data so quickly. In my opinion, they might be heavily reliant on realtime processing systems like Kafka+Kafka Streams, Apache Flink or Apache Spark Stream or similar. For more processing heavy but not so real-time processing, they might be relying on OLAP and/or warehousing tools like Cassandra/Redshift. They could have also optimized few high frequent queries using NoSQL stores like mongodb (for persistance) and in-memory cache like Redis (for further perfomance boost to get millisecond latencies).

53.8k views53.8k
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
Apache Flink
Apache Flink

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

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.

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
-
Hybrid batch/streaming runtime that supports batch processing and data streaming programs.;Custom memory management to guarantee efficient, adaptive, and highly robust switching between in-memory and data processing out-of-core algorithms.;Flexible and expressive windowing semantics for data stream programs;Built-in program optimizer that chooses the proper runtime operations for each program;Custom type analysis and serialization stack for high performance
Statistics
GitHub Stars
42.2K
GitHub Stars
-
GitHub Stars
25.4K
GitHub Forks
28.9K
GitHub Forks
-
GitHub Forks
13.7K
Stacks
3.1K
Stacks
394
Stacks
534
Followers
3.5K
Followers
1.0K
Followers
879
Votes
140
Votes
66
Votes
38
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
    Unified batch and stream processing
  • 8
    Out-of-the box connector to kinesis,s3,hdfs
  • 8
    Easy to use streaming apis
  • 4
    Open Source
  • 2
    Low latency
Integrations
No integrations available
PostgreSQL
PostgreSQL
Kafka
Kafka
Redis
Redis
MySQL
MySQL
Hadoop
Hadoop
Microsoft SQL Server
Microsoft SQL Server
YARN Hadoop
YARN Hadoop
Hadoop
Hadoop
HBase
HBase
Kafka
Kafka

What are some alternatives to Apache Spark, Presto, Apache Flink?

Amazon Athena

Amazon Athena

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.

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