Discover the secrets you didn't know about Dubbo interview questions

Dubbo is Alibaba's open source distributed service framework. Its biggest feature is that it is structured in a layered manner, which can decouple (or maximize loose coupling) between layers. From the perspective of service model, Dubbo adopts a very simple model, either the provider provides the service, or the consumer consumes the service, so based on this, the service provider (Provider) and the service consumer can be abstracted (Consumer) Two roles. For details about the registry, protocol support, service monitoring, etc., please refer to the following description.

Collection of Dubbo Interview Questions

What communication framework is used by default and are there any other options?

It is also recommended to use the netty framework by default, as well as mina.

Are service calls blocking?

The default is blocking, it can be called asynchronously, and there is no return value to do so.

What registry is generally used? Are there any other options?

It is recommended to use the zookeeper registry, and redis is not recommended.

What serialization framework is used by default and what else do you know?

Hessian serialization is used by default, as well as Duddo, FastJson, and Java's own serialization.

How can service providers implement fail-kick?

The service failure kicks out the temporary node principle based on zookeeper.

How does the online service not affect the old version?

Multi-version development is adopted, which does not affect the old version.

How to solve the problem that the service call chain is too long?

Distributed service tracking can be implemented in combination with zipkin.

What are the core configurations?

核心配置有 dubbo:service/ dubbo:reference/ dubbo:protocol/ dubbo:registry/ dubbo:application/ dubbo:provider/ dubbo:consumer/ dubbo:method/

What protocol does dubbo recommend?

The dubbo protocol is used by default.

Can I directly connect to a service when multiple registrations for the same service are used?

You can connect directly, modify the configuration, or you can directly connect to a service through telnet.

Draw a flow chart for service registration and discovery

See dubbo.io for the flowchart.

How to do fault tolerance in Dubbo cluster?

It is recommended to use Failover to automatically switch to other servers for read operations. By default, it will retry two other servers. It is recommended to use Failfast to fail quickly for write operations. If a call fails, an error will be reported immediately.

What problems did you encounter during use?

Problems during use can be solved by Baidu

Difference between dubbo and dubbox?

Dubbox is based on dubbo and Dangdang has made some extensions, such as adding services that can be restful calls, updating open source components, etc.

Do you know any other distributed frameworks?

Others include spring cloud of spring, thrift of facebook, finagle of twitter and so on.

Summarize

The above is my summary of the secret questions you don't know about developing a large-scale Internet in Java - exploring Dubbo interview questions and their optimization. optimization. If you feel that you have gained something, you can click, follow, favorite, and forward a wave, thank you for your support!

1. Write and type more code, good code and solid basic knowledge must be practiced

2. You can go to Baidu to search for the video of Tencent Classroom Turing Academy to learn the actual case of java architecture, which is quite good.

Finally, every netizen who has read this, thank you for your patience to read it. I hope we can learn and progress together on the road to becoming a better Java programmer! Everyone can win Bai Fumei and go to the peak of the architect's life!

3. If you want to learn about the content of the above courses, you can join the group: 469717771 Verify the terminal strip (06 must pass) Welcome everyone to join!

Guess you like

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