#apachekafka #coding #code #java #javadevelopment #programming #youtubeshorts

TheCodeAlchemist · Intermediate ·🏗️ Systems Design & Architecture ·1y ago

Key Takeaways

The video demonstrates using Apache Kafka for decoupling services in a system design, specifically between an order service and a notification service, allowing for scalability and preventing slowdowns in one service from affecting another.

Full Transcript

so what would happen in this case when user makes an API call to order service order service will create a new order in the system then instead of calling the notification service directly it will create an event that will be stored to this order Topic in Kafka an auto service can now move on it can process another order and similarly it can create next event that will be added or appended to the same topic now notification service when it's available depending on its speed and throughput it will hold this topic it will pick a new event it will consume that event and send the notifications to interested parties so when we are using CF we can scale this whole system we can decouple order service and notification service and a slowness in notification service would not slow down the order service because these are decoupled notification service can process the events at its own speed it will not block the order service all right so this is a very simple use case that shows how can we use
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Playlist UUjEfGki6QSKs0mL6-h2pm3Q · TheCodeAlchemist · 14 of 50

1 #java threadlocal #coding #programming #education #softwareengineer #shorts
#java threadlocal #coding #programming #education #softwareengineer #shorts
TheCodeAlchemist
2 ThreadLocal values #java #coding #codingtutorial #programming #programmer #education #shorts
ThreadLocal values #java #coding #codingtutorial #programming #programmer #education #shorts
TheCodeAlchemist
3 Immutable Design and Java Concurrency | Immutability Explained
Immutable Design and Java Concurrency | Immutability Explained
TheCodeAlchemist
4 #java concurrency and immutability #coding #programming #100k #shorts #javaprogramming
#java concurrency and immutability #coding #programming #100k #shorts #javaprogramming
TheCodeAlchemist
5 MASTER HTTP Basic Authentication in Spring Boot in Just 1 Hour | Step-by-Step Tutorial
MASTER HTTP Basic Authentication in Spring Boot in Just 1 Hour | Step-by-Step Tutorial
TheCodeAlchemist
6 #springsecurity #java #coding #programming #springboot #education #javaprogramming #shorts
#springsecurity #java #coding #programming #springboot #education #javaprogramming #shorts
TheCodeAlchemist
7 Encoding passwords in #springsecurity #springboot #java #programming #coding #security
Encoding passwords in #springsecurity #springboot #java #programming #coding #security
TheCodeAlchemist
8 #springboot #coding #springsecurity #shorts #java #programming
#springboot #coding #springsecurity #shorts #java #programming
TheCodeAlchemist
9 SECURE Your App with Roles and Permissions in Spring Security!
SECURE Your App with Roles and Permissions in Spring Security!
TheCodeAlchemist
10 #springsecurity roles & permissions #java #programming #coding #shorts #springboot
#springsecurity roles & permissions #java #programming #coding #shorts #springboot
TheCodeAlchemist
11 #java #springboot #spring #springsecurity #coding #programming #shorts
#java #springboot #spring #springsecurity #coding #programming #shorts
TheCodeAlchemist
12 Mastering Pre-Authentication with API Keys Like a PRO
Mastering Pre-Authentication with API Keys Like a PRO
TheCodeAlchemist
13 What is an Event Streaming Platform #kafka #java #coding #youtubeshorts
What is an Event Streaming Platform #kafka #java #coding #youtubeshorts
TheCodeAlchemist
#apachekafka #coding #code #java #javadevelopment #programming #youtubeshorts
#apachekafka #coding #code #java #javadevelopment #programming #youtubeshorts
TheCodeAlchemist
15 Running Kafka in KRaft Mode without Zookeeper
Running Kafka in KRaft Mode without Zookeeper
TheCodeAlchemist
16 #tutorial #kafka #coding #javadevelopment #java #programming #youtubeshorts
#tutorial #kafka #coding #javadevelopment #java #programming #youtubeshorts
TheCodeAlchemist
17 Kafka Producer and Consumer with Java: Hands-On Tutorial
Kafka Producer and Consumer with Java: Hands-On Tutorial
TheCodeAlchemist
18 How to Use Kafka Consumer Groups in Java | Beginner-Friendly Demo
How to Use Kafka Consumer Groups in Java | Beginner-Friendly Demo
TheCodeAlchemist
19 #kafka consumer groups #kafkatutorial #java #programming #coding #shorts #apachekafka
#kafka consumer groups #kafkatutorial #java #programming #coding #shorts #apachekafka
TheCodeAlchemist
20 Sticky vs Hash Partitioner in Kafka: Full Guide + Java Consumer Group Demo
Sticky vs Hash Partitioner in Kafka: Full Guide + Java Consumer Group Demo
TheCodeAlchemist
21 Step-by-Step Kafka Transactions Demo
Step-by-Step Kafka Transactions Demo
TheCodeAlchemist
22 The DEVELOPER'S Guide to AI and ML: Fundamentals
The DEVELOPER'S Guide to AI and ML: Fundamentals
TheCodeAlchemist
23 LLMs Explained: Tokens, Embeddings, and API Basics
LLMs Explained: Tokens, Embeddings, and API Basics
TheCodeAlchemist
24 Your first OpenAI API App - Step-by-Step Guide
Your first OpenAI API App - Step-by-Step Guide
TheCodeAlchemist
25 #chatgpt #llm #openai #tutorial #technology #tech #programming
#chatgpt #llm #openai #tutorial #technology #tech #programming
TheCodeAlchemist
26 JVM Bytecode Made Simple: Essential Concepts
JVM Bytecode Made Simple: Essential Concepts
TheCodeAlchemist
27 Master #java Bytecode #jvm #jvminternals #programming #coding #shorts
Master #java Bytecode #jvm #jvminternals #programming #coding #shorts
TheCodeAlchemist
28 #jvm operand #stack #explained #java #coding #programming
#jvm operand #stack #explained #java #coding #programming
TheCodeAlchemist
29 JVM Internals: JVM Opcodes and Java ClassFile Explained
JVM Internals: JVM Opcodes and Java ClassFile Explained
TheCodeAlchemist
30 Java Bytecode Deep Dive | What JVM Sees That You Don’t
Java Bytecode Deep Dive | What JVM Sees That You Don’t
TheCodeAlchemist
31 #java #bytecode constant pool #programming #coding #youtubeshorts
#java #bytecode constant pool #programming #coding #youtubeshorts
TheCodeAlchemist
32 Inside the JVM: Class Loading Explained
Inside the JVM: Class Loading Explained
TheCodeAlchemist
33 Java Developers: You MUST Understand These 5 JVM Memory Areas
Java Developers: You MUST Understand These 5 JVM Memory Areas
TheCodeAlchemist
34 User Signup with Email Verification 🔥 Spring Boot + Spring Security
User Signup with Email Verification 🔥 Spring Boot + Spring Security
TheCodeAlchemist
35 How to Build a Secure Password Reset Flow | Spring Security
How to Build a Secure Password Reset Flow | Spring Security
TheCodeAlchemist
36 #springboot #springsecurity #passwordreset #java #programming #javadeveloper #programmingshorts
#springboot #springsecurity #passwordreset #java #programming #javadeveloper #programmingshorts
TheCodeAlchemist
37 JWT Simplified | What Developers Must Know About Token-Based Auth
JWT Simplified | What Developers Must Know About Token-Based Auth
TheCodeAlchemist
38 #jwt #security #springsecurity #springboot #java #programming #coding #codingtutorial #codingtips
#jwt #security #springsecurity #springboot #java #programming #coding #codingtutorial #codingtips
TheCodeAlchemist
39 #jwt #jwtauthentication #authentication #security #websecurity #springsecurity #springboot #java
#jwt #jwtauthentication #authentication #security #websecurity #springsecurity #springboot #java
TheCodeAlchemist
40 Master Spring Security JWT in 1 Hour
Master Spring Security JWT in 1 Hour
TheCodeAlchemist
41 Want to Master Payment Processing? Watch This Now
Want to Master Payment Processing? Watch This Now
TheCodeAlchemist
42 #paymentgateways #java #coding #programming
#paymentgateways #java #coding #programming
TheCodeAlchemist
43 #education #paymentgateways #payments #paypaltutorial #shorts #programming #programmingshorts
#education #paymentgateways #payments #paypaltutorial #shorts #programming #programmingshorts
TheCodeAlchemist
44 Stripe Payments with Spring Boot | Full Hands-On Tutorial
Stripe Payments with Spring Boot | Full Hands-On Tutorial
TheCodeAlchemist
45 #paymentgateways with #springboot #java #coding #programmingshorts #programming
#paymentgateways with #springboot #java #coding #programmingshorts #programming
TheCodeAlchemist
46 #java #javacoding #coding #paymentgateways #payments #springboot #springboottutorial
#java #javacoding #coding #paymentgateways #payments #springboot #springboottutorial
TheCodeAlchemist
47 #java #coding #programming #jvm #codingtips #programmingshorts
#java #coding #programming #jvm #codingtips #programmingshorts
TheCodeAlchemist
48 Can Spring Boot Apps Really Deploy in Minutes on Kubernetes?
Can Spring Boot Apps Really Deploy in Minutes on Kubernetes?
TheCodeAlchemist
49 #java on #kubernetes with #springboot #programming #coding #programmingshorts
#java on #kubernetes with #springboot #programming #coding #programmingshorts
TheCodeAlchemist
50 Spring Boot + Postgres on Kubernetes | Cloud-Native Series
Spring Boot + Postgres on Kubernetes | Cloud-Native Series
TheCodeAlchemist

This video teaches how to use Apache Kafka to decouple services in a system design, allowing for scalability and preventing slowdowns. It demonstrates a simple use case where an order service and a notification service are decoupled using Kafka. By using this approach, developers can design more efficient and scalable systems.

Key Takeaways
  1. Create a new order in the system using an API call
  2. Create an event and store it in a Kafka topic
  3. Allow the order service to process another order
  4. Create another event and add it to the same Kafka topic
  5. Use the notification service to consume events from the Kafka topic and send notifications
  6. Scale the system using Kafka and decouple services
💡 Using Apache Kafka to decouple services allows for scalability and prevents slowdowns in one service from affecting another.

Related AI Lessons

Up next
Retracing It All With My Son
Ginny Clarke
Watch →