Today's Deep-Dive: Kestra
Ep. 230

Today's Deep-Dive: Kestra

Episode description

This episode discusses Kestra, an open-source workflow automation platform designed to simplify complex operations and streamline automation across various systems. Kestra’s declarative approach and intuitive visual interface make it accessible to both seasoned developers and beginners. It handles both scheduled and event-driven workflows, abstracting away complex underlying processes and allowing users to define what needs to happen rather than scripting every detail. The platform features a comprehensive plugin ecosystem, enabling connections to a wide range of systems, databases, cloud services, and APIs, making it highly versatile. Kestra benefits a broad range of users, from data engineers to marketing operations, by improving productivity, efficiency, and reducing operational costs, and it offers pre-built templates (blueprints) to expedite common tasks.

Gain digital sovereignty now and save costs

Let’s have a look at your digital challenges together. What tools are you currently using? Are your processes optimal? How is the state of backups and security updates?

Digital Souvereignty is easily achived with Open Source software (which usually cost way less, too). Our division Safeserver offers hosting, operation and maintenance for countless Free and Open Source tools.

Try it now for 1 Euro - 30 days free!

Download transcript (.srt)
0:00

Welcome back to the deep dive.

0:01

This is your shortcut, really, to understanding complex topics

0:05

without getting completely lost in all the details.

0:07

Now, before we jump into today's subject, which

0:09

I think is fascinating, we want to give a huge shout out

0:12

to Safe Server.

0:13

They actually take care of the hosting for the software

0:16

we're talking about today.

0:17

They provide really robust infrastructure and great support

0:20

for digital transformation.

0:22

You can find out more about what they do at www.safeserver.de.

0:27

All right, let's dive right in.

0:29

So we live in this hybrid-connected world, right?

0:32

And we're just bombarded, I mean,

0:34

constantly with this massive amount of information,

0:36

trying to stay genuinely well-informed about the latest

0:39

tech or how industries are changing.

0:41

Well, without getting totally overwhelmed,

0:42

it feels like a full-time job.

0:44

And that's exactly why we do the deep dive

0:46

to cut through all that noise for you.

0:47

We pull out the most important bits, the key insights,

0:50

so you can grasp these tricky subjects quickly and clearly.

0:53

Today, we're zoning in on Kistra.

0:54

It's an open source, workful automation platform.

0:56

Our mission today, we're going to unpack Kistra,

0:59

break it down so that really anyone,

1:01

whether you're a seasoned developer

1:03

or maybe just starting to explore automation,

1:05

can get what it is, why it's actually so powerful,

1:07

and crucially, how it's making complex operations

1:10

much simpler for teams all over the world.

1:13

Yeah, and what's really interesting about Kistra, I think,

1:15

is how it fundamentally rethinks the whole orchestration

1:19

and scheduling of code.

1:20

It's really designed to bring some order to that chaos

1:24

we often see, streamlining automation

1:26

across loads of different systems.

1:28

And as we'll get into, its declarative approach,

1:31

combined with this, well,

1:32

remarkably intuitive visual interface,

1:34

it's really key to making this powerful tech

1:37

genuinely accessible, much more so than

1:40

many traditional tools.

1:41

Okay, let's unpack that right from the start.

1:44

Workflow automation, orchestration,

1:46

I mean, these terms can sound a bit jargony, can't they?

1:49

But let's think about a common pain point,

1:51

that feeling, you know, when a critical report

1:52

depends on like five different systems,

1:54

or a key business process means someone has to

1:56

manually kick off scripts, check logs,

1:59

and just sort of hope nothing breaks.

2:01

We've all been there, right?

2:02

Absolutely.

2:03

So what is this workflow automation exactly?

2:06

And why can't we just string things together manually

2:09

or use simpler tools?

2:11

What's the chaos that needs something like Kestra?

2:13

That's a really good way to put it,

2:14

that chaos you mentioned.

2:16

That's precisely what Kestra was built to tame.

2:19

See, historically, when you needed to automate

2:21

a sequence of tasks, let's say,

2:24

pulling data from a database,

2:25

doing some transformation,

2:27

then loading it somewhere else, like an analytics tool,

2:30

we'd often end up stitching together custom scripts,

2:32

maybe using cron jobs for scheduling,

2:34

or perhaps older, more complex tools like Apache Airflow.

