PHPKafka 1.1.1 is released, supporting functions such as sticky allocation of consumer partition allocation strategy

PHP Kafka client, supports PHP-FPM, Swoole environment use. The structure of the communication protocol is generated based on the JSON file in the Java version. This may be the PHP Kafka client that supports the most message types in history, supporting all 50 APIs. The generation and consumption of messages has been realized.

Longlang's official website: https://www.longlang.org

Enhance

Support sticky distribution of consumer partition distribution strategy  -\longlang\phpkafka\Consumer\Assignor\StickyAssignor.
Consumers will also update brokers now.
Both consumer and producer configurations have added bootstrapServers, and the original bootstrapServer can still be used as an alias.

optimization

  • Optimized some code

repair

Fix the problem that the broker in ConsumerConfig is an array.
Fix Broker->getClient().
Fix the problem that phpunit will also be introduced when used in PHP <= 7.3.
Fix the use of the corresponding broker to send grouped messages.

download

Github:  https://github.com/longyan/phpkafka/releases/tag/v1.1.1
Gitee mirror:  https://gitee.com/longzhiyan/phpkafka If you

have questions, you can join our official discussion group: 116305927

About Longzhiyan Community:

Qingdao Longzhiyan Software Co., Ltd. was established by a joint venture between the famous Swoole team and the Zen Tao team. The main mission of Longzhiyan is to make up for PHP's shortcomings, improve the PHP ecosystem, and provide strong technical support for PHP users in China. Our project will be mainly released in an open source way. If you have any good ideas, pain points, or want to participate in our development, please contact us.

Our contact information: [email protected]    https://www.longlang.org

Message to PHPer friends:

1. You are not alone. There are a large number of small partners all over the world using PHP.
2. PHP may be one of the best supported languages ​​locally. Our purpose of establishing Longzhiyan Community is to strengthen localization support.
3. PHP is becoming more rigorous and standardized, while maintaining its flexibility. This aspect is well balanced.
3. The execution speed of PHP is getting faster and faster, and the future application scenarios will be broader, not just limited to the web.
4. PHP is a programming language that pays special attention to practical results. Very suitable for lean and agile teams.
5. Empty talk is useless, work is done. There is no need for PHPer to fight. It is important to improve yourself and improve your income and quality of life.
6. PHP is no longer the PHP of yesteryear. PHPer should also keep pace with the times. Good technology and language should be understood and used for me.

New PHP, New PHPer.

Guess you like

Origin www.oschina.net/news/126914/phpkafka-1-1-1-released