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 Presto

Apache Flink vs Presto

OverviewDecisionsComparisonAlternatives

Overview

Presto
Presto
Stacks394
Followers1.0K
Votes66
Apache Flink
Apache Flink
Stacks534
Followers879
Votes38
GitHub Stars25.4K
Forks13.7K

Apache Flink vs Presto: What are the differences?

Introduction

Apache Flink and Presto are both powerful data processing engines that are widely used in the industry. While they share some similarities, there are several key differences between the two.

  1. Architecture: Apache Flink is designed as a stream processing engine that also supports batch processing, while Presto is primarily a distributed SQL query engine. Flink uses a master/worker architecture, where the master node coordinates the execution of the tasks, while Presto follows a coordinator/worker architecture, where the coordinator node is responsible for query planning and coordination.

  2. Data Processing Model: Flink operates on stream data and has built-in support for event time and out-of-order processing. It provides stateful processing capabilities, fault tolerance, and exactly-once processing guarantees. On the other hand, Presto is optimized for in-memory batch processing and interactive queries over large datasets, without focusing on stream processing capabilities.

  3. Integration with Ecosystem: Flink extensively integrates with various big data frameworks and storage systems, such as Apache Kafka, Apache Hadoop, and Apache Cassandra. It can also be used with Apache Beam for unified batch and stream processing. Presto, on the other hand, has rich connectors for data sources like Hive, HDFS, MySQL, and other common databases.

  4. Language Support: Flink provides support for both Java and Scala programming languages for writing data processing logic. It also offers a SQL-like API called Table API and a higher-level SQL-oriented API called SQL queries. In contrast, Presto primarily uses SQL for querying data, and it does not provide native support for programming languages like Java or Scala.

  5. Performance: Flink is known for its low latency and high throughput processing. It achieves this by leveraging features like pipelined execution, caching, and efficient memory management. On the other hand, Presto focuses on scalability and supports parallel execution of queries against multiple distributed data sources.

  6. Community and Adoption: Flink has a vibrant and growing community and is widely adopted in the big data ecosystem. It is backed by the Apache Software Foundation, and there are many companies using it in production for real-time data processing. Presto also has a strong community and is used by companies like Facebook, Airbnb, and Netflix for interactive analytics.

In summary, Apache Flink and Presto differ in their architecture, data processing model, integration with the ecosystem, language support, performance characteristics, and community adoption. While both are powerful tools for data processing, the choice between them depends on the specific use case and requirements of the project.

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

Presto
Presto
Apache Flink
Apache Flink

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.

-
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
-
GitHub Stars
25.4K
GitHub Forks
-
GitHub Forks
13.7K
Stacks
394
Stacks
534
Followers
1.0K
Followers
879
Votes
66
Votes
38
Pros & Cons
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
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 Presto, Apache Flink?

Apache Spark

Apache Spark

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.

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.

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