'Springboot MVC - how to report status of long running HTTP request
I am using Springboot MVC and say a HTTP call results in a long running operation :-
@PostMapping
public ResponseEntity<String> doSomething() throws IOException {
this.someService.doLongRunningOperationSync(); //Long running operation.
return new ResponseEntity<>(org.springframework.http.HttpStatus.OK);
}
Now, how can I periodically update the client of the progress?
This draft - https://tools.ietf.org/id/draft-wright-http-progress-01.html - defines a way to report status of long running HTTP operations. Is something possible like this in springboot MVC? Any other alternative of how I can achieve this?
Solution 1:[1]
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Eskandar Abedini |
