GithubHelp home page GithubHelp logo

dubbo-php-framework's Introduction

English | 中文

dubbo-php-framework

dubbo-php-framework is a RPC communication framework for PHP language. It is fully compatible with Dubbo protocol, and can be used as provider terminal and consumer terminal simultaneously. Using zookeeper for service registration discovery, and using fastjson and hessian2 for Serialization

arch

Introduction

  • php provider runs in multiple processes. The worker process is used to process specific business, the manager process controls the lifecycle of the worker process, and the master process processes the network IO.
  • Agent monitors the change of provider address information in registry and synchronizes them to local memory for all php consumers on the machine to share
  • consumer、 agent are deployed on all consumer machines and communicate with each other on unix socket or TCP socket provider is deployed on all provider machines to control the lifecycle of all php providers on that machine

Changelog

  • Rewrite the entire code, have better readability, and expand (help more people join in)
  • Introduce composer for management loading, which is beneficial for installation and use as a component of other frameworks.
  • The original agent module was changed from c + redis to php to reduce component dependencies.
  • Provider, consumer, agent and other configuration files are independent of each other, and the storage location is customized.
  • Both provider and consumer support serialization of hessian2 data.
  • Configuration file format changed from ini to yaml, reducing redundant fields and improving readability.
  • Remove log4php log component, provide external log component implementation interface for custom implementation.
  • The provider module introduces annotations to register existing code as a dubbo service without modification, without intrusion.
  • The swoole_server configuration and callback function can be customized by the user, which is helpful for users to optimize the service according to the current application scenario.
  • The TCP connection is maintained while consuming the same ip: port provider.
  • The returned hessian serialized data is transformed from a complex object into an array after parsing.
  • The data collected by monitor is more complete.

Wiki: 中文

dubbo-php-framework's People

Contributors

crazyxman avatar

Watchers

 avatar

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.