Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sample showing multiple readers from the same reader group #193

Open
elizabethbain opened this issue Mar 22, 2019 · 0 comments
Open

Sample showing multiple readers from the same reader group #193

elizabethbain opened this issue Mar 22, 2019 · 0 comments

Comments

@elizabethbain
Copy link
Contributor

This sample is meant to show the behavior of Pravega when there are multiple readers on the same stream where each reader is from the same reader group. This is to be contrasted with the sample showing multiple readers on the same stream from different reader groups. When the readers are from the same group, the data being processed is divided between them by reading different segments. Currently the samples we have only have one writer and one reader to a stream. This sample and the sample with multiple readers from different reader groups is to illustrate the simple interactions and behavior of Pravega when there are multiple readers of the same data.
Scenario

  1. A writer is writing to a given stream with specific events.
  2. Two readers (Reader A and Reader B) are started for reading from the stream, offset by a short amount of time
  3. Each reader writes the data to stdout with its id appended to it to identify which reader put out the event.
  4. The output should demonstrate that an event is only seen by Reader A or Reader B, but not both.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant