Skip to content

Instantly share code, notes, and snippets.

@schroedermatt
Created April 4, 2022 20:41
Show Gist options
  • Select an option

  • Save schroedermatt/96cfdbae3bb05c45277da2a8c5af2736 to your computer and use it in GitHub Desktop.

Select an option

Save schroedermatt/96cfdbae3bb05c45277da2a8c5af2736 to your computer and use it in GitHub Desktop.
// simplified consumer
try {
while (true) {
// fetch latest flag values and apply accordingly
applyFeatureFlags(consumer);
ConsumerRecords<String, String> records = consumer.poll(100);
for (ConsumerRecord<String, String> record : records) {
// logic
}
}
} finally {
consumer.close();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment