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

Send Push Notifications for Translation Completion to the Frontend UI #9

Open
deeheber opened this issue Nov 13, 2019 · 0 comments
Open
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@deeheber
Copy link

deeheber commented Nov 13, 2019

I originally designed this as a backend pipeline without thinking about adding a web UI frontend. It takes a bit for longer translations to process and as a result the UI doesn't refresh with the added item in the table section of the UI unless the window is reloaded.

I've temporarily added some retry behavior for it to mostly work, but would love push behavior to the client instead of polling every few seconds. Code reference https://github.com/stackery/language-translator/blob/frontend/src/PopulateFrontend/frontend-code/src/components/App.js#L91-L130

Rearchitect the existing HTTP endpoint(s) to use something like AWS IoT, Api Gateway websockets, or GraphQL subscriptions to allow for two way communication. Whenever an object is put into the translated files s3 bucket, the web api receives a notification and can then update the UI table list accordingly.

@deeheber deeheber added bug Something isn't working enhancement New feature or request and removed bug Something isn't working labels Nov 13, 2019
@deeheber deeheber changed the title Frontend Doesn't Update as Expected with Longer Translations Send Push Notifications for Translation Completion to the Frontend UI Nov 13, 2019
@deeheber deeheber added the help wanted Extra attention is needed label Nov 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant