FirebaseExtended / firebase-queue

MIT License
786 stars 108 forks source link

Best way to return data #104

Open eclipse1985 opened 7 years ago

eclipse1985 commented 7 years ago

In my scenario I would use firebase-queue with synchronous-like use case such as user registration.

For example:

  1. Client post registration task in the queue with user registration data
  2. Backend process the task in the queue

How the client can read things such as userId or creation errors?

EECOLOR commented 7 years ago

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

0x80 commented 6 years ago

Hey mister @EECOLOR 👋🏻 Thanks for the example! I was researching exactly this topic with request/response in mind. The internet is a small place 😄