Giter Site home page Giter Site logo

Comments (1)

lukesneeringer avatar lukesneeringer commented on August 27, 2024

Documenting a conversation so it is not lost:

Is there a convention for how to set response for LRO?
Specifically, if the LRO is done:

  1. If successful, do we still set metadata?
  2. How about cancelled? do we set metadata in this case?

We currently always set metadata, but we don't know if this is the correct way to do it.
My concern is that there are always duplicate information in metadata and response.
Thanks.

Are you saying that the LRO might return immediately? If you return immediately for either an immediately completed or cancelled LRO, it should be marked as done and have the response (or error) included.

The metadata could be included if it has relevant information (maybe metadata stores CPU-hours consumed for billing purposes, or perhaps the cancelled one has a progress indicator of how many items were inspected before the cancellation happened), but if there's nothing relevant, it need not be included.

@lukesneeringer: Can we add this to the AIP for LROs ?

from google.aip.dev.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.