MaestroHub and Amazon Redshift
Write rows to Redshift over the Data API, bulk-load Parquet from S3 with COPY, or let Firehose deliver, then read results back to the line.
- Connectors
- Amazon Redshift · S3 · Amazon Data Firehose
- Start with
- B · Parquet in S3, then COPY
- Network
- Outbound HTTPS 443, or 5439 for a direct connection
The Amazon Redshift connector writes rows, runs SQL, and loads from S3 with COPY. Redshift is fastest with bulk loads, so most plants write Parquet files to S3 and call Copy From S3 in the same pipeline.
Find your route
Answer a few questions; the drawing below follows your answer.
AWrite rows. Moderate volumes, or rows that change.
Architecture
Context Engine runs next to your machines, and every route starts or ends there. Select a route to trace it.
- Set up in MaestroHub
- Your infrastructure
- Set up in Amazon Redshift
Routes
- Freshness
- Per call, seconds
- Amazon Redshift compute
- The cluster, or Serverless capacity while it runs
- Delivery
- Retried on failure; use MERGE so a retry cannot duplicate
In MaestroHub
- Create an Amazon Redshift connection over the Data API with IAM.
- Use Write, which creates or widens the table to fit.
- Batch rows with a Buffer or Aggregator node so each call carries many rows.
In Amazon Redshift
- An IAM principal allowed to call the Data API on the cluster or workgroup, and database grants on the target schema.
Choose it when Moderate volumes, or rows that change.
Look elsewhere when High volume: Redshift prefers bulk loads. Use B.
- Freshness
- Minutes, as often as you copy
- Amazon Redshift compute
- The cluster runs each COPY
- Delivery
- Copy each file once; track loaded paths
In MaestroHub
- Batch rows with a Buffer or Aggregator node so each call carries many rows.
- Add Convert to File with format Parquet and a declared column schema.
- Write with the S3 node, Input Format
base64. - Call the Redshift Copy From S3 function with the same path. Both steps run in one pipeline.
In your infrastructure
- An S3 bucket for the landed files.
In Amazon Redshift
- An IAM role attached to the cluster with read access to the bucket, and the target table.
Choose it when You want the cheapest bulk route into Redshift and minutes are fine.
Look elsewhere when You need seconds: use A or C.
- Freshness
- About a minute, set by the Firehose buffer
- Amazon Redshift compute
- Firehose bills per GB; the cluster runs its COPY
- Delivery
- At least once
In MaestroHub
- Create an Amazon Data Firehose connection with IAM.
- Use Put Records in batches of up to 500 records or 4 MiB, and keep store-and-forward on.
In your infrastructure
- A Firehose stream with a Redshift destination and an S3 bucket for staging.
In Amazon Redshift
- A database user and table for Firehose's COPY.
Choose it when Your team prefers delivery that AWS manages to scheduling COPY yourself.
Look elsewhere when You want the fewest moving parts: B runs entirely from the pipeline.
- Freshness
- Your schedule
- Amazon Redshift compute
- The cluster runs each query
- Delivery
- Reads current state; safe to repeat
In MaestroHub
- Build a Query function. For large exports, use Unload To S3 and read the files.
- Pipeline: Schedule trigger, then the query, then publish to a UNS topic or write a setpoint through the machine's connector.
In Amazon Redshift
- A results view with
SELECTgranted.
Choose it when Analytics in Redshift produce values the plant should use.
Look elsewhere when Large exports: unload to S3 instead.
Compare the routes
Routes combine: most plants run one route in and one route back.
| Route | Direction | Freshness | Amazon Redshift compute | Delivery | Network | Best for |
|---|---|---|---|---|---|---|
| Into Amazon Redshift | Per call, seconds | The cluster, or Serverless capacity while it runs | Retried on failure; use MERGE so a retry cannot duplicate | Outbound HTTPS 443 to AWS | Work orders, batch records, moderate telemetry | |
| Into Amazon Redshift | Minutes, as often as you copy | The cluster runs each COPY | Copy each file once; track loaded paths | Outbound HTTPS 443 to AWS | High volume and backfills | |
| Into Amazon Redshift | About a minute, set by the Firehose buffer | Firehose bills per GB; the cluster runs its COPY | At least once | Outbound HTTPS 443 to AWS | Steady telemetry without scheduling loads | |
| Back to the plant | Your schedule | The cluster runs each query | Reads current state; safe to repeat | Outbound HTTPS 443 to AWS | Targets, predictions, reference data |