Dubbo interview questions

15. Dubbo

1. What is Dubbo?

Dubbo is Alibaba's open source Java-based high-performance RPC distributed service framework, which has now become an Apache Foundation incubation project.

2. What registry does Dubbo use by default, and are there any other options?

It is recommended to use Zookeeper as the registry, as well as Redis, Multicast, and Simple registries, but not recommended.

3. What are the attributes of the Consumer side that can be configured on the Provider?

a, timeout: method call timeout
b, retries: number of failed retries, default retries 2 times c, loadbalance: load balancing algorithm, default random d, actives consumer side, maximum concurrent call limit

4. What serialization framework does Dubbo recommend, and what else do you know?

It is recommended to use Hessian serialization, as well as Duddo, FastJson, and Java's own serialization.

5. Do you know any other distributed frameworks?

Others include Spring cloud, Facebook's Thrift, Twitter's Finagle, etc.

6. What kinds of service containers are built in Dubbo?

Spring Container,Jetty Container,Log4j Container

7. What are the core configurations of Dubbo?

insert image description here

8. What kind of cluster fault tolerance schemes does Dubbo have, and which is the default?

insert image description here

9. What kinds of load balancing strategies does Dubbo have, and which is the default?

insert image description here

10. Advantages of dubbo

a. Single application architecture, when the website traffic is very small, only one application is needed, and all functions are deployed together to reduce deployment nodes and costs. At this point, a data access framework (ORM) that simplifies CRUD workloads is key.
b. Vertical application architecture. When the number of visits gradually increases, the acceleration brought by the addition of a single application to the machine becomes smaller and smaller, and the application is divided into several applications that are not related to each other to improve efficiency. At this point, a web framework (MVC) for accelerating front-end page development is key.
c. Distributed service architecture. When there are more and more vertical applications, the interaction between applications is inevitable. The core business is extracted as an independent service, and a stable service center is gradually formed, so that the front-end application can respond more quickly and change. market demand. At this time, the distributed service framework (RPC) for improving business reuse and integration is the key.

d. When there are more and more services in the mobile computing architecture, problems such as capacity evaluation and waste of small service resources gradually appear. At this time, a dispatch center needs to be added to manage the cluster capacity in real time based on the access pressure and improve the cluster utilization rate. At this point, a Resource Scheduling and Governance Center (SOA) for improving machine utilization is key.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325181663&siteId=291194637