You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
The text was updated successfully, but these errors were encountered:
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
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.
The text was updated successfully, but these errors were encountered: