DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Related

  • Consumer Group in Kafka [Video Tutorials]: Partitions and Consumers
  • Understanding Kafka and Event-Driven Architecture [Video Tutorials]
  • Apache Kafka in Java [Video Tutorials]: Architecture and Simple Consumer/Producer
  • Techniques You Should Know as a Kafka Streams Developer

Trending

  • DZone's Article Submission Guidelines
  • Building an Image Classification Pipeline With Apache Camel and Deep Java Library (DJL)
  • DevOps Is Dead, Long Live Platform Engineering
  • Mocking Kafka for Local Spring Development
  1. DZone
  2. Coding
  3. Java
  4. Java Consumer and Producer Messages Between Kafka Server [Video Tutorials]

Java Consumer and Producer Messages Between Kafka Server [Video Tutorials]

This video tutorial series explores the procedure of sending and receiving messages between a Java consumer and producer and the Apache Kafka server.

By 
Ram N user avatar
Ram N
·
Apr. 28, 23 · Tutorial
Likes (2)
Comment
Save
Tweet
Share
8.6K Views

Join the DZone community and get the full member experience.

Join For Free

Throughout this series of video tutorials, we will explore the procedure of sending and receiving messages between a Java consumer and producer and the Apache Kafka server.

Java Consumer Code to Consume Messages From Apache Kafka Server

This video tutorial explains how to write a consumer that will consume messages from a Kafka Server installed in the Amazon EC2 Instance. 


Kafka Producer Send Messages to a Single Topic Partition

Explore how Kafka producer sends all messages to a single selected partition by:

  • The producer can select the partition of their choice in a topic where the producer wants to publish the message. 
  • All the messages will be published to a single partition (P0).
  • The product can send messages to the selected partition. We have to pass the partition number and the key.


Java Product Code to Send Messages to the Apache Server Installed in the Amazon EC2 Instance

In this tutorial video, you will discover the process of writing producer code in Java. This code will enable you to send messages to a Kafka server that has been deployed on an Amazon EC2 instance.


Java Producer and Consumer Code to Send/Receive messages To/From the Apache Kafka Server (EC2 Instance)

Learn how to utilize Java producer and consumer code to send and receive messages to and from the Apache Kafka server (EC2 Instance).


Java Program to Send Custom Object Into Kafka Topic and Consume Custom Object From Kafka Topic

Here is a Java program that allows you to send a custom object to a Kafka topic and also consumes a custom object from a Kafka topic.  


Java Program to Send/Consume Custom Object Into/From Kafka Server Running on Amazon EC2 Instance

Next, you can learn how to utilize a Java program to send either a JSON object or a custom object to a Kafka topic. Additionally, you will also be guided on how to consume a JSON object or a custom object from a Kafka topic.



Java (programming language) kafka Messages Server consumer Partition (database)

Opinions expressed by DZone contributors are their own.

Related

  • Consumer Group in Kafka [Video Tutorials]: Partitions and Consumers
  • Understanding Kafka and Event-Driven Architecture [Video Tutorials]
  • Apache Kafka in Java [Video Tutorials]: Architecture and Simple Consumer/Producer
  • Techniques You Should Know as a Kafka Streams Developer

Partner Resources

×

Comments

The likes didn't load as expected. Please refresh the page and try again.

  • RSS
  • X
  • Facebook

ABOUT US

  • About DZone
  • Support and feedback
  • Community research

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 215
  • Nashville, TN 37211
  • [email protected]

Let's be friends:

  • RSS
  • X
  • Facebook