I have 3 software components of a Web Application: 1. JS-client application 1 (JSApp1) 2. Java Spring (REST and Websockets) server app (SRV) 3. JS-client application 2 (JSApp2)
My current task is to send some data from JSApp1, save them in the SRV DB and respond to JSApp1 telling whether the operation was successful or not. I'm using usual HTTP Post request for that. But for saving this data the SRV needs to ask JSApp2 for the permission. I use websockets for that purpose. Having done that I would miss connection to the JSApp1 because web sockets are not synchronous at all.
Is there any workaround to this issue? I mean keeping HTTP POST request to do a send/receive operation using websockets or anything else.
Thanks in advance.