Skip to content
Reviewed by Siddharth Sharma Nov 18, 2026

Home › Guides › Apache Flink

Tech Explained · 2026

Apache Flink in 2026: How Stream Processing Works, Flink vs Spark Structured Streaming and 5 Steps to Your First Pipeline

Apache Flink is an open source engine for stateful computation over unbounded data streams, processing each event as it arrives instead of in batches. It handles event time, late arrivals and exactly-once state, and the current 2.3 release line now runs AI agents too. Teams pick it for sub-second pipelines where ordering matters.

18 November 202610 min readBy the 360 Digital Transformation Editorial Team
Key takeaways
  • Flink is about event time, not speed. Correct arithmetic on events that arrive out of order is the real edge.
  • The latency argument weakened in 2026. Databricks' own benchmark shows Spark 4.1 Real-Time Mode beating Flink 1.18 on simple stateful work.
  • You pay per compute unit, not per row. AWS lists USD 0.11 per KPU-hour, so one always-on job starts near USD 500 a month.
  • Flink Agents 0.4.0 is preview, but real. Released 30 October 2026, it runs agents as long-lived jobs with checkpointed state.
  • Indian hiring is narrow and senior. One board listed roughly 120 Flink roles in Bengaluru in late October 2026, asking 4 to 12 years.

Your nightly job reconciles yesterday's claims perfectly. Then the fraud team asks why a duplicate motor claim sat untouched for eleven hours, and the answer is that your pipeline wakes at 2am.

Apache Flink runs continuous computations over data in motion. A job is a graph of operators: sources read events, operators transform and remember things about them, sinks write results out. It never finishes. A bounded dataset, in Flink's model, is just a stream that happens to stop.

Apache Flink at a glance

The four numbers worth knowing before you open the docs.

2.3.0
Current release line, June 2026
0.4.0
Flink Agents, still preview
$0.11
Per KPU-hour on AWS, US East
Java 17
Default runtime since Flink 2.0

Apache Flink downloads page and the AWS Managed Service for Apache Flink pricing page, checked 18 November 2026.

Event time, watermarks and the stragglers

A claim is submitted at 14:02 from a phone on a patchy connection in Nashik. It reaches your Kafka topic at 14:19. Flink puts it in the 14:00 bucket using watermarks, a running estimate of how far event time has progressed that decides when a window can close. Set an allowed lateness of 60 seconds and Flink reopens and corrects that window instead of dropping the record.

Keyed state is the feature you are really buying

Call keyBy(policy_id) and every event for one policy lands on the same task slot, which keeps a private, checkpointed piece of memory for that key. Hold a running count, the last five claim amounts and a fraud score across millions of keys, and the engine restores all of it when a node dies. Writing that against Redis is a month of work and a permanent source of bugs.

One event through a Flink job

State lives with the operator; checkpoints are what make it survivable.

Dataflow of a single claim event through an Apache Flink job A claim event is appended to a Kafka topic, passed to a watermark assigner that tracks event time, partitioned by policy id into keyed state, aggregated in a five minute event-time window, and emitted to an Iceberg table. The window operator checkpoints state to object storage and restores from it on restart. Kafka topic claim_events Watermark assigner event time, 30s skew keyBy(policy_id) one slot per key Event-time window 5 min, 60s lateness Sink Iceberg claims_agg Checkpoint store ADLS or S3 append route state close every 60s restore

Flink DataStream and Table API documentation, checked 18 November 2026.

Every 60 seconds the job manager injects a barrier, and each operator snapshots state to object storage as it passes. Kill a task manager and Flink restarts from the last snapshot, rewinding Kafka offsets to match: exactly-once without reconciliation logic. Mind the upgrade path. Flink 2.0 removed the DataSet API, both Scala APIs and the legacy sink interfaces.

For years the flink vs spark structured streaming answer was simple: Spark did micro-batches at one to three seconds, Flink did per-record streaming in single-digit milliseconds. Spark 4.1's Real-Time Mode changed that.

Databricks published a benchmark running 10,000 records per second for 30 minutes against Flink 1.18 on AWS Managed Service for Apache Flink. Reported p99: 3 ms versus 3 ms stateless, 14 ms Spark versus 45 ms Flink on a stateful aggregation, 9 ms versus 95 ms on a stream-static join. Read it with your eyes open. Databricks sells Spark, the test used Flink 1.18 rather than a 2.x build, and it compares its worst Spark run with its best Flink run.

Criterion Apache Flink 2.3 Spark Structured Streaming 4.1
Execution model Record at a time; a batch is a bounded stream Micro-batch by default, Real-Time Mode for low latency
p99, stateful aggregation 45 ms 14 ms
p99, stream-static join 95 ms 9 ms
Pattern matching on sequences Built-in CEP library and MATCH_RECOGNIZE in SQL No direct equivalent
Event-time windows Tumbling, sliding and session, all first class Narrower operator coverage in Real-Time Mode
Agent runtime Flink Agents 0.4.0, preview No equivalent sub-project

