Hyperdrive: making databases feel like t...
How to use google alloydb with hyperdrive? I can't specify 0.0.0.0/0 as the public IP.
https://blog.cloudflare.com/it-it/hyperdrive-making-regional-databases-feel-distributed
The Cloudflare Blog
Hyperdrive: making databases feel like they’re global
Hyperdrive makes accessing your existing databases from Cloudflare Workers, wherever they are running, hyper fast.
10 Replies
AlloyDB does seem postgres compatible, are you able to obtain a publicly accessible connection string to use with Hyperdrive?
The cloudflare blog mentioned above states the following:
The documentation does not include instructions on how to connect to AlloyDB, so I am trying the same method as Google Cloud SQL.
https://developers.cloudflare.com/hyperdrive/examples/google-cloud-sql/
Cloudflare Docs
Connect to Google Cloud SQL · Hyperdrive
This example shows you how to connect Hyperdrive to a Google Cloud SQL PostgreSQL database instance.
So AlloyDB should give you a connection string for AlloyDB, and then you'll also have to whitelist the IP address that Hyperdrive uses. You're correct though, because it's not fixed you'll have to whitelist 0.0.0.0/0... and AlloyDB doesn't let you do that?
Via the steps here? https://cloud.google.com/alloydb/docs/connect-public-ip
Hello, I get an error.
It seems AlloyDB restricts the size of the network you can use to connect to it. From what I can tell from their docs https://cloud.google.com/alloydb/docs/connect-external, they recommend setting up an intermediary VM to proxy requests
I will give up because the intermediate VM settings are complicated and the cost will be even more expensive.
Thank you for your answer.
Is this for a new project? Curious as to usage of AlloyDB instead of Cloud SQL https://cloud.google.com/sql/docs/postgres
Yes. It's for a new hobby project.
https://subnect.com
alloyDB seems to be fast, so I wanted to experience the speed. I'm currently using TiDB.
Subnect
Share Subjects, Connect Minds.
I'm looking forward to hyperdrive mysql(TiDB) support.