firebase / firebase-js-sdk

Firebase Javascript SDK
https://firebase.google.com/docs/web/setup
Other
4.84k stars 889 forks source link

[Enhancement] [FireStore] Explore possibility of integrating pubsub over IPFS network #4635

Open leonelvsc opened 3 years ago

leonelvsc commented 3 years ago

Hi guys, just an idea that i've working on my mind.

We could explore the viability of integrating the IPFS or IPFS Private Network pubsub over the clients for optimizing the network usage and offload FireStore Servers using something like https://github.com/orbitdb/orbit-db , clients would star sharing and replicating data between them.

It's just a propossal and an experimental idea.

And also for the grpc webservice of firestore between the browser and the server we could also explore WebRTC DataChannel for transport like in this repo https://github.com/jsmouret/grpc-over-webrtc

google-oss-bot commented 3 years ago

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

looptheloop88 commented 3 years ago

Hi @leonelvsc, thanks for your feedback. You may file a feature request on Firebase support portal for this matter.

wu-hui commented 3 years ago

Hey @leonelvsc

Thanks for you interesting ideas!

For the first one, it is pretty interesting. I am a bit unsure if we should take on this however, mostly because the potential complexity might not justify the benefit. We have recently released Firestore Data Bundles, which takes a different approach, but seems might be useful for data that can be shared among clients. See: https://firebase.google.com/docs/firestore/bundles and https://firebase.google.com/docs/reference/js/firebase.firestore.Firestore#loadbundle

For your second one, that project is in a proof of concept state, so we will keep an eye and see if it materialize into something that might be useful for us.