GithubHelp home page GithubHelp logo

doubaokun / metaq-php Goto Github PK

View Code? Open in Web Editor NEW
38.0 5.0 7.0 125 KB

MetaQ PHP client library

Home Page: https://github.com/doubaokun/metaq-php

License: MIT License

PHP 100.00%
consumer zookeeper php metaq-php metaq

metaq-php's Issues

php 客户端是否能够支持启动以后指定客户端的offset ?

php 客户端是否能够支持启动以后指定客户端的offset ? java 客户端中,可以通过consumerConfig 设置启动时候自动拉去某一个offset的值, 消费者经常会有需求就是启动的时候不要拉去之前的消息, 在某些场景下面, 以前的消息没啥用呢..... bruce 大神是否有计划支持一把 ? 谢谢拉~

php消费者接受java消息生产者发送的消息有乱码

重现场景:
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 为乱码?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.