Skip to content

Add SUCCESS_ORDERED_FEED return type. #3715

Closed

Description

@mlucy

See #3714 .

Activity

  1. added this to the milestone on Feb 3, 2015
  2. danielmewes commented on Feb 4, 2015

    @danielmewes
    Member

    Would we need more types like this for other types of upcoming changefeeds? What about group().changes() changefeeds for example?

    I'm a bit concerned that we will end up with lots of different return types for different sorts of changefeeds, in which case we should probably think about a different way of passing the "changefeed type" to the client.

    @neumino any opinions or insights on this?

  3. mlucy commented on Feb 4, 2015

    @mlucy
    MemberAuthor

    We could update the protobuf to have both a ResponseType (what it has now) and a ResponseNotes field. We would then remove SUCCESS_FEED and SUCCESS_ATOM_FEED (they would both go back to being SUCCESS_PARTIAL). ResponseNotes would be an array of enum values where we could put any information we want that isn't essential to writing a functioning driver but might allow people to implement extra functionality.

  4. danielmewes commented on Feb 4, 2015

    @danielmewes
    Member

    Yeah that sounds better to me.
    It would make it easier to keep old drivers working with new changefeed features.

  5. gchpaco commented on Feb 4, 2015

    @gchpaco
    Contributor

    Folding all the various types of feeds that are only incrementally different from one another into one idea of ResponseNotes sounds good to me. Speaking as the guy who did the SUCCESS_ATOM_FEED work I found it very frustrating due to it duplicating a lot of code for, apparently, no meaningful benefit at all :)

  6. neumino commented on Feb 4, 2015

    @neumino
    Member

    @danielmewes -- Folding all the types into one is probably a good idea, no objection here as long as I can know what type of feed I get.

  7. danielmewes commented on Feb 4, 2015

    @danielmewes
    Member

    Should we call it ResponseNotes or ResponseHints maybe (or ResponseAnnotations)?
    I think we should also make it an array, so that we can attach multiple hints to a response (e.g. an additional one for includes_all, see #3719 (comment)).

  8. mlucy commented on Feb 4, 2015

    @mlucy
    MemberAuthor

    I like notes better than hints, personally. I usually associate hints with performance tuning.

  9. mlucy commented on Feb 6, 2015

    @mlucy
    MemberAuthor

    Planning to mark this as settled on Monday with ResponseNotes as the name, unless anyone really doesn't like it.

  10. modified the milestones: 2.0, on Feb 23, 2015
  11. danielmewes commented on Feb 23, 2015

    @danielmewes
    Member

    I think we should try to get this into 2.0. It will simplify drivers.

  12. danielmewes commented on Feb 27, 2015

    @danielmewes
    Member

    Assigning to @mlucy . We should try to get the ResponseNotes interface into 2.0.

  13. mlucy commented on Mar 6, 2015

    @mlucy
    MemberAuthor

    This is in next, CR 2692 by @Tryneus .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions