1

I am processing data using Google DataFlow is there any way to write the results to cloudsql ?

1 Answer 1

2

There is not currently a built-in way of doing this, but you can use the Sink API to write to arbitrary external systems.

Edit: The Sink API is likely overkill for writing to cloudsql; you can just directly make insert calls from a DoFn.

Sign up to request clarification or add additional context in comments.

3 Comments

Thanks danielm. Is it a good practice to write to cloudsql from dataflow ?
Sure, you can write to any external data storage system you need from Dataflow. Depending on your usecase, writing to BigQuery may also work, and Dataflow supports that out of the box.
I wouldn't say that SinkAPI is overkill, since it allows you to write to CloudSQL in a transaction - either everything is saved or nothing.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.