Redshift Serverless Query Editor V2 - Query Scheduler to have dependencies

0

Good day,

I am trying to build a no/zero code architecture, i was planning to use MWAA for orchestration but i was tasked to look at alternatives keeping it simple I was hoping Redshift query schedular was similar to SQL Agent, where a job is defined with multiple steps and it can be scheduled with the dependency of previous step etc.

How can I make this work with the scheduler? where I have an example of 50 scripts, but they run sequentially based on the previous script else go to step? Can one create a job within the schedule that has multiple steps like SQL Agent/Airflow? Not keen on MWAA/Cloud watch/lambda, looking for a simple way to run my sql that pulls data from RDS using FDW SP/Functions

Please help, any links or examples

Regards

2 回答
1

Thank You very much, this is great!

IC
已回答 2 个月前
0
已接受的回答

Hello good evening,

Thank you for your message and questions. There are some alternatives in AWS that provide you a simple, codeless and cost effective solution to process SQL scripts running against Amazon Redshift. Below some examples that you can use:

a) Orchestrate SQL scripts running in Amazon Redshift using AWS Step Functions: this blogpost describes an effective solution in AWS to orchestrate SQL scripts with dependencies running in Amazon Redshift using Redshift Data API. You have control of aspects of your orchestration such as parallelism, dependency, error handling, retry, etc. Besides, AWS Step Functions has integration natively with other services that you don't need to use code to trigger notifications (for example).

b) Redshift Scheduler: You can schedule a SQL script to run in Amazon Redshift using Redshift Scheduler. This approach will use also the Redshift Data API to run the SQL scripts in the cluster. You can have SQL statements separated by ";" and they will run sequentially in Amazon Redshift. However, I would suggest this solution for specific cases such as schedule operations in Amazon Redshift (for example). If you purpose is schedule an ETL job, I recommend you to use the approach "a".

Thanks!

AWS
已回答 2 个月前
profile picture
专家
已审核 2 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则