Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Best way to return data #104

Open
eclipse1985 opened this issue Jan 18, 2017 · 2 comments
Open

Best way to return data #104

eclipse1985 opened this issue Jan 18, 2017 · 2 comments

Comments

@eclipse1985
Copy link

eclipse1985 commented Jan 18, 2017

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
Copy link

EECOLOR commented Jan 23, 2017

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
Copy link

0x80 commented Nov 1, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants