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

add Apollo Client subscription to ui-control #84

Closed
rtang03 opened this issue Jul 3, 2020 · 1 comment
Closed

add Apollo Client subscription to ui-control #84

rtang03 opened this issue Jul 3, 2020 · 1 comment
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@rtang03
Copy link
Owner

rtang03 commented Jul 3, 2020

after the authentication to done on ui-control, for each query request. #81 #77 #85

We then implement authenticated subscription upon Event Arrival.

@rtang03 rtang03 added the enhancement New feature or request label Jul 3, 2020
@rtang03 rtang03 added this to the sprint-6 milestone Jul 3, 2020
@rtang03 rtang03 self-assigned this Jul 3, 2020
@rtang03 rtang03 added this to To do in library packages via automation Jul 3, 2020
@rtang03
Copy link
Owner Author

rtang03 commented Jul 13, 2020

Revisiting the Apollo documentation, it recommends to use subscription (websocket), for low-latency requirement.

BTW, the current requirement will get notification, after commit is made successfully. And, it is better to use long-poll.

Therefore, I make use of Redis, to store the event arrival information, with redis keys to starting with "noti::"

The UI-control, will use periodically poll to obtain this notification information from Redis.

Also, the first time, the client fetch the notification information in Redis, it will make "READ".

The backend websocket remains live, for future use. For example, B2B integration, which requires low-latency communication.

@rtang03 rtang03 closed this as completed Jul 13, 2020
library packages automation moved this from To do to Done Jul 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

No branches or pull requests

1 participant