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

Read-your-writes consistency #173

Open
neoword opened this issue May 1, 2019 · 0 comments
Open

Read-your-writes consistency #173

neoword opened this issue May 1, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@neoword
Copy link
Contributor

neoword commented May 1, 2019

Desired Behavior

  • Mutations should "wait" until their side-effects are realized in underlying data store before returning to the caller
  • This approximates "read-your-writes"
  • There should be a timeout that fails if "read-your-write" condition is not met by the timeout

Benefits

  • Builds more quickly
  • Builds are more reliable
  • Hacks are not in place to ensure side-effects are propagated

See this as an example:

https://github.com/homeaway/hello-streams/blob/8fb25229513a26d61ea94952d1d0fa7f902703f2/order-processor/src/main/java/com/homeaway/streamplatform/hellostreams/orderprocessor/dao/OrderDao.java#L105-L106

and this:

https://github.com/homeaway/hello-streams/blob/8fb25229513a26d61ea94952d1d0fa7f902703f2/order-processor/src/main/java/com/homeaway/streamplatform/hellostreams/orderprocessor/dao/OrderDao.java#L72-L82

Would ideally want a completely consumer-based interaction as opposed to polling, but polling can be a good first start.

@neoword neoword added the enhancement New feature or request label May 1, 2019
@neoword neoword mentioned this issue May 1, 2019
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant