??????????
???? agent(c????)???? ????PHP????????????????????????????????agent???? ------------------ ???????? ------------------ ??????: "crazyxman01"<[email protected]>; ????????: 2019??7??19??(??????) ????10:58 ??????: "dev"<[email protected]>; ????: "needrunning"<[email protected]>; ????: Re: ??dubbo-php-framework???????????????? 1. ????????dubbo-php-framework????include????????????????????????????????????????????????composer??????????2. php????????????????????php-fpm??????????????????????????????????????????????????????????????????????????agent(c????)??????????????dubbo??????????redis??????????????????????????????redis????????????redis????dubbo?????????????????? needrunning <[email protected]> ??2019??7??18?????? ????11:27?????? ?????? ?????????? dubbo-php-framework ??????????????????????????????????????????PHP ??????????PHP?????? ????dubbo??????????????????????????PHP??????????????????????????PHP???????? ?????????????????????????????????????????????????????????????? ?????? @Jinxi Wang???????? 1 ????????????????????????????PHP?????????????????????????????????? ????YII2?? 2 PHP?????????? ??????????????????????????????????????????????????Swool?? ???? ------------------ ???????? ------------------ ??????: "Huxing Zhang"<[email protected]>; ????????: 2019??7??18??(??????) ????9:39 ??????: "dev"<[email protected]>; ????: "crazyxman01"<[email protected]>; ????: Re: ??dubbo-php-framework???????????????? Hi, It really glad to see so many improvement! Hope someone in the dubbo-php-framework could take a look. Let's try to contact the original author of this project. On Wed, Jul 17, 2019 at 8:09 PM Ian Luo <[email protected]> wrote: > > forward to @dev > > ---------- Forwarded message --------- > From: Jinxi Wang <[email protected]> > Date: Wed, Jul 17, 2019 at 2:48 PM > Subject: Re: ??dubbo-php-framework???????????????? > To: Ian Luo <[email protected]> > Cc: Huxing Zhang <[email protected]>, <[email protected]> > > > ???????????? > > > ??????dubbo-php-framework??????????????????????????consumer?????????????????????????????????????????????????? > github?????????????????????????????????????????????????? > > ?????????????????????????????? > > ???????????????? > 1??????hessian??????????????????????????crazyxman/hessian-parser???????????? > 2??dubbo????????????????Type????????????????????:short,int,integer,long,float,double,bool,boolean,string,arrayList,Map,Object > 3??dubbo????version,group??????????????????????????????????1.0.0,*????????, > ??????????????????dubbo??????version??group?????????????? > 4????????????????????dubbo??????serialization????????????????????????????????????????????????????????????????fastjson???? > 5??dubbo > consumer??????????????????????Exception????????ConsumerException???????????? > 6????????????????????15????20????????,????????iotimeout??????????????????????iotimeout???? > 7??????????????????????????????java/lang/Object?????????????????????????????? > 8??redis??????????????????????????????(agent+redis????????????????????) > 9??redis?????????????????????????????????????????????? > 10??redis??????????????, ???????????????????????????????????????????????????? > > ?????????? > [consumer_config] > redis_connect_type = TCP //TCP,SOCK ????TCP > redis_hosts = 11.0.16.248:6379,11.0.16.249:6379 //????host?????????????????? > 127.0.0.1:6379 > redis_connect_timeout = 1 // ????1?? > redis_read_timeout = 2 //????2?? > redis_retry_count = 1 //????????1?? > > ???????????????????? > require_once('dubbo-php-framework/consumer/Type.php'); > $service = 'com.imooc.springboot.dubbo.demo.DemoService'; > $proxy = FSOFApi::newProxy($service, 3); > > //??????????????Type??????????????????????????????????????????????????????, > ???? > $ret = $proxy->invoke("sayHello", Type::integer(123)); > ???? > $ret = $proxy->invoke("sayHello", 123); > > $ret = $proxy->invoke("sayHello2", Type::string("zhangsan")); > $ret = $proxy->invoke("sayHello2", "zhangsan"); > > $ret = $proxy->invoke("sayHello3",Type::arrayList(['a', 10000, "????"])); > $ret = $proxy->invoke("sayHello3",['a', 10000, "????"]); > > $ret = $proxy->invoke("sayHello4", Type::map(['a'=>"b", 10 => "v"])); > $ret = $proxy->invoke("sayHello4", ['a'=>"b", 10 => "v"]); > > $ret = > $proxy->invoke("sayHello5",Type::object('com.imooc.springboot.dubbo.demo.dto.TestObjectDemo', > ['name' => '????', 'age' => 10]), Type::string("hello"), Type::integer(30)); > > ???? > ???? > > Ian Luo <[email protected]> ??2019??7??5?????? ????11:47?????? > > > ???? dubbo-php-framework ???????????????? php ???????? dubbo 2.7 > > ???????????????????????????????? > > > > On Mon, Jun 17, 2019 at 11:18 AM Jinxi Wang <[email protected]> wrote: > > > >> ???????? > >> ????????????github > >> apache????dubbo-php-framework???????????????????????????????????????? > >> ????????????fastjson???????????????????????????????????????????? > >> ??????dubbo-php-framework???????????????????????????????????????????????????????????????? > >> > >> ?????? > >> ?????? > >> > > -- Best Regards?? Huxing
