API Design · Senior · Question 39 of 75
What is the 'long-running operation' pattern in Google's API guidelines?
- 1A way to keep HTTP connections open for hours
- 2Operations that run in the client's browser
- ✓Correct answer: Methods that take time return an Operation resource with
done,metadataand eventuallyresponseorerror, which clients poll or wait on
Explanation
A standard operation shape lets SDKs provide generic waiting helpers across all slow methods.