Flink still wins on session windows, stream to stream outer joins, and spotting that one policy saw a quote, then a claim, then an address change inside 20 minutes. In Spark that is a hand-rolled state machine. In Flink SQL it is a MATCH_RECOGNIZE clause. The equivalent Microsoft modules sit in the DP-700 syllabus 360DT's live Microsoft Fabric data engineering program covers.

Also read: What Is Apache Spark? How It Works, Spark vs Hadoop and Your First PySpark Job in 2026.

Apache Flink Agents is a sub-project, proposed as FLIP-531 in 2025 and backed publicly by Alibaba Cloud, Ververica, Confluent and LinkedIn, that runs AI agents as Flink jobs. Version 0.4.0 landed on 30 October 2026, labelled a preview.

What makes it interesting has nothing to do with speed. Every other agent framework assumes a request arrives and an answer goes back. An agent on Flink is event-driven and long-lived: it wakes when a claim hits a topic, carries checkpointed state across invocations, and inherits Flink's fault tolerance. The 0.4.0 notes add sub-agents that delegate to other agents, a Decision Model API for risk scoring, and triggers that fire on event content rather than event type.

Go back to the duplicate claim. A request-response agent cannot help, because nobody is asking it anything. The useful design watches the stream, holds 30 days of per-policy context in keyed state, calls a model only when a trigger fires, and writes a scored record to a human queue. Designing the tool boundaries for that call is what the Claude developer exam tests, covered in 360DT's CCDV-F prep course, with the patterns around it in the AI Engineer course.

Where this goes wrong
  • Preview means preview. The 0.4.0 notes say some previously valid configuration keys are now rejected outright. Build in November, upgrade in March, expect breakage.
  • Model calls are slow and your operator is not. A synchronous LLM call inside an operator stalls the pipeline. Use the async paths and set a timeout you can defend.

Streaming bills are shaped differently from batch bills. A batch job costs money when it runs. A streaming job costs money always, because never stopping is the point. AWS adds USD 0.10 per GB-month of application storage, 50 GB per KPU.

How you run it Listed unit price One always-on job The catch
AWS Managed Service for Apache Flink USD 0.11 per KPU-hour, US East, billed per second 6 KPUs for a month is about USD 482 of compute One extra KPU per application for orchestration, ten minute minimum charge
Confluent Cloud for Apache Flink USD 0.21 per CFU-hour, calculated per minute 5 CFUs running continuously is roughly USD 766 At least one CFU-minute per statement, plus a regional multiplier
Self-managed on Kubernetes Your node bill plus your time Three 4 vCPU nodes plus an operator You own upgrades, savepoint hygiene and the 2am page

A worked example you can price out

An illustrative scenario, not a real client. A mid-size Indian general insurer has a two-person data team. Motor claims arrive at about 400 events a minute, spiking to 2,000 in the evening, and the business wants duplicate detection inside five minutes. One KPU is 1 vCPU and 4 GB, so five processing KPUs plus the mandatory orchestration KPU covers it: roughly USD 512 a month at list prices.

Then comes the part that decides the project. Those two engineers already maintain nine batch pipelines, and a streaming job adds a new deployment model, savepoint discipline on every change, and a real on-call rotation for a team of two. At that headcount I would put the fraud rule in a managed service and keep Flink out, not because Flink is worse but because the team cannot carry it. The engine is rarely the constraint. The rota is.

Correctness on out-of-order events. Mobile apps, IoT sensors, retail terminals on weak networks: anything where event time and arrival time disagree by minutes. A micro-batch engine makes you write the lateness logic yourself.

Pattern detection across a sequence. Fraud, churn signals, equipment failure precursors. You are not aggregating; you want A then B then not-C inside a time bound.

Three cases where it is the wrong answer: dashboards refreshing every 15 minutes, which want a scheduled run and a Power BI and PL-300 skill set; stateless log enrichment, cheaper in a serverless function; and change data capture into a lakehouse.

Also read: Change Data Capture in 2026: How CDC Works, CDC vs Batch ETL and the Real Cost of Zero-ETL Mirroring.

Yes, eventually. No, not now, if you are still chasing your first data engineering role.

What the Flink job market looks like in India

Real demand, concentrated in senior roles and a handful of cities.

~120
Flink roles listed in Bengaluru on one job board in late October 2026
16
Flink vacancies listed for Mumbai on a tech job board in September 2026
4 to 12
Years of experience asked for in the Flink postings read today

Job board snapshots, directional rather than audited; read 18 November 2026.

The postings say more than the counts. A Cisco role in Bengaluru from October 2026 asks 4 to 8 years with Spark and Flink together; a Splunk role in Bangalore asks 8 to 12 years with Flink and Kafka. Nobody hires for Flink alone.

