Skip to main content
Let’s create the JavaScript producer application by pasting the following code into a file producer.js.
Fill in the appropriate <BOOTSTRAP SERVERS> endpoint and <API KEY> in the brokers and sasl.password properties where the client configuration object is created.