Ưu đãi trong tuần: Nhập mã UD50 giảm 50k cho đơn từ 300k!
Trang chủ
Menu

Apache Kafka for Beginners - Learn Kafka by Hands-On

Apache Kafka cho Người Mới Bắt Đầu - Học Kafka qua Thực Hành

Apache Kafka cho Người Mới Bắt Đầu - Học Kafka qua Thực Hành

Tìm hiểu sâu các khái niệm Apache Kafka và học cách xây dựng Producer/Consumer Kafka bằng Java.

4.5
(1,208 đánh giá)
8,019 học viên
Giảng viên
Pragmatic Code School
Phụ đề Việt chất lượng cao Phụ đề tiếng Anh Bán chạy Đánh giá cao
50.000đ 349.000đ -86%
✓ Xem giỏ hàng và thanh toán
Bao gồm phụ đề tiếng Việt, tiếng Anh
5.0 giờ video
58 bài giảng
Truy cập vĩnh viễn
Học trên mọi thiết bị
Cập nhật: 30/05/2026

Bạn sẽ học được gì

Nắm vững mọi khái niệm Kafka và kiến trúc nội bộ cốt lõi của Kafka.
Học kiến trúc nội bộ Kafka thông qua thực hành
Xây dựng ứng dụng Kafka Producer bằng Java
Học các Kỹ thuật Kafka Producer để đảm bảo gửi dữ liệu tin cậy
Xây dựng ứng dụng Kafka Consumer bằng Java
Kỹ thuật Kafka Consumer Nâng cao để xử lý việc ghi nhận bị xử lý trùng lặp
Consumer Rebalance và các kỹ thuật khác nhau để xử lý chúng
Kỹ thuật Consumer để nhảy đến một offset cụ thể
Học cách xây dựng Serializer và Deserializer tùy chỉnh trong Kafka
Kết thúc khóa học, bạn sẽ hiểu rõ hoàn toàn về Apache Kafka và có thể xây dựng ứng dụng Kafka consumer bằng Java

Yêu cầu

Các lệnh cơ bản trên nền tảng Unix/Windows.
Kiến thức Java cơ bản.
Kiến thức cơ bản về nền tảng Windows/Mac

Đối tượng phù hợp

Dành cho bất kỳ ai muốn tìm hiểu về Kafka.

Nội dung khóa học

15 phần • 57 bài giảng
1 Giới thiệu & Mục tiêu Khóa học
2 Điều kiện tiên quyết
1 Slide bài giảng
1 Giới thiệu về Kafka
2 Thuật ngữ Kafka và Client APIs
1 Tải xuống và Cài đặt Kafka
1 Mã nguồn
1 Kafka Topics và Partitions - Lý thuyết
2 Thiết lập ZooKeeper/Kafka Broker trên máy cục bộ
3 Tạo Topic, Sản xuất và Tiêu thụ Tin nhắn bằng Giao diện Dòng lệnh (CLI)
4 Sản xuất và Tiêu thụ Tin nhắn có Key
5 Consumer Offsets
6 Consumer Groups
7 Commit Log và Chính sách Lưu giữ
8 Kafka như một Hệ thống Streaming Phân tán
9 Thiết lập Kafka Cluster cục bộ với 3 Kafka Brokers
10 Kafka Cluster phân phối Yêu cầu Khách hàng như thế nào? - Leader/Follower
11 Kafka xử lý Mất dữ liệu như thế nào? - Replication và In-Sync-Replica (ISR)
12 Khả năng Chịu lỗi và Độ ổn định trong Kafka
1 Thiết lập Dự án
2 Gửi Tin nhắn bằng Producer API
3 Xây dựng Kafka Producer - Gửi Tin nhắn Đồng bộ
4 Thêm Logging bằng LogBack
5 Gửi Tin nhắn Bất đồng bộ
6 Gửi Tin nhắn có Key
7 Giao diện Lập trình để Sản xuất Tin nhắn
8 Kafka Producer API - Hậu trường
1 Kafka Producer API - Cấu hình Đảm bảo Giao Tin nhắn
2 Cấu hình acks và min.insync.replicas - Thực Hành
3 Cấu hình retries và retry.backoff.ms - Thực Hành
1 Thiết lập Dự án
2 Tiêu thụ Tin nhắn bằng Consumer API - vòng lặp poll()
3 Xây dựng Kafka Consumer bằng Consumer API
4 auto.offset.reset - earliest vs latest
1 Mở rộng Consumer bằng Consumer Groups
2 Consumer Rebalance
3 Consumer Rebalance & max.poll.interval.ms
1 Commit Offsets - Chiến lược Commit Offset Mặc định
2 Commit Offsets Thủ công
3 Commit Offsets Đồng bộ - dùng commitSync()
4 Commit Offsets Bất đồng bộ - dùng commitAsync()
5 Commit Offsets Cụ thể - dùng CommitSync()
1 Giới thiệu về Rebalance Listeners
2 Triển khai ConsumerRebalanceListener trong Kafka Consumer
3 Commit Offsets bằng ConsumerRebalanceListener
1 Giới thiệu về seekToBeginning() & seekToEnd()
2 seekToBeginning() & seekToEnd() - Thực Hành
3 Giới thiệu về seek()
4 Nhảy đến một offset cụ thể bằng phương thức seek() trong Kafka Consumer - Thực Hành
1 Tại sao cần Serializer/Deserializer Kafka Tùy chỉnh?
2 Xây dựng Serializer Tùy chỉnh trong Kafka Producer bằng Jackson
3 Xây dựng Kafka Producer dùng Serializer Tùy chỉnh
4 Xây dựng DeSerializer Tùy chỉnh trong Kafka Producer bằng Jackson
5 Xây dựng Kafka Consumer dùng Serializer Tùy chỉnh
6 Xuất bản Đối tượng Java Tùy chỉnh bằng StringSerializer và Jackson ObjectMapper
7 Tiêu thụ Đối tượng Java Tùy chỉnh bằng StringDeserializer và Jackson ObjectMapper
1 Mã giảm giá cho các khóa học khác của tôi

Giới thiệu khóa học

Description:

Learn the fundamentals and advanced concepts of Apache Kafka in this course. This course will give you a good understanding of all the concepts through Hands-On

  • This course will walk you through the Kafka concepts step by step

  • All the Kafka concepts will be taught through Hands-On

  • This course will  increase your technical expertise in Kafka

  • This course will give you good exposure to build Kafka Client applications using Java

  • This course will be an eyeopener for people who think Kafka is a complex system and you will find yourself in a better place after you complete this course

  • This course will transfer you from no Kafka experience to an experienced Kafka user.

Course Overview:

Getting Started with Kafka

  • In this section, I will give you all a quick introduction to Apache Kafka, terminologies and different client APIs that are part of Kafka

Download and Install Kafka

  • In this section, we will download the Kafka distribution from the Kafka Website.

Understanding Kafka Components and its Internals - (Theory + Hands-On)

In this section, we will explore the Kafka internals from a theoretical perspective followed by hands-on exploring the Kafka internals.

  • Learn about the Topics and Partitions in Kafka

  • Setup a Local Kafka Cluster with Multiple Brokers

  • Producer/Consumer messages in the Kafka Cluster

  • Learn about Consumer Offsets and Consumer Groups

  • Commit Log and Retention Policy

  • Learn about Kafka Load Distribution and Fault Tolerance and Robustness

Kafka Producer API - Hands-On

In this section, we will learn about building the Kafka Producer to producer messages into Kafka using the producer API

  • Setting up the base-project for Producer

  • Understand how the producer API works

  • Produce messages to the Kafka topic using the Synchronous/Asynchronous approach

  • Understand how Kafka producer API works behind the scenes

Kafka Producer API - Guaranteed Message Delivery Configurations

In this lecture, we will learn about the different configurations that guarantee message delivery into Kafka.

  • Explore some of the producer API Configurations

  • Configuring the acks and min.insync.replicas for guaranteed message delivery

  • Override the retries and retry-back-off-ms value\

Kafka Consumer API - Hands On

In this section, we will learn about building Kafka consumers to read messages from Kafka using the Consumer API.

  • Setting up the base-project for Consumers

  • Consuming Messages using Consumer API - poll() loop

  • Build Kafka Consumer using the Consumer API

  • auto.offset.reset - earliest vs latest

Consumer Groups & Consumer Rebalance

In this section, we will learn about Consumer Groups and Consumer rebalance.

  • Scaling the Consumer using Consumer Groups

  • Consumer Rebalance

  • Consumer Rebalance & max-poll-interval-ms

Consumer Offsets - Default and Manual Offset Management - Hands-On

  • Committing Offsets - Default Offset Commit Strategy

  • Manually Committing Offsets

  • Committing Offsets Synchronously - using commitSync()

  • Committing Offsets Asynchronously - using commitAsync()

  • Committing Specific Offsets - using CommitSync()

By the end of this, you will have a complete understanding of how Apache Kafka works and how to build Kafka client applications using Producer and Consumer API.

Khóa học liên quan

Khám phá thêm các khoá học cùng chủ đề

Hiển thị tất cả khoá học Apache Kafka
Hiển thị tất cả khoá học Big Data
Hiển thị tất cả khoá học Data Engineering
Hiển thị tất cả khoá học Java
Zalo
Tôi có thể tư vấn khoá học cho bạn 😊