momentohq/client-sdk-rust

what to do about discontinuities

Closed this issue · 1 comments

what to do about discontinuities

We discussed with Kenny and determined we'll eventually have two subscribe methods:

  • The basic subscribe method will return only values (string or binary), meaning we can remove the Discontinuity type and a pattern matching layer from the Rust SDK for now
  • The advanced method (to be named) that will return SubscriptionItems that include values, discontinuities, heartbeats, etc future messages we want to return

Side note: we may want to audit our SDKs to see which subscriptions are callback-based (in which case this isn't a problem) and which are iterator-based (which use enums that we may need to change in future)