doubaokun / metaq-php Goto Github PK
View Code? Open in Web Editor NEWMetaQ PHP client library
Home Page: https://github.com/doubaokun/metaq-php
License: MIT License
MetaQ PHP client library
Home Page: https://github.com/doubaokun/metaq-php
License: MIT License
php 客户端是否能够支持启动以后指定客户端的offset ? java 客户端中,可以通过consumerConfig 设置启动时候自动拉去某一个offset的值, 消费者经常会有需求就是启动的时候不要拉去之前的消息, 在某些场景下面, 以前的消息没啥用呢..... bruce 大神是否有计划支持一把 ? 谢谢拉~
重现场景:
java 客户端使用Metamorphosis源码metamorphosis-example工程中的TradeSender发送消息(原来代码发送的是java对象,已经改为发送字符串,形如: abcde), 参照reademe安装php端zk依赖以后, 执行php SimpleConsumer.php, SimpleConsumer.php中部分主要代码如下:
17 while (1) {
18 $msgs = $metaq->getNext();
19 foreach ($msgs as $msg) {
20 $strMsg = $msg['msg'];
21 var_dump($strMsg);
22 # $obj = json_decode($strMsg);
23 # var_dump($obj);
24 }
输出结果:
??tabcde
结果中 ??t 为乱码?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.