while (true) {
ConsumerRecords
try {
consumer.commitSync();
} catch (CommitFailedException e) {
log.error("commit failed", e)
}
for (ConsumerRecord
{
System.out.printf("topic = %s, partition = %s, offset =
%d, customer = %s, country = %s
",
record.topic(), record.partition(),
record.offset(), record.key(), record.value());
}
}
What kind of delivery guarantee this consumer offers?
Here offset is committed before processing the message. If consumer crashes before processing the message, message will be lost when it comes back up.
A Kafka producer application wants to send log messages to a topic that does not include any key. What are the properties that are mandatory to configure for the producer configuration? (select three)
Both key and value serializer are mandatory.
Which of the following setting increases the chance of batching for a Kafka Producer?
linger.ms forces the producer to wait to send messages, hence increasing the chance of creating batches
A producer is sending messages with null key to a topic with 6 partitions using the DefaultPartitioner. Where will the messages be stored?
Message with no keys will be stored with round-robin strategy among partitions.
Which of the following event processing application is stateless? (select two)
Stateless means processing of each message depends only on the message, so converting from JSON to Avro or filtering a stream are both stateless operations
Barbara Flores
3 days agoMatthew Davis
6 days agoJoshua Reed
1 month agoNancy Harris
1 month agoJeffrey Williams
2 months agoHarold Roberts
2 months agoAshley Flores
3 months agoMichelle Adams
3 months agoDonald Walker
4 months agoJames Rivera
4 months agoMichelle Perez
4 months agoEdward Miller
4 months agoGerald Anderson
4 months agoElizabeth Nelson
4 months agoCoral
5 months agoErin
5 months agoRex
6 months agoPortia
6 months agoFabiola
6 months agoAnnamae
6 months agoAllene
7 months agoJosphine
7 months agoMaurine
7 months agoMatthew
8 months agoMerri
8 months agoAlbina
8 months agoAugustine
8 months agoMarylou
9 months agoYoulanda
9 months agoOllie
9 months agoAlex
9 months agoGearldine
10 months agoEmiko
10 months agoRozella
10 months agoOnita
10 months agoTawna
11 months agoWilda
11 months agoOwen
11 months agoSkye
11 months agoLizette
12 months agoLonny
12 months agoShawna
1 year agoVincent
1 year agoCory
1 year agoFrancisca
1 year agoCarry
1 year agoNorah
1 year agoBurma
2 years agoMica
2 years agoCatina
2 years agoLouisa
2 years agoJaime
2 years agoNikita
2 years agoAnnita
2 years agoGladys
2 years agoMira
2 years agoRolande
2 years agoCarey
2 years agoVirgina
2 years agoAllene
2 years agoBroderick
2 years agoGary
2 years agoShelton
2 years agoMisty
2 years agoMabel
2 years agoDorian
2 years agoMicheal
2 years agoLinsey
2 years ago