Обучающие видео » Компьютерные видеоуроки и обучающие интерактивные DVD » Программирование (видеоуроки)
Apache Kafka for Event-Driven Spring Boot MicroservicesГод выпуска: 2024
Производитель: Udemy
Сайт производителя:
https://www.udemy.com/course/apache-kafka-for-spring-boot-microservices/Автор: Sergey Kargopolov
Продолжительность: ~13h58m
Тип раздаваемого материала: Видеоурок
Язык: Английский
Описание: In this video course, you will learn how to use Apache Kafka to build Event-Driven Spring Boot Microservices.
This course is designed for beginners and will start from the basics of Microservices and Apache Kafka.
You will learn:
- What is Apache Kafka, and how to work with it using Command Line Interface(CLI),
You will learn how to use Kafka CLI to :
- Start multiple Apache Kafka servers in a cluster,
- Work with Kafka Topics,
- Work with Kafka Producer to produce messages,
- Work with Kafka Consumer to consume messages.
You will learn how to create a basic Spring Boot Microservice that acts as a Kafka Producer. While working with this Microservice you will learn:
- How to send Kafka messages synchronously,
- How to send Kafka messages asynchronously,
- How to work with Acknowledgements, Retries, Delivery and Request timeouts.
You will also learn how to create Kafka Consumer Spring Boot Microservice. While creating Consumer Microservice you will learn to:
- Consume messages from Kafka topic,
- Handle and recover from errors,
- Work with Kafka Dead Letter Topic(DLT),
- Configure multiple consumer microservices to work as a group(Consumer Groups).
- Write Integration tests for Kafka Consumer and Kafka Producer.
- Learn how to implement the Saga design pattern.
All from the very beginning, to help you learn how to create Event-Driven Microservices with Apache Kafka and Spring Boot.
[spoiler="Содержание"]
02:37
Welcome from the Instructor
01:16
02:55
Microservice vs Monolithic application
03:20
Microservices Communication
06:04
05:04
Apache Kafka for Microservices
07:47
Apache Kafka for Microservices Quiz
5 вопросов
Messages and Events in Apache Kafka
05:23
06:14
Ordering of Events in Apache Kafka
05:37
Quiz: Kafka Topics, Partitions and Messages
5 вопросов
Java Development Environment & Free Licence
00:31
What is Apache Kafka broker?
02:31
04:45
Quiz: Kafka Broker
6 вопросов
04:24
Run Apache Kafka on Windows or in Docker
00:12
Start single Apache Kafka broker with KRaft
06:20
Multiple Kafka broker: Configuration Files
11:42
Multiple Kafka broker: Storage folders
03:20
Starting multiple Kafka broker with KRaft
02:33
Stopping Apache Kafka brokers
03:59
Introduction to Kafka Topic CLI
01:30
Creating a new Kafka topic
07:47
List and describe Kafka topics
03:04
Deleting Kafka Topic
02:01
Apache Kafka Topic: Summary PDF document.
00:06
Introduction to Kafka Producer CLI
01:21
Producing Kafka Message without a Key
04:29
Sending Kafka Message as a Key:Value Pair
02:52
Apache Kafka CLI: Producer. Summary PDF document
00:06
Introduction to Kafka Consumer CLI
01:16
Consuming messages from Kafka topic from the beginning
05:07
Consuming new Kafka messages only
02:00
Consuming Key:Value pair messages from Kafka topic
06:12
Consuming Kafka messages in order
05:43
Apache Kafka CLI: Consumer. Summary PDF document
00:06
Source code
00:04
Introduction to Kafka Producer
02:44
Kafka Producer - Introduction to synchronous communication style
04:13
Kafka Producer - A use case for asynchronous communication style
02:46
Quiz: Kafka Producer.
6 вопросов
Creating a new Spring Boot project
07:00
Kafka Producer configuration properties
06:48
Creating Kafka Topic
05:07
Run Microservice to create a new Kafka topic
03:08
Creating Rest Controller
05:24
Creating a Service class
04:38
Creating an Event class
04:00
Kafka Producer: Send Message Asynchronously
10:09
Kafka Asynchronous Send. Trying how it works.
05:40
Kafka Producer: Send Message Synchronously
04:50
Kafka Producer: Handle Exception in Rest Controller
05:16
Kafka Producer: Logging Record Metadata Information
02:22
Kafka Synchronous Send. Trying how it works.
02:45
Source code
00:04
Kafka Producer Acknowledgement: Introduction
06:12
Kafka Producer Retries: Introduction
08:17
Configure Producer Acknowledgments in Spring Boot Microservice
02:04
The min.insync.replicas configuration
05:40
Trying how the min.insync.replicas works
05:52
Kafka Producer Retries
01:47
Trying how Kafka Producer Retries work
03:52
Kafka Producer Delivery & Request Timeout
03:55
Trying how Kafka Producer Delivery & Request Timeout works
03:07
Quiz: Kafka Producer Acknowledgements and Retries
5 вопросов
Kafka Producer Spring Bean Configuration
08:24
Source code
00:04
Introduction to Idempotent Kafka Producer
05:51
Enable Kafka Producer Idempotence in application.properties
04:00
Enable Kafka Producer Idempotence in Spring Bean
07:59
Source code
00:04
Introduction to Kafka Consumer
04:00
Creating a new Spring Boot project
04:50
Kafka Consumer Configuration Properties
06:44
Kafka Consumer with @KafkaEventListener and @KafkaHandler annotations
04:44
Creating the "core" module
03:39
Adding "core" project as a dependency
04:46
@KafkaHandler: Trying how it works
02:30
Kafka Consumer Spring Bean Configuration
10:18
Kafka Listener Container Factory
02:37
Trying if Kafka Consumer Bean Configuration works
01:59
Quiz: Apache Kafka Consumer.
6 вопросов
Source code
00:04
Introduction to Error Handling in Kafka Consumer
02:09
Causing the deserialization problem
03:22
Kafka Consumer ErrorHandlingDeserializer
03:16
Trying how ErrorHandlingDeserializer works
03:26
Source code
00:04
Introduction to Dead Letter Topic(DLT) in Kafka
03:21
Handle errors: The DefaultErrorHandler and DeadLetterPublishingRecoverer classes
03:53
Create and Configure KafkaTemplate object
06:08
Dead Letter Topic in Kafka: Trying how it works
05:01
Quiz: Dead Letter Topic in Kafka
3 вопросов
Source code
00:04
Introduction to Exception handling in Kafka consumer and retries
02:47
Creating retryable and not retryable exceptions in Kafka
02:47
Configure DefaultErrorHandler with a list of not retryable exceptions
02:45
Trying how not retryable exception works
06:24
Register RetryableException and define wait time interval
02:27
Throwing a RetryableException
07:49
Overview of a destination Microservice
03:15
Trying how retry works
08:13
Source code
00:04
Introduction to Kafka Consumer Groups
03:01
Rebalancing and Partition Assignment in Apache Kafka
04:45
Assigning Microservice to a consumer group in Kafka
04:23
Starting up more Microservices
04:26
Trying how partitions assignment works in Kafka
05:00
Multiple consumers consuming messages from Kafka topic
04:22
Quiz. Apache Kafka Consumer Groups
7 вопросов
Idempotent Consumer - Introduction
09:44
Include a unique id into message header
04:26
Reading a unique id from message header
04:07
Adding database-related dependencies
03:34
Configure database connection details
02:43
Creating JPA Entity
06:16
Create JPA Repository
02:40
Storing a unique message id in a database table
06:06
Check if Kafka message was processed earlier
03:56
Trying how it works
11:42
Introduction to Transactions in Apache Kafka
06:40
Demo Microservices and source code
03:24
Enable Kafka Transactions in application.properties
05:24
Enable Kafka Transactions in the @Bean method
05:31
Apache Kafka and @Transactional annotation
04:45
Rollback transaction for specific exception
04:02
Reading committed messages in Kafka Consumer
05:05
Excersize: Configure Consumer Microservice to read "committed" messages only
00:08
Trying how Kafka Transactions work
12:25
Apache Kafka local transactions with KafkaTemplate
05:11
Kafka & Database transactions - Introduction
06:39
Introduction to demo projects & Source Code
02:40
Creating Jpa Transaction Manager
05:19
Synchronized Transaction: Saving to database
04:04
Enable logging for Kafka and Jpa Transaction Managers
03:00
Trying how synchronized transactions work
10:59
Overview of the System Under Test
03:04
Test class annotations
08:55
Creating an empty test method
03:02
Different ways to execute test methods
07:14
Test method structure. Arrange, Act and Assert.
01:00
Implementing the Arrange and Act sections
02:36
Kafka Consumer Configuration in a Test Class
08:49
The setUp() and tearDown() methods
05:59
The Assert section
04:30
Verify Kafka Producer Configuration Properties - Introduction
02:18
Test Method for Idempotent Kafka Producer
01:35
Overview of the Method Under Test
02:22
Creating a new test class
03:32
The 'Arrange' section
02:54
Mocking objects
09:20
The 'Act' and 'Assert' sections
07:39
Testing Kafka Consumer - Trying how it works
03:26
Choreography-Based Saga
05:51
Orchestration-Based Saga
04:28
Saga design pattern - Quiz
5 вопросов
IntelliJ IDEA Ultimate edition licence
00:29
Reserve Product in Stock - Introduction
01:43
Source Code(Saga) + Base project overview
05:46
Publish OrderCreatedEvent
11:18
Publish OrderCreatedEvent - Trying how it works
08:13
Handle OrderCreatedEvent
02:08
Send ReserveProductCommand
07:43
Save order status to a History database table
02:49
Trying how it works
05:25
Handle ReserveProductCommand
02:02
Reserve Product in Stock - business logic
03:16
Publish the ProductReservedEvent
06:40
Publish ProductReservationFailedEvent
03:07
Trying how it works
04:55
Handle the ProductReservedEvent
06:54
Handle the ProcessPaymentCommand
02:22
Handle Process Payment Command - Business Logic
04:59
Publish Payment Processed and Payment Failed events
08:32
Handle PaymentProcessedEvent
06:32
Handle the ApproveOrderCommand
06:23
Handle the OrderApprovedEvent
02:07
Saga Happy Path. Trying how it works.
04:01
Introduction to Compensating Transactions in Saga
04:51
Source code(Saga compensating transactions) & Important note
00:36
Handle PaymentFailedEvent
01:50
Publish CancelProductReservationCommand
02:35
Handle CancelProductReservationCommand
02:10
Publish ProductReservationCancelledEvent
02:26
Handle ProductReservationCancelledEvent
03:46
Handle the RejectOrderCommand
03:04
Saga Compensating Transactions - Trying how it works
07:54
Introduction to Running Apache Kafka in a Docker Container
00:15
Download and Install Docker
04:09
Kafka Docker Compose: Initial Configuration
05:38
Apache Kafka KRaft Configuration
06:01
Apache Kafka Listeners Configuration
08:47
Kafka Docker Constainer: Volumes
03:37
Docker Compose and Environment File for Apache Kafka
02:09
Starting Single Kafka Server in Docker Container
02:42
Execute Apache Kafka CLI Scripts within Docker Container
06:24
Execute Apache Kafka CLI Commands in Docker from the Host Machine
02:30
Execute Apache Kafka CLI Commands on the Host Machine
05:07
Multiple Kafka Brokers in a Docker Compose File
05:01
Running multiple Kafka servers in Docker containers - Trying how it works
04:23
Install Apache Kafka on Windows. Article.
00:29
00:10
Bonus lecture
02:10
[/spoiler]
Файлы примеров: присутствуют
Формат видео: MP4
Видео: AVC, 1280x720, 16:9, 30fps, ~1300kbps
Аудио: AAC, 44.1kHz, 62,8kbps, stereo
[spoiler="Скриншоты"]

[/spoiler]