Currently, Cloudflare has a project called Bandwidth Alliance, which is part of the PNI project. This saving me from the nightmare of outrageous, unreasonable network pay-as-you-go for many projects.
Imagine a simple AI video generation application.
I’m trying to streamline pay-as-you-go for the network with 3 applications here.
- API server app (CNAME)
- Fly.io GPUs app for video generating and/or encoding (No Public IPs)
- Video distribution app (“Proxied” by Cloudflare)
App 1 works well with Remix or Next.js, and App 2 generates videos based on user requests. The video will be distributed to the Internet from App 3 over Cloudflare network.
In other words, this allows App 1 to use Fly.io as-is without adding extra hops to interact with the user. App 2 should not be exposed to the Internet, so it stays in the private network. App 3 distributes video to the Internet over Cloudflare.
What do you think about this? The Fly.io team seems knowledgeable about the network stack, and working with Cloudflare might not be difficult.
- PNI: Private Network Interconnect
- GPU: Graphics Processing Unit
- AI: Artificial Intelligence
- CNAME: Canonical NAME