Skip to main content
Let’s create the producer application by first adding a utility method for setting configuration in a file named common.c:
Next, paste the following C code into a file named producer.c:
Fill in the appropriate <BOOTSTRAP SERVERS> endpoint and <API KEY> in the bootstrap.servers and sasl.password properties where the client configuration conf object is created.