Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix link in workflows

Inian Parameshwarane11468761543
diff --git a/www/_blog/2021-04-02-supabase-workflows.mdx b/www/_blog/2021-04-02-supabase-workflows.mdx
index 470bc41a56e..706492d8b02 100644
--- a/www/_blog/2021-04-02-supabase-workflows.mdx
+++ b/www/_blog/2021-04-02-supabase-workflows.mdx
@@ -42,19 +42,19 @@ this yourself, probably using a cron-job.
We searched for some open source tools which we think are solving this problem well. We looked at
[NodeRed](https://supabase.io/blog/2021/03/30/supabase-storage#designing-the-storage-middleware), [n8n](https://n8n.io/),
-[Airflow](http://airflow.apache.org/blog/airflow-two-point-oh-is-here/), and about 10 other tools. They are amazing tools on their
-own, but for the Supabase Stack they ultimately had the
-[same shortcomings](https://supabase.io/blog/2021/03/30/supabase-storage#integration-with-the-supabase-ecosystem) that we found
+[Airflow](http://airflow.apache.org/blog/airflow-two-point-oh-is-here/), and about 10 other tools. They are amazing tools on their
+own, but for the Supabase Stack they ultimately had the
+[same shortcomings](https://supabase.io/blog/2021/03/30/supabase-storage#integration-with-the-supabase-ecosystem) that we found
with Storage providers - most of them lacked deep Postgres integration.
-We went back to the drawing board and asked, "if we could wave a wand and get the perfect solution, what would it look like?".
-The tool that came very close is [AWS Step Functions](https://aws.amazon.com/step-functions/). The only problem: it's not open source.
+We went back to the drawing board and asked, "if we could wave a wand and get the perfect solution, what would it look like?".
+The tool that came very close is [AWS Step Functions](https://aws.amazon.com/step-functions/). The only problem: it's not open source.
Luckily, their [state language](https://states-language.net/spec.html) is.
-Using this states language, we are [building an open source orchestration engine](https://github.com/supabase/workflows) for
+Using this states language, we are [building an open source orchestration engine](https://github.com/supabase/workflows) for
managing very complex Workflows with queueing, etc. It will be built with Elixir.
-This engine won't execute code. Instead, it will coordinate and execute existing functions wherever they live: AWS, GCP, Azure,
+This engine won't execute code. Instead, it will coordinate and execute existing functions wherever they live: AWS, GCP, Azure,
OpenFaas, and of course Postgres.
We plan to add "modules" which work natively: email services, notification services, and other platforms.
@@ -71,18 +71,18 @@ You can use them to rapidly develop microservices (once we have functions) witho
Workflows are stateless - the output of a state becomes the input of the next state.
-Workflows are defined using Amazon States Languages, so you can import your workflows from AWS (although we are still building handlers
+Workflows are defined using Amazon States Languages, so you can import your workflows from AWS (although we are still building handlers
for most AWS resources).
-Workflows can be _persistent_ (the default). This means they are tolerant to server restarts, but it also means they need to use
+Workflows can be _persistent_ (the default). This means they are tolerant to server restarts, but it also means they need to use
the database to store their state.
-Workers can be _transient._ These are are fully in-memory if you don't want to store the execution state (for example, IoT
+Workers can be _transient._ These are are fully in-memory if you don't want to store the execution state (for example, IoT
applications that trigger workflows very often). Transient workflows are not restarted if the server crashes or is restarted.
## Example
-A typical use-case for workflows is sending emails. For example, you might want to send a user an email one day after they
+A typical use-case for workflows is sending emails. For example, you might want to send a user an email one day after they
sign up. In database terms we can say: "trigger an email workflow whenever there is an insert on the `users` table."
Let's break this down into steps, then tie it all together at the end:
@@ -102,7 +102,7 @@ SendEmail:
email.$: '$.record.email'
```
-Here we have a "Task" which triggers a call to an email service (like Mailgun or Postmark). Specifically, it's telling
+Here we have a "Task" which triggers a call to an email service (like Mailgun or Postmark). Specifically, it's telling
the service to send the `welcome-email` template, and it's providing it a `name` and an `email` as parameters.
### Waiting a day
@@ -120,7 +120,7 @@ Here "one day" is specified in seconds.
### Trigger on insert
-We mentioned that you could trigger a workflow whenever there is an "insert" on the `users` table. But what if you insert
+We mentioned that you could trigger a workflow whenever there is an "insert" on the `users` table. But what if you insert
multiple users at once? Not a problem - we can loop through all the inserts with a `Map`:
```yaml
@@ -226,9 +226,9 @@ The workflow receives the following JSON data from Supabase [Realtime](https://g
## Next Steps
-We've already open sourced the Workflow interpreter [here](https://github.com/supabase/workflows). It's built with Elixir,
-so you can find it on Hex [here](https://hexdocs.pm/workflows/readme.html).
+We've already open sourced the Workflow interpreter [here](https://github.com/supabase/workflows). It's built with Elixir,
+so you can find it on Hex [here](https://hexdocs.pm/workflows/Workflows.html).
-After we've ironed out a few bugs we will integrate it into the Supabase Stack. As with all Supabase features, we'll add a
-[nice UI](https://ui.supabase.io/) to make prototyping extremely rapid. We'll integrate the UI with the code (via Git) to make
+After we've ironed out a few bugs we will integrate it into the Supabase Stack. As with all Supabase features, we'll add a
+[nice UI](https://ui.supabase.io/) to make prototyping extremely rapid. We'll integrate the UI with the code (via Git) to make
sure everything is version controlled.