2:37

Or even simpler, sometimes quite limited services

2:39

like Zapier or NNN for lighter tasks.

2:43

The problem is, as soon as things get even slightly complex,

2:48

multiple dependencies, proper error handling, retries,

2:51

different systems need to talk, version control

2:53

may be needing real-time responses.

2:55

Those approaches, they become brittle, fast,

2:58

they're hard to monitor, a nightmare to scale reliably.

3:01

Kestrel comes in as an event-driven

3:03

declarative orchestration platform

3:05

to basically solve that headache.

3:07

Its core purpose is making both scheduled workflows,

3:09

like that daily report you mentioned,

3:11

and event-driven workflows, like reacting instantly

3:13

when a new customer signs up,

3:15

making those easy and, really importantly, resilient.

3:18

It sort of abstracts away a lot of the tricky underlying stuff,

3:21

letting you define what needs to happen,

3:23

rather than having to manually script

3:25

how to handle every single failure or dependency.

3:27

Okay, that makes a lot of sense,

3:28

bringing order to that potential spaghetti of tasks.

3:33

And here's where I think it gets really interesting,

3:35

especially for someone who maybe doesn't live

3:37

and breathe code day in, day out.

3:40

Kestrel has this core idea.

3:42

Everything as code and from the UI.

3:44

Now, that sounds almost contradictory.

3:48

Like, on one hand, you've got the rigor of code

3:51

for developers, but then you're saying non-coders

3:53

can use the UI.

3:55

How does that actually bridge the gap?

3:56

Is there a tension there or is it seamless?

3:59

It's actually a really brilliant fusion

4:01

and it pretty much eliminates that tension you might expect.

4:04

So when we talk about a declarative YAML interface,

4:06

think of it like writing a simple recipe.

4:08

You're describing what you want the final dish to be,

4:10

not giving super detailed step-by-step instructions

4:13

for every single chop and stir.

4:15

You say, I want to extract data here,

4:17

transform it like this, then load it there.

4:20

Kestra handles the how,

4:22

including the tricky bits like error handling, retries,

4:25

managing the state of the workflow.

4:26

In this declarative way, it's not just simpler,

4:29

it's actually way more robust.

4:31

Your workflow is defined precisely

4:33

in a format humans can read,

4:35

which makes it easier to version control, test,

4:37

ensure it runs the same way everywhere.

4:39

It's like a blueprint.

4:40

You write these workflows using Kestra's built-in code editor

4:43

right there for the YAML.

4:45

But, and this is the magic bit that bridges the gap,

4:47

you can also build and visualize the exact same workflow

4:50

directly from the UI.

4:51

It's got drag and drop,

4:52

it has auto-completion to help you,

4:54

real-time checks to see if it makes sense.

4:56

And the truly seamless part,

4:58

when you drag a new task in the UI

5:00

or change a setting visually,

5:01

the underlying YAML code adjusts automatically, instantly.

5:06

So the core logic, the orchestration,

5:08

it's always managed declaratively in code,

5:10

even if you built it all by clicking and dragging.

5:12

This means, say, a data engineer could tweak some YAML,

5:15

and then maybe a business analyst

5:16

could visually check out, the flow makes sense.

5:19

It makes collaboration way easier.

5:20

Wow, okay.

5:21

And, yeah, to keep things proper,

5:23

it even has built-in Git integration.

5:26

So your UI built workflows,

5:28

still versioned, still managed,

5:30

like any other piece of code.

5:31

That really is a powerful combination.

5:34

It sounds like it makes creating things much easier,

5:36

but you still get all the benefits of managing it as code.

5:40

So, okay, if I'm someone looking

5:42

to start automating something, what are the basic terms?

5:45

The building blocks I need to get my head around in Kestra

5:48

to actually start building a workflow.

5:51

Give us the basics.

5:51

Absolutely, let's break down the main pieces

5:53

you'll work with, the fundamental thing,

5:54

the whole process of the recipe you wanna run,

5:57

that's called a flow.

5:58

A flow, got it.

5:59

Think of it as the complete automated sequence,

6:01

an entire data pipeline, maybe,

6:04

or a multi-step approval process.

6:06

Now, within that flow, each individual action,

6:09

each step, like run this Python script,

6:11

move that file, send an email, call an API, that's a task.

6:15

