You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
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 :)
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)).
Activity
danielmewes commentedon Feb 4, 2015
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?
mlucy commentedon Feb 4, 2015
We could update the protobuf to have both a
ResponseType(what it has now) and aResponseNotesfield. We would then removeSUCCESS_FEEDandSUCCESS_ATOM_FEED(they would both go back to beingSUCCESS_PARTIAL).ResponseNoteswould 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.danielmewes commentedon Feb 4, 2015
Yeah that sounds better to me.
It would make it easier to keep old drivers working with new changefeed features.
gchpaco commentedon Feb 4, 2015
Folding all the various types of feeds that are only incrementally different from one another into one idea of
ResponseNotessounds good to me. Speaking as the guy who did theSUCCESS_ATOM_FEEDwork I found it very frustrating due to it duplicating a lot of code for, apparently, no meaningful benefit at all :)neumino commentedon Feb 4, 2015
@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.
danielmewes commentedon Feb 4, 2015
Should we call it
ResponseNotesorResponseHintsmaybe (orResponseAnnotations)?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)).mlucy commentedon Feb 4, 2015
I like
notesbetter thanhints, personally. I usually associate hints with performance tuning.mlucy commentedon Feb 6, 2015
Planning to mark this as settled on Monday with
ResponseNotesas the name, unless anyone really doesn't like it.danielmewes commentedon Feb 23, 2015
I think we should try to get this into 2.0. It will simplify drivers.
danielmewes commentedon Feb 27, 2015
Assigning to @mlucy . We should try to get the
ResponseNotesinterface into 2.0.mlucy commentedon Mar 6, 2015
This is in next, CR 2692 by @Tryneus .