-
Notifications
You must be signed in to change notification settings - Fork 2
Description
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.