firebase-queue
firebase-queue copied to clipboard
Best way to return data
In my scenario I would use firebase-queue with synchronous-like use case such as user registration.
For example:
- Client post registration task in the queue with user registration data
- Backend process the task in the queue
How the client can read things such as userId or creation errors?
I am using a response
location where I write a value using the same id
as the request
. Here you can see an example: https://github.com/kaliberjs/prototypes/blob/master/service-redundancy/services.js#L34
Hey mister @EECOLOR 👋🏻 Thanks for the example! I was researching exactly this topic with request/response in mind. The internet is a small place 😄