So I have an architecture in which the user uploads there file onto the front end, which then sends it to a s3 bucket, which in turn triggers a lambda for validation and processing, which sends the response to the front end of successful upload or validation error.
I don't understand if there is way to implement this in JavaScript (or any other similar language).
In the normal scenario, the front end uploads to server 1, and waits for it's response. The server 1 then tells the front end whether it was a success or a failure, and that is what the front end tells the user.
But in this case, the upload is done to s3 (which is incapable of taking responses from lambda, and send it back to the user), and response is to be expected from the other one (the lambda).
How can this be implemented? If the architecture is flawed, please do suggest improvements.
Aucun commentaire:
Enregistrer un commentaire