firebase-queue icon indicating copy to clipboard operation
firebase-queue copied to clipboard

Best way to return data

Open eclipse1985 opened this issue 8 years ago • 2 comments

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?

eclipse1985 avatar Jan 18 '17 10:01 eclipse1985

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

EECOLOR avatar Jan 23 '17 21:01 EECOLOR

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

0x80 avatar Nov 01 '17 12:11 0x80