Now in some instances, I sent this data to infermedica API which does medical analyses. This API does not have direct "client keys". I need to pass JSON messages from the server (using headers to authenticate).
In many instances informedica sends, additional questions bot needs to ask from the client, in my case I have limited this to 15 questions. After this it's passing the response object back, consisting most likely medical condition. Based on the condition I then call 2 other endpoints giving treatment advice and a possibility to schedule appointments with suitable medical professional.
My question is what is the good way to store the state of these requests to make sure all the info is passed to informedica and that response is send back to a right user.
I would like this to be as real-time as possible. My considerations is to store session info using Redis on server side keeping the track of user and users requests as key values and passing messages back based on this.
Is there an alternative way of somehow passing the authentication state directly to the client without actually sending the keys?
Is there a good open source project where something like this is done so I could look at the code? Python preferred.
This would be highly useful as I could just use browser cache for the request information and I can pass correct type of JSON request directly from the client.