Okay, tasks are the steps in the flow.

6:16

Exactly, they're the specific ingredients

6:18

and instructions in your recipe.

6:20

Then you have triggers, they decide how your flow starts.

6:23

You've got scheduled triggers, pretty simple,

6:25

like setting an alarm clock, run this flow every hour

6:28

or every Tuesday at 3 p.m., whatever you need.

6:31

And crucially, Keystra is really strong

6:33

with event-driven triggers.

6:35

This lets your flow react instantly to something happening.

6:37

Maybe a new file appears in cloud storage

6:40

or a message pops up in a Kafka topic

6:42

or even a specific API call comes in.

6:44

Reactive, okay.

6:46

Yeah.

6:46

And for keeping things organized,

6:48

especially as you build more flows, you use namespaces.

6:51

They're basically like folders,

6:52

just ways to group related flows together,

6:55

keep things tidy.

6:56

And inputs and variables add flexibility.

6:59

They let you customize flows and tasks on the fly

7:01

so you can reuse the same flow

7:03

for slightly different situations

7:04

without copying everything.

7:05

Makes sense.

7:06

And finally, to see all this,

7:08

that intuitive UI we mentioned

7:09

gives you a live topology view.

7:11

Technically, it's a directed acyclic graph.

7:14

A DAG.

7:15

A DAG.

7:16

Think of it like a flow chart

7:17

or a roadmap for your workflow.

7:19

Each task is a box.

7:21

Arrows show how data moves and what depends on what.

7:24

It's super important because it ensures tasks

7:26

run on the right order,

7:27

avoids messy loops,

7:29

and lets you see dependencies at a glance.

7:31

Makes even really complex stuff

7:33

much easier to understand visually.

7:35

That DAG view sounds incredibly useful,

7:38

especially when things get complicated.

7:40

Now you mentioned one of Kestra's standout features

7:42

is its rich plugin ecosystem.

7:45

That sounds powerful.

7:46

When you say plugin ecosystem,

7:48

what kind of things can these plugins actually do?

7:50

How comprehensive is it?

7:51

Can it really connect to almost anything?

7:53

Oh, it really is comprehensive.

7:54

This is where Kestra's flexibility just shines.

7:57

It basically future-proofs your automation.

7:59

The plugin system means you can, first off,

8:01

run scripts in pretty much any language you like.

8:04

Python, Node.js, R, Go, Shell, Java, even just SQL,

8:08

whatever your team knows or what's best for the job.

8:11

And you can run them anywhere.

8:13

On the machine, Kestra is running on, sure,

8:14

but also on remote servers using SSH,

8:17

or scale out using containers with built-in Docker

8:19

and Kubernetes support.

8:21

Super versatile.

8:22

But the real power is connecting to other systems.

8:25

For instance, plugins let you extract and load data

8:27

from a huge range of sources.

8:29

We're talking traditional databases, Postgresql, MySlick,

8:32

Oracle NoSQL ones like MongoDB or Redis,

8:34

cloud storage like AWS S3, Google Cloud Storage,

8:38

Azure Blob Storage, countless APIs.

8:40

Wow.

8:41

So you're pulling data from some old legacy system

8:43

and mixing it with data from a modern cloud service.

8:45

Kestra handles that.

8:47

You can also set up flows to react to real-time events

8:49

from message systems like Kafka, RabbitMQ, Redis Streams,

8:53

or the big cloud ones, AWS SQS, Google PubSub,

8:56

Azure Event Hubs.

8:57

Imagine kicking off a fraud check instantly

9:00

when a new transaction message appears.

9:02

Yeah, powerful.

9:03

And it deeply integrates with the major clouds,

9:05

AWS, Google Cloud, Azure for everything,

9:10

managing servers, triggering serverless functions,

9:12

orchestrating data warehouses like Snowflake or Databricks,

9:16

and of course, keeping people informed.

9:18

There are tons of plugins for notifications,

9:20

sending messages to Slack, Teams, email,

9:22

even triggering alerts in PagerDuty

9:24

so the right people know if something needs attention.

9:27

Currently, there are over 600-plus plugins available,

9:30

ready to go.

9:31

Plus, users can build their own

9:32

or contribute new ones back to the community.

9:34

So yeah, the goal is really to connect

9:36

to virtually anything you're already using.

9:38

You're not locked in the one way of doing things.

