Kafka cluster workflow working?

I have read lot of articles on google how kafka cluster works. Trying to summarizing my understanding here . Please let me know if any point is not correct here?

Producer Side

  1. Say Kafka cluster have one Topic with three partition(P1,P2,P3) on three nodes.
  2. Each partition has two replica(R11, R12),(R21, R22),(R31, R32) on other nodes.
  3. Cluster has a zookeeper.
  4. On kafka startup, kafka elects the leader for each partition say out of P1, R11, R12 , P1 is the leader whereas R11 and R12 are followers.
  5. Producer connects to Kafka cluster which can be any node in cluster and get all metadata info on client side through kafka client side library.
  6. Producer connects to leader partition as leader is responsible for all read and writes.
  7. Partition can be either specified/or selected at run time
    based on message key and no of partition/or round robin fashion.
  8. Producer can go for any acknowledgement level i.e. fire and forget/leader acknowledgement/all insynch replica(ISR) acknowledgement. As explained here

There are two common strategies for keeping replicas in sync,
primary-backup replication and quorum-based replication.In
primary-backup replication, the leader waits until the write completes
on every replica in the group before acknowledging the client. If one
of the replicas is down, the leader drops it from the current group
and continues to write to the remaining replicas. A failed replica is
allowed to rejoin the group if it comes back and catches up with the
leader. With f replicas, primary-backup replication can tolerate f-1
failures.

In the quorum-based approach, the leader waits until a write completes on a majority of the replicas. The size of the replica group
doesn’t change even when some replicas are down. If there are 2f+1
replicas, quorum-based replication can tolerate f replica failures. If
the leader fails, it needs at least f+1 replicas to elect a new
leader.

  1. In case leader fails, zookeeper will select new leader from remaining ISR here (after comparing logs either based on primary-backup replication and quorum-based replication) .

My question on point 8 is that if leader fails in any of the strategy i.e. primary based or quorum based, will Kafka system not be available for producer and consumers ?

Consumer side

  1. Say I have nine consumers all belonging to single consumer group.
  2. Each consumer will be assigned each specific partition out of nine partition.
  3. In case any consumer or partition dies, consumer group coordinator will trigger the re balance as explained here

Right, the Producer writes directly to the partition leader and the Consumer reads similarly, so if the leader is down both producing and consuming will be unavailable on that partition until a new leader is elected.

The producer sends data directly to the broker that is the leader for the partition without any intervening routing tier.

https://kafka.apache.org/documentation/#theproducer

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật