Home  >  Article  >  Backend Development  >  Can php implement dubbo interface?

Can php implement dubbo interface?

(*-*)浩
(*-*)浩Original
2019-10-21 13:54:144798browse

DUBBO is a distributed service framework that is committed to providing high-performance and transparent RPC remote service invocation solutions. It is the core framework of Alibaba's SOA service-oriented governance solution and supports 3,000,000,000 visits per day for 2,000 services. And is widely used in various member sites of Alibaba Group.

Can php implement dubbo interface?

Unfortunately, our company is also using it. The previous solution was to package JAVA into HTTP restful API and call it to the middle layer Node.js or PHP, but in fact there is When the demand is more urgent, direct RPC remote calling may be able to solve some urgent needs. (Recommended learning: PHP video tutorial)

Since the technology stack is PHP and Node.js, I studied it a while ago and summarized it. I hope it can help students who have similar scenarios. Also share the process of how to solve this kind of problem that you don’t understand at all. PS, I have no JAVA development background or PHP development background before.

Understand dubbo and his RPC remote calling principle.

Can php implement dubbo interface?

First of all, this picture is divided into several roles. It was taken from the official website:

Provider: 暴露服务的服务提供方。
Consumer: 调用远程服务的服务消费方。
Registry: 服务注册与发现的注册中心。
Monitor: 统计服务的调用次调和调用时间的监控中心。
Container: 服务运行容器。

To put it more simply, we want Use PHP or NodeJs to implement a Consumer, and the Consumer is related to the Monitor and Registry, and has a calling relationship with the Provider.

After understanding this picture and the above paragraph, a simple analysis shows that the Registry of dubbo service generally uses zookeeper as the registration center. Monitor needs to perform monitoring and statistics on the consumer and service provider. Here only Just implement notifications from the Monitor consumer.

The above is the detailed content of Can php implement dubbo interface?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:How to call php from htmlNext article:How to call php from html