9:40

That level of connection,

9:42

tying everything together like that,

9:43

it sounds incredibly valuable.

9:45

But okay, beyond just the tech specs,

9:47

what does this all actually mean for the teams,

9:49

the people using Kestra day-to-day?

9:51

What's the real impact they're seeing?

9:53

And who really benefits most?

9:56

Yeah, it translates into some really significant,

9:59

tangible benefits for a surprisingly wide range of people.

10:02

Kestra positions itself as being for every developer.

10:06

And that seems true.

10:08

Data engineers building pipelines,

10:09

software engineers orchestrating services or CICD,

10:13

even marketing ops folks automating campaigns,

10:15

platform engineers automating infrastructure.

10:18

It really does help unify teams,

10:20

breaks down those silos you sometimes see.

10:23

What really scans out in feedback is how often users

10:25

praise its simplicity and user experience.

10:28

You hear things like beginner-friendly, so easy to use,

10:30

fantastic web UI, extremely approachable and clear.

10:34

People often say it's much simpler to get going with

10:36

compared to alternatives like, say, Airflow or Prefect.

10:39

Right.

10:40

And that simplicity, it's not just nice to have,

10:42

it directly leads to faster time to value.

10:45

We see reports from companies saying they deliver in days

10:47

what once took weeks,

10:49

achieving things like 5x deployment speed.

10:51

That points to less time fighting the tool,

10:53

more time building the actual solution.

10:55

Definitely a plus.

10:56

And you see big jumps in productivity and efficiency.

11:00

Things like 10x faster workflow completion,

11:02

an 80% boost in team efficiency,

11:05

even a 75% reduction in operational cost

11:08

by automating stuff that was manual before.

11:10

It's also built for scalability.

11:12

It's proven to handle millions of workflows

11:14

in production environments

11:16

with over 400 million plus workflows executed

11:19

across its user base so it can handle serious load.

11:22

Plus, that flexibility and no vendor lock-in is key.

11:25

Write your logic in any language,

11:27

deploy Kestra wherever makes sense for you,

11:29

on-prem, hybrid cloud, any major cloud provider you choose.

11:33

That's important. Yeah, and to make starting even easier,

11:36

there are over 250 plus blueprints.

11:38

These are like pre-built templates for common tasks,

11:41

pulling data from Salesforce to Snowflake, for example.

11:43

There's likely a blueprint that gets you

11:45

like 90% of the way there straight away.

11:47

Okay, those blueprints sound like a great starting point.

11:50

Well, that paints a really comprehensive picture

11:53

from taming that initial chaos of complex processes

11:57

to enabling really powerful, flexible,

12:00

but also it seems surprisingly easy to manage automation.

12:04

Kestra really does seem to cover a lot of ground.

12:06

That unique mix of everything is code and from the UI,

12:10

the huge plugin ecosystem,

12:12

and just that focus on making orchestration accessible,

12:15

those are clearly its big strengths.

12:17

Sounds like a potential game changer

12:19

for teams maybe struggling with their current tools.

12:21

Absolutely, and this kind of leads to an important question

12:24

maybe for you, our listener, to think about.

12:27

What repetitive task, what complex data flow,

12:30

or maybe what integration challenge

12:32

exists in your world right now

12:33

that could potentially be simplified,

12:35

made more reliable, using a tool like Kestra.

12:38

Is there something you do manually every week?

12:40

Data stuck in silos that needs connecting.

12:43

If you are curious and you want to see it in action,

12:45

you can actually try their live demo.

12:46

There's no installation needed,

12:48

you just play with it in your browser.

12:49

Or if you want to get hands on,

12:50

check out the quick start installation guide.

12:52

It literally takes about five minutes

12:54

to get it running locally with Docker.

12:56

You'll have the Kestra UI up at http.localhost.8080.

13:00

And definitely check out their community on Slack and YouTube.

13:03

Lots of help, lots of examples there too.

13:05

Great resources.

13:07

And remember, this deep dive was made possible

13:09

thanks to the support of Safe Server.

13:11

They're your partner for robust hosting

13:13

and really seamless digital transformation solutions.

13:16

Do visit www.safeserver.de to learn more about them.

13:21

Thank you so much for joining us

13:22

We look forward to exploring another fascinating topic

13:22

We look forward to exploring another fascinating topic