---
title: "Discussion on \"Golang Producer and Consumer with Kafka Simple\" | Hashnode"
description: "Discussion on \"Golang Producer and Consumer with Kafka Simple\". install package:\ngo get https://github.com/segmentio/kafka-go\n\nCreate Topic In Kafka:\n\ncreate topic name logging\n\ntopic logging has 1 partition\n\n\nProducer\n\ncreate folder producer:\n\ncreate file main.go in folder producer\n\n\ncopy and paste code:\npackage..."
url: "https://hashnode.com/posts/golang-producer-and-consumer-with-kafka-simple/648537db4b759847ea99ee7c"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Golang Producer and Consumer with Kafka Simple](https://opendev.hashnode.dev/golang-producer-and-consumer-with-kafka-simple?utm_source=hashnode&utm_medium=feed)

install package: go get https://github.com/segmentio/kafka-go Create Topic In Kafka: create topic name logging topic logging has 1 partition Producer create folder producer: create file main.go in folder producer copy and paste code: package...

Jun 11, 2023 · 2 min read · opendev.hashnode.dev  
Read the article

-   [#golang](https://hashnode.com/tag/golang)
-   [#kafka](https://hashnode.com/tag/kafka)
-   [#consumer](https://hashnode.com/tag/consumer)
-   [#producer](https://hashnode.com/tag/producer)
-   [#opendevdev](https://hashnode.com/tag/opendevdev)

## Written by

[OpenDev](https://hashnode.com/@OpenDev)

@OpenDev · VietNam

  
[View profile](https://hashnode.com/@OpenDev)

Golang,Redis,Docker,Reactjs

I am a developer from Vietnamese's

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
