Тёмный

Kafka implementation in .Net core for microservice communication with practical example 

codingFriday
Подписаться 7 тыс.
Просмотров 36 тыс.
50% 1

Lost all views, all comments, all subscribers, in short codingFirday lost you and with no choice left had to create new Channel - please provide your support by subscribing to new channel CodingLocker, please find the link below.
Subscribe Coding Locker
bit.ly/3mh3e0D
codingFriday needs your support in retrieving all subscribers back at Coding Locker. See you all there at Coding Locker. Thanks
codingFriday needs your support in retrieving all subscribers back at Coding Locker. See you all there at Coding Locker. Thanks
Practical Example for Use Apache Kafka In .NET Application, the demo for Kafka installation in .Net core and you can build Real-time Streaming Applications Using .NET Core c# and Kafka.
Github link for Kafka practical example in .Net core
github.com/cpvariyani/kafka-i...
-------------------------------------------------------
Steps
1. Download Prerequisite for Kafka and zookeeper
2. Install Kafka and zookeeper
3. Create a topic in Kafka console
4. Start the Kafka producer server
5. Start the Kafka consumer server
6. Create .Net core microservice as a producer
7. Create .Net core application as a consumer
8. Test Kafka implementation using postman to see the communication between communication.
-------------------------------------------------------
Prerequisite
7Zip
www.7-zip.org/download.html
JRE8 www.oracle.com/technetwork/jav...
zookeeper
zookeeper.apache.org/releases...
Kafka
kafka.apache.org/downloads.html
-------------------------------------------------------
Commands
Zookeeper Start
C:\kafka-2.12- zkServer
Kafka Start
C:\kafka-2.12- .\bin\windows\kafka-server-start.bat .\config\server.properties
Create a Topic
C:\kafka-2.12\bin\windows- kafka-topics.bat --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic temp-topic
Start Producer
C:\kafka-2.12\bin\windows- kafka-console-producer.bat --broker-list localhost:9092 --topic temp-topic
Start Consumer
C:\kafka-2.12\bin\windows- kafka-console-consumer.bat --bootstrap-server localhost:9092 --topic temp-topic --from-beginning
Topics in the list
C:\kafka-2.12\bin\windows - kafka-topics --zookeeper localhost:2181 --list
-------------------------------------------------------
the package needed in .net core application
Confluent.Kafka, version 1.4.0
-------------------------------------------------------

Опубликовано:

 

4 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 83   
Далее
Clean ASP.NET Core API using MediatR and CQRS | Setup
22:39