Need advice about which tool to choose?Ask the StackShare community!

Airflow

1.6K
2.7K
+ 1
126

Airflow vs Storm: What are the differences?

Airflow vs Storm: Key Differences

Airflow and Storm are both widely used open-source systems for processing and managing large volumes of data. While they share some similarities, there are several key differences between the two.

  1. Processing Model: Airflow follows a batch processing model, where jobs are executed at predefined intervals. It provides a flexible and customizable workflow scheduling mechanism, supporting the execution of complex data pipelines with dependencies. On the other hand, Storm follows a real-time stream processing model, allowing for continuous processing of data in real-time. It is designed to handle high-velocity, event-driven data streams with low latency, making it suitable for applications that require fast data processing.

  2. Event-Driven vs Time-Driven: Storm is event-driven, meaning it processes data as soon as it becomes available. It supports high-velocity, low-latency processing by providing a distributed and fault-tolerant processing framework. In contrast, Airflow is time-driven, where jobs are scheduled to run periodically based on predefined schedules. It focuses more on orchestrating and managing workflows, enabling the execution of complex data pipelines.

  3. Data Processing Paradigm: Airflow primarily focuses on batch processing and supports various data processing paradigms, including batch, streaming, and machine learning. It provides a rich set of tools and functionalities for workflow management, task scheduling, and dependency tracking. Storm, on the other hand, is designed specifically for real-time stream processing. It provides a distributed and fault-tolerant stream processing engine with low-latency processing capabilities.

  4. Language Support: Airflow enables developers to write data pipelines using Python. It provides a Python-based interface for defining workflows, task dependencies, and data processing logic. Storm, on the other hand, supports multiple programming languages, including Java, Python, and Clojure. This allows developers to write stream processing topologies in the language of their choice.

  5. Scalability and Fault-Tolerance: Airflow is highly scalable and can handle large-scale data processing tasks by leveraging distributed computing resources. It provides fault-tolerance through task retries and failure handling mechanisms. Storm, on the other hand, is designed to be highly scalable and fault-tolerant out of the box. It distributes the processing across a cluster of machines and provides automatic failover and recovery.

  6. Community and Ecosystem: Airflow has a thriving open-source community and a growing ecosystem of plugins and extensions. It is widely used and has extensive documentation and community support. Storm, on the other hand, has a smaller community compared to Airflow. It still has active development and maintenance but may have a slightly smaller ecosystem of plugins and extensions.

In Summary, Airflow and Storm differ in their processing models, with Airflow focusing on batch processing and workflow management, while Storm excels in real-time stream processing. They also differ in their data processing paradigms, language support, scalability, fault-tolerance, and community ecosystem.

Advice on and Airflow
Needs advice
on
AirflowAirflowLuigiLuigi
and
Apache SparkApache Spark

I am so confused. I need a tool that will allow me to go to about 10 different URLs to get a list of objects. Those object lists will be hundreds or thousands in length. I then need to get detailed data lists about each object. Those detailed data lists can have hundreds of elements that could be map/reduced somehow. My batch process dies sometimes halfway through which means hours of processing gone, i.e. time wasted. I need something like a directed graph that will keep results of successful data collection and allow me either pragmatically or manually to retry the failed ones some way (0 - forever) times. I want it to then process all the ones that have succeeded or been effectively ignored and load the data store with the aggregation of some couple thousand data-points. I know hitting this many endpoints is not a good practice but I can't put collectors on all the endpoints or anything like that. It is pretty much the only way to get the data.

See more
Replies (1)
Gilroy Gordon
Solution Architect at IGonics Limited · | 2 upvotes · 263.5K views
Recommends
on
CassandraCassandra

For a non-streaming approach:

You could consider using more checkpoints throughout your spark jobs. Furthermore, you could consider separating your workload into multiple jobs with an intermittent data store (suggesting cassandra or you may choose based on your choice and availability) to store results , perform aggregations and store results of those.

Spark Job 1 - Fetch Data From 10 URLs and store data and metadata in a data store (cassandra) Spark Job 2..n - Check data store for unprocessed items and continue the aggregation

Alternatively for a streaming approach: Treating your data as stream might be useful also. Spark Streaming allows you to utilize a checkpoint interval - https://spark.apache.org/docs/latest/streaming-programming-guide.html#checkpointing

See more
Get Advice from developers at your company using StackShare Enterprise. Sign up for StackShare Enterprise.
Learn More
Pros of Airflow
  • 51
    Features
  • 14
    Task Dependency Management
  • 12
    Beautiful UI
  • 12
    Cluster of workers
  • 10
    Extensibility
  • 6
    Open source
  • 5
    Complex workflows
  • 5
    Python
  • 3
    Good api
  • 3
    Apache project
  • 3
    Custom operators
  • 2
    Dashboard
Cons of Airflow
  • 2
    Observability is not great when the DAGs exceed 250
  • 2
    Running it on kubernetes cluster relatively complex
  • 2
    Open source - provides minimum or no support
  • 1
    Logical separation of DAGs is not straight forward

What is Airflow?

Use Airflow to author workflows as directed acyclic graphs (DAGs) of tasks. The Airflow scheduler executes your tasks on an array of workers while following the specified dependencies. Rich command lines utilities makes performing complex surgeries on DAGs a snap. The rich user interface makes it easy to visualize pipelines running in production, monitor progress and troubleshoot issues when needed.

Need advice about which tool to choose?Ask the StackShare community!

Jobs that mention and Airflow as a desired skillset
What companies use Airflow?
See which teams inside your own company are using Airflow or undefined.
Sign up for StackShare EnterpriseLearn More

Sign up to get full access to all the companiesMake informed product decisions

What tools integrate with Airflow?

Blog Posts

What are some alternatives to and Airflow?
Luigi
It is a Python module that helps you build complex pipelines of batch jobs. It handles dependency resolution, workflow management, visualization etc. It also comes with Hadoop support built in.
Apache NiFi
An easy to use, powerful, and reliable system to process and distribute data. It supports powerful and scalable directed graphs of data routing, transformation, and system mediation logic.
Jenkins
In a nutshell Jenkins CI is the leading open-source continuous integration server. Built with Java, it provides over 300 plugins to support building and testing virtually any project.
AWS Step Functions
AWS Step Functions makes it easy to coordinate the components of distributed applications and microservices using visual workflows. Building applications from individual components that each perform a discrete function lets you scale and change applications quickly.
Pachyderm
Pachyderm is an open source MapReduce engine that uses Docker containers for distributed computations.
See all alternatives