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

Additional message pattern: single-request, multi-response #79

Open
veggiesaurus opened this issue Dec 7, 2022 · 0 comments
Open

Additional message pattern: single-request, multi-response #79

veggiesaurus opened this issue Dec 7, 2022 · 0 comments

Comments

@veggiesaurus
Copy link
Collaborator

veggiesaurus commented Dec 7, 2022

We need the ability to send an observable stream from the backend for a specific request. For example:

  • frontend sends load region request
  • backend progressively streams regions to frontend
  • frontend subscribes to a new rxjs stream

From CARTAvis/carta-backend#1216:

@YuHsuan-Hwang @veggiesaurus would it be better to send regions in batches with a progress field rather than in one ImportRegionAck message? Something like 1000 at a time? Or do you think the frontend time is acceptable once it gets a response?

I think that would be useful. However, in order to do that, we would need a new message type in the ICD. At the moment, we have single-request, single-response, and data streams. We'd need something like a single-request, many-responses approach.

I have an idea of how to do this, but we will need to formalise it a bit.

Originally posted by @veggiesaurus in CARTAvis/carta-backend#1216 (comment)

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

1 participant