Description of my app: It's a social media type flutter app. Where users can post content and see each other's posts in home page.

In my app auth and user data (name, username, email, password, interests and other credentials) is being managed in Firebase firestore as you can see in the image.

Firestore User data screenshot

I want to use Backblaze B2 to store the content (image/video) posted by the user and Cloudflare as a CDN.

My question is how do I interconnect all of this? I haven't built the functionality to post yet but user object is already created. I want to inter-connect Firestore, Backblaze B2 and Cloudflare CDN.

1

There are 1 best solutions below

0
On

This article explains a very similar use case leveraging Backblaze B2, Firestore and Cloudflare.

You will set up Backblaze as your origin store, with Cloudflare configured as the CDN, as described here. You'll store the Backblaze B2 image/video URLs - e.g. https://f000.backblaze.com/file/images/img1234.png - in Firestore.