on 2020 Feb 16 11:55 PM
Hey guys! I have a small thing and I am very curious how I can perform this.
Basically, all I want is to keep a request running or start it, which ever is possible, independently from the response sending.
I am using Hana hdb.createClient and client.exec to perform requests. Let's say that besides other logic in the service, I have this request that it will take 20 seconds, but it doesn't return anything so I do not need it to return it as a response, therefore the service is not supposed to wait for it before sending a response. Basically, I want to do one of the following:
1. Start the process (calling without await) and send the response from some other logic.
2. Start the process after sending the response.
In the process I need to run, I am using some data I am already getting throughout the service.
Both options fails because after sending the response, the client is not existing anymore. Does anyone have any idea how I can achieve this?
Request clarification before answering.
User | Count |
---|---|
66 | |
12 | |
12 | |
7 | |
7 | |
4 | |
4 | |
4 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.