To produce data to a topic, a producer must provide the Kafka client with...
All brokers can respond to a Metadata request, so a client can connect to any broker in the cluster and then figure out on its own which brokers to send data to.
A consumer wants to read messages from partitions 0 and 1 of a topic topic1. Code snippet is shown below.
consumer.subscribe(Arrays.asList("topic1"));
List
pc.add(new PartitionTopic("topic1", 0));
pc.add(new PartitionTopic("topic1", 1));
consumer.assign(pc);
subscribe() and assign() cannot be called by the same consumer, subscribe() is used to leverage the consumer group mechanism, while assign() is used to manually control partition assignment and reads assignment
To prevent network-induced duplicates when producing to Kafka, I should use
Producer idempotence helps prevent the network introduced duplicates. More details herehttps://cwiki.apache.org/confluence/display/KAFKA/Idempotent+Producer
What client protocol is supported for the schema registry? (select two)
clients can interact with the schema registry using the HTTP or HTTPS interface
You are running a Kafka Streams application in a Docker container managed by Kubernetes, and upon application restart, it takes a long time for the docker container to replicate the state and get back to processing the dat
a. How can you improve dramatically the application restart?
Although any Kafka Streams application is stateless as the state is stored in Kafka, it can take a while and lots of resources to recover the state from Kafka. In order to speed up recovery, it is advised to store the Kafka Streams state on a persistent volume, so that only the missing part of the state needs to be recovered.
Emiko
3 days agoRozella
11 days agoOnita
19 days agoTawna
26 days agoWilda
1 month agoOwen
1 month agoSkye
2 months agoLizette
2 months agoLonny
2 months agoShawna
2 months agoVincent
2 months agoCory
4 months agoFrancisca
5 months agoCarry
7 months agoNorah
8 months agoBurma
9 months agoMica
10 months agoCatina
10 months agoLouisa
11 months agoJaime
11 months agoNikita
11 months agoAnnita
12 months agoGladys
12 months agoMira
1 year agoRolande
1 year agoCarey
1 year agoVirgina
1 year agoAllene
1 year agoBroderick
1 year agoGary
1 year agoShelton
1 year agoMisty
1 year agoMabel
1 year agoDorian
1 year agoMicheal
1 year agoLinsey
1 year ago