Skip to content

Conversation

solsson
Copy link
Contributor

@solsson solsson commented Sep 18, 2020

A very common case in our integration tests is that we trigger some action and want to assert for an outcome in Kafka. Typical roundrips are 100-2000 ms, and retrying in tests tends to get verbose.

The plan here is for /cache/v1/raw/{key} to return the byte[] value as before but with a response header x-kkv-record-timestamp containing kafka's timestamp for the last update of the cache entry.
With that timestamp clients should then be able to invoke the same endpoint with request header x-kkv-updated-after and the same value. An async wait in the REST resource should wait for up to 20 (TBD, less than 30) seconds, then send (TBD) status if the update hasn't happened, or the record if the update has happened.

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

Successfully merging this pull request may close these issues.

1 participant