r/apacheflink • u/jasper-lowther-0 • 19d ago
Flink vs Spark for heavy data processing?
Have been looking into Flink... for larger data processing workloads, particularly jobs involving heavy joins, aggregations, and sorting. Not sure where Flink starts making more sense than Spark outside of real-time streaming.
Spark performance can get messy with shuffles, spills and skew. Been looking at databricks photon and dualbird for Spark acceleration but wondering if moving certain workloads to Flink is worth considering instead of trying to speed up Spark.
Anyone running both in production? Any noticeable differences in execution time, resource usage, or operational overhead for batch workloads!!
2
Upvotes
1
u/sethu-27 18d ago
How do your source and sink integrations look?
With Flink, cluster deployment and management are manageable, although operationally it can be a little tedious.
Beyond that, Flink’s Table API and SQL make a lot of transformations relatively straightforward and almost codeless. For more complex or custom transformations, you can always extend the pipeline using Java or Scala.
One thing I’d highlight is that Flink isn’t necessarily a drop-in replacement for Spark, especially for traditional batch workloads. Its real strength is stateful stream processing, low-latency pipelines, and continuous processing. However, with bounded data, Flink can also handle batch workloads.
I’d be interested in comparing both on workloads involving large joins, aggregations, and data skew, particularly around shuffle overhead, state management, memory utilization, and execution time.