Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

API and user requirement analysis

Image RemovedImage Added

The chart above analyzes the new consumer API requirements by looking at the requirements that user might have for each request. We are trying to use this chart to exhaustively list

...

The major gaining of using a single-threaded model is to associate the consumer liveliness with the actual data fetching. The downside of this issue is that the current threading model is sort of "hijacking" the user thread to act as an execution thread when user thread calls poll().

Image RemovedImage Added

We want to propose a threading model very similar to what we are using in new producer which has been proven to be welcomed by users. At the same time, we will keep the benefit of single-threaded model with little efforts.

Image RemovedImage Added

The major changes in this threading model are:

...

Personally, I think a call should be sync if

  1. User expect expects information back, or
  2. subsequent action depends on the function call.

...