Created
April 4, 2022 20:41
-
-
Save schroedermatt/96cfdbae3bb05c45277da2a8c5af2736 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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