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
Newsletter
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

  • Replay, Scheduling, and Throttling: Engineering a Self-Service Kafka Streaming Tool at Scale
  • How to Format Articles for DZone
  • DuckDB for Python Developers
  • Event Sourcing in Distributed Systems: Architecture, Consistency, and Fault-Tolerant Projections

Draft This article hasn't been published, so readers can't see it.

In moderation This article is waiting for review, so readers can't see it yet.

Deleted This article has been deleted, so readers can't see it.

  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
·
Apr. 28, 23 · Tutorial
Post on X (opens in a new tab) Share on LinkedIn (opens in a new tab)
8.9K Views

Join the DZone community Save articles, join the discussion, and download Refcards and Trend Reports with a free account.

Join for free Already a member? Log in

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

Loading comments

The comments didn't load

Please try again in a moment.

Likes

Loading

The next likes didn't load. Please try again.

The likes didn't load

Please try again in a moment.

See who liked this

Log in or join DZone for free to see who liked this article.

Log in Join for free
  • 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