![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Java
文章平均质量分 93
CatPad
川大在读,喜欢英语,编程,理想主义者。
展开
-
【Kafka系列】大禹治水——谈谈Kafka的高性能
欢迎关注,分享更多原创技术内容~微信公众号:ByteRaccoon、知乎:一只大狸花啊、稀土掘金:浣熊say微信公众号海量Java、数字孪生、工业互联网电子书免费送~原创 2023-11-23 14:33:11 · 62 阅读 · 0 评论 -
【Kafka系列】Kafka事务机制
Kafka 的事务机制是一种保证消息系统中一组相关操作要么全部成功,要么全部失败的机制。它其实类似于分布式事务的概念,旨在提供端到端的一次语义(End-to-End Exactly-Once Semantics),确保消息在传输过程中不会被重复、丢失或不一致。具体体现在当生产者发送一组消息时,可以随时决定是否要撤回这段消息,而被撤回的消息消费者那边也不能消费到该消息。原创 2023-11-22 11:44:14 · 170 阅读 · 0 评论 -
【Kafka系列】Kafka的再均衡机制
再均衡是Kafka中用于重新分配消费者组(consumer group)中消费者(consumer)和分区(partition)之间关系的机制。当消费者组内的消费者数量变化,或者消费者订阅的主题发生变化(新增或删除分区),都可能触发再平衡。Kafka提供了三种再平衡策略:Round Robin(轮询),Range(范围)和Sticky(粘性)。Round Robin(轮询): 这种策略会以轮询的方式将所有分区依次分配给消费者,确保每个消费者都能均匀地获得分区。原创 2023-11-21 15:31:21 · 290 阅读 · 0 评论 -
Java Learning Notes-The difference between ">>>" and ">>"
Today,I have met a problem when I wrireJava program,that is the difference between bitwise operator ">>>" and ">>".In C++,there is only ">>" bitwise operator,which performs a bi原创 2019-03-07 22:59:55 · 109 阅读 · 0 评论 -
Java Learning Note-HashMap
1.What is mapAs the difine of map in Collins:"Map is a drawing of a particular area,showing its main features as they would appear if you looked at them from above".In programming language,the mean ...原创 2019-03-22 13:24:16 · 167 阅读 · 0 评论 -
Java Learning Notes-Problem ArrayList cannot be converted to List
List is an interface in Java,so you can not instantiate the type List<?>,the collection class ArrayList extends "AbstractList" and implements the "List" interface.So we should be able to cast a...原创 2019-03-27 21:42:29 · 607 阅读 · 0 评论 -
Java Learning Notes-Stack()
Java util package has provided the inner data structure "Stack",which extends from Vector<E>.In this place,I am going to do a sample explaination about "stack",which should a fundmental knowledg...原创 2019-04-10 16:52:33 · 107 阅读 · 0 评论 -
Java Learning Notes-Passing Function Parameters
There are two terms that describe how parameters can be passed to a function in a programming language.One trem is called "call by value" and the other is called "call by reference".The first term mea...原创 2019-04-09 11:23:49 · 99 阅读 · 0 评论