Timeline for How to design sequential requests to third-party APIs?
Current License: CC BY-SA 4.0
14 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 24, 2019 at 8:08 | vote | accept | naXa stands with Ukraine | ||
Dec 23, 2019 at 22:04 | comment | added | james | implement a Finite State Machine | |
Dec 23, 2019 at 21:41 | answer | added | Martin K | timeline score: 0 | |
Dec 23, 2019 at 19:01 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Aug 25, 2019 at 19:01 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Apr 27, 2019 at 18:03 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Apr 11, 2019 at 20:30 | audit | Suggested edits | |||
Apr 11, 2019 at 20:31 | |||||
Apr 1, 2019 at 19:37 | comment | added | Laiv |
It might help. Basically, It allows to do what we do in NodeJS. Instead of chaining then one after another, you could resolve the stack recursively.
|
|
Apr 1, 2019 at 19:19 | comment | added | naXa stands with Ukraine |
@Laiv you're right. Service A and service B use adapters that depend on Spring RestTemplate . Though Service C is different - it uses an adapter that depends on a library (Spotify Web API). Yes, a pipeline or data flow sounds like what I'm looking for.
|
|
Apr 1, 2019 at 18:40 | comment | added | Laiv | naXa, correct me if I'm wrong but, using Spring RestTemplate + HttpClient already makes the solution synchronized. You just make one call after the other. Are you perhaps, asking how to make a pipeline? A data flow? | |
Mar 29, 2019 at 7:05 | comment | added | naXa stands with Ukraine |
@JohnWu for example, with promises (or CompletableFuture in Java).
|
|
Mar 28, 2019 at 20:10 | comment | added | John Wu |
I feel like I'm missing something because this strikes me as a very odd question. If your code needs to make three calls in sequence, you write a line of code that performs the first call, then below it another line that does the next, etc. And if the first response doesn't contain the information needed to proceed, you check it with an if statement and return the empty response. How else would you do it?
|
|
Mar 28, 2019 at 17:16 | answer | added | Pablo Gonzalez | timeline score: 0 | |
Mar 28, 2019 at 15:37 | history | asked | naXa stands with Ukraine | CC BY-SA 4.0 |