kaliberjs / firebase-queue

A trimmed and more robust version of the original Firebase Queue
MIT License
20 stars 3 forks source link

Firebase queue for Firestore? #7

Closed EECOLOR closed 5 years ago

EECOLOR commented 5 years ago

https://github.com/kaliberjs/firebase-queue/issues/5#issuecomment-419212802

@LoveMHz:

@EECOLOR What at do you purpose is the best solution? A new project or try to expand firebase-queue to support Firestore?

I've managed to hack together Firestore support, but not actually sure it fits in with the current project.

EECOLOR commented 5 years ago

@LoveMHz

Great question!

I do not think this library can support Firestore. There are a few reasons:

Another thing that might be problematic is that we are not using Firestore in any of our projects. This would have a negative effect if we had Firestore support in this project:

So I think the best thing would be a separate project with maintainers that know how Firestore works. I would suggest to use the same surface API and behavior (as far as possible) as this library. This would benefit end-users (developers) and allows them to switch their application to another store. If it helps feel free to fork this library and convert it into a Firestore version!

EECOLOR commented 5 years ago

Ohw, I forgot to add: please let me know if you disagree, I try to be open for discussion.

ElectroBuddha commented 5 years ago

It is also possible to use both Realtime DB and Firestore DB in the same project. So the one solution might be to keep parts of your app separated, logic for queuing could use RealtimeDB and the rest of your app could use Firestore DB.

EECOLOR commented 5 years ago

I'm closing this issue. If anyone feels it needs to be reopened, please feel free and don't forget to add a motivation and counter arguments.