So the sequence that pays is unromantic. Get fluent in SQL and dimensional modelling, then build and test real pipelines on one lakehouse platform, which in India means Microsoft Fabric or Databricks, and prove it with a credential: DP-700 through a structured DP-700 and DP-900 program, or a cloud exam from the certifications overview. Then add Flink, and the operations through the AWS DevOps track or its Azure equivalent.

Live course

Flink is your fourth skill. Build the second one properly first.

Live online·Sat–Sun, 8–11 PM IST·50+ hrs·Rs 24,999

Eight weeks of live weekend classes covering Microsoft Fabric data engineering for the DP-700 certification, with DP-900 fundamentals included. Hands-on projects, mentor support and placement guidance, so the pipelines on your CV are ones you built and tested yourself.

Explore the course
Microsoft Fabric Data Engineer Course (DP-700 + DP-900 + Claude)

1. Run a cluster locally. Download the 2.3.0 binary, run ./bin/start-cluster.sh, open localhost:8081. The checkpoint and backpressure views are where debugging happens.

2. Write the job in Flink SQL, not Java. In ./bin/sql-client.sh, declare the topic as a table with a WATERMARK FOR event_time clause set 30 seconds behind. A correct windowed aggregation takes about 15 lines.

3. Break it deliberately. Send an event timestamped five minutes in the past, after the window closed, and watch it get dropped. Now set an allowed lateness and watch the window reopen and correct itself. That teaches event time better than any article, this one included.

4. Enable checkpointing, then kill a task manager. Set a 60 second interval and kill the process mid-stream. The job should resume with no duplicate or missing rows. If it does not, your sink is not transactional.

5. Take a savepoint and change the code. Run ./bin/flink savepoint <jobid>, stop, edit, restart from the savepoint. That is how you ship a change to a stateful job without losing state, and most candidates have never done it once.

Point the output at a dashboard and you have a portfolio project nobody else submits. The free webinars cover comparable builds.

If event ordering affects money at your shop, or events arrive minutes out of order, or you need pattern detection across a sequence, Flink is the right engine and the benchmark noise does not change that. For plain Kafka-in, aggregate, Kafka-out work, Spark gets you there with a deeper hiring pool and one less system to run. The trade-off I accept: Spark's operator coverage in Real-Time Mode is narrower, and I would still take that over handing a two-person team a second distributed system. Start with the Microsoft Fabric data engineering course and come back for Flink when a real job puts the problem on your desk.

Frequently asked questions

What is Apache Flink used for?

Apache Flink runs continuous computations over data in motion: fraud detection, real-time aggregation, stream enrichment and pattern matching across event sequences. Its distinguishing use case is any workload where events arrive out of order and results must still be correct by event time.

Is Apache Flink better than Spark Structured Streaming in 2026?

Not universally. Databricks' benchmark shows Spark 4.1 Real-Time Mode beating Flink 1.18 on simple stateful pipelines, though it comes from a vendor that sells Spark. Flink stays stronger on session windows, stream to stream outer joins and complex event processing.

How much does it cost to run a small Flink job in production?

AWS lists USD 0.11 per KPU-hour in US East, so a six KPU job running all month is about USD 482 of compute plus roughly USD 30 of storage. Confluent Cloud lists USD 0.21 per CFU-hour, putting a five CFU job near USD 766 a month.

Are Apache Flink Agents ready for production use?

Not yet. The 0.4.0 release of 30 October 2026 is labelled a preview, and it already rejects some configuration keys that previously worked. Prototype on it if you have an event-driven agent use case, but keep it out of systems you cannot redeploy quickly.

Are there Apache Flink jobs in India for freshers?

Very few. Job board snapshots from late 2026 show Flink listings concentrated in Bengaluru, asking roughly 4 to 12 years, usually alongside Spark, Kafka and a cloud platform. Freshers get hired on SQL, Python and one lakehouse platform.

Should I learn Flink or Microsoft Fabric first?

Fabric first, by a wide margin, if your goal is a job in India. Most Indian data engineering listings ask for Fabric or Databricks plus a Microsoft or cloud certification. Flink raises your ceiling once you are already in the field.

About this guide. 360 Digital Transformation is an Anthropic Partner and a Microsoft Authorized Training Partner. Other certification bodies, vendors and employers named here are not affiliated with us. Product features and pricing change often; figures cited were checked on 18 November 2026.

Learn it live with 360 Digital Transformation

Turn this guide into a skill employers can see

Live weekend cohortEMI available

Microsoft Fabric Data Engineer Course (DP-700 + DP-900 + Claude)

Rs. 24,999Rs. 31,249 Save 20%

Tools and platforms you work with

  • Microsoft Fabric
  • Apache Spark and PySpark
  • Delta Lake
  • T-SQL
  • Python
  • Fabric Notebooks
  • Git
  • GitHub
Add bonus modules
See the syllabus and batch dates

Other live courses on this career path