Files
doc-exports/docs/dms/umn/kafka_ug_0024.html
chenjunjie 190f09501c DMS UMN 20250314 version
Reviewed-by: Liudmila Denisova <ldenisov@noreply.gitea.eco.tsi-dev.otc-service.com>
Co-authored-by: chenjunjie <chenjunjie@huawei.com>
Co-committed-by: chenjunjie <chenjunjie@huawei.com>
2025-10-06 09:50:17 +00:00

16 lines
2.5 KiB
HTML

<a name="kafka_ug_0024"></a><a name="kafka_ug_0024"></a>
<h1 class="topictitle1">Viewing Sample Code of Kafka Production and Consumption</h1>
<div id="body0000001428381669"><p id="kafka_ug_0024__p06601154503">Distributed Message Service allows you to view sample Java, Go, and Python code of producing and consuming messages on the console. You can quickly complete Kafka client integration.</p>
<div class="section" id="kafka_ug_0024__section2033420163113"><h4 class="sectiontitle">Procedure</h4><ol id="kafka_ug_0024__ol5607173634517"><li id="kafka_ug_0024__li10427115412419"><span>Log in to the console.</span></li><li id="kafka_ug_0024__li14905725134512"><span>Click <span><img id="kafka_ug_0024__image1347672713321" src="en-us_image_0143929918.png"></span> in the upper left corner to select the region where your instance is located.</span></li><li id="kafka_ug_0024__li189561034172215"><span>Click <strong id="kafka_ug_0024__b4874999619578">Service List</strong> and choose <strong id="kafka_ug_0024__b14415380369578">Application</strong> &gt; <strong id="kafka_ug_0024__b10834960769578">Distributed Message Service</strong>. The Kafka instance list is displayed.</span></li><li id="kafka_ug_0024__li26520051765"><span>Click the desired instance to go to the instance details page.</span></li><li id="kafka_ug_0024__li6318234617851"><span>In the navigation pane, choose <strong id="kafka_ug_0024__b14725195017346">Topics</strong>.</span></li><li id="kafka_ug_0024__li2855125173416"><span>Click <strong id="kafka_ug_0024__b07114315533">View Sample Code</strong>. The <strong id="kafka_ug_0024__b1473714382538">Sample Code</strong> dialog box is displayed.</span><p><p id="kafka_ug_0024__p156905601617">The sample code is available in Java, Go, and Python, and PlainText, SASL_SSL, and SASL_PLAINTEXT access modes.</p>
<ul id="kafka_ug_0024__ul17788175931614"><li id="kafka_ug_0024__li137881259131618">PlainText: Accessing the Kafka instance in plaintext.</li><li id="kafka_ug_0024__li162811111191710">SASL_SSL: Accessing the Kafka instance in ciphertext with SASL authentication. SASL authentication uses PLAIN or SCRAM-SHA-512.</li><li id="kafka_ug_0024__li989763018173">SASL_PLAINTEXT: Accessing the Kafka instance in plaintext with SASL authentication. SASL authentication uses PLAIN or SCRAM-SHA-512.</li></ul>
</p></li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="kafka-ug-180604011.html">Managing Instances</a></div>
</div>
</div>