Learning Dubbo (a): Introduction

Source: Internet
Author: User

Dubbo is an open source distributed network widely used by many internet companies in China. Service Framework, even from a global perspective, should be a very comprehensive SOA infrastructure. As an important technical research topic, Dangdang realized some new functions for Dubbo according to its own demand, and named it Dubbox

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/8C/10/wKiom1hgyhKg7P78AAOkBWHw4JA987.png "title=" 1.png " alt= "Wkiom1hgyhkg7p78aaokbwhw4ja987.png"/>


What is Dubbo?


dubbo is a distributed service service framework, dedicated to improving performance and transparency of Rpc remote service invocation scenario, and Span style= "FONT-FAMILY:CALIBRI;" >soa service governance solution.

simply put,Dubbo is a service framework, if there is no distributed demand, in fact, it is not needed, only in the distributed time, only with Dubbo Such a distributed service framework needs, and essentially a service invocation, it's a distributed framework for remote service invocation (Say Goodbye to the WSDLin Web service mode, in the way that the service and the consumer Dubbo registration)

The core part contains:

1.Remote communication: Provides abstract encapsulation of various NIO frameworks based on long connections , including multithreaded models, serialization,

and the "request - Response" mode of information exchange.

2.Cluster Fault tolerance: Provides transparent remote procedure calls based on interface methods, including multi-protocol support, and soft load

cluster support such as equalization, failure tolerance, address routing, and dynamic configuration.

3. Autodiscover: Based on the Registry directory service, the service consumer can dynamically find the service provider to make the

allows the service provider to increase or decrease the machine smoothly.


What can Dubbo do?

1.a transparent remote method call, just like calling a local method, calls the remote method, simply configures, without any

What API Intrusion

2, soft load balancing and fault-tolerant mechanism, can replace F5 and Other hardware load balancer in intranet, reduce cost and reduce single point.

3, service automatic registration and discovery, no longer need to write dead service provider address, registry based on the Interface name Query service

Donor's IP address, and the ability to smoothly add or remove service providers.

4,Dubbo use full Spring configuration, transparent access applications, no API intrusion on the application , only need to use

Spring loads the Dubbo Configuration,Dubbo the Spring - based Schema extension to load.


Dubbo Architecture

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M01/8C/0E/wKioL1hg1bnxHU0SAAOkBWHw4JA025.png-wh_500x0-wm_3 -wmp_4-s_4063347340.png "title=" 1.png "alt=" Wkiol1hg1bnxhu0saaokbwhw4ja025.png-wh_50 "/>


Node role Description:

  provider : exposing service providers.

  consumer : call the service consumer of the remote service.

  registry :

·  Monitor: The Monitoring Center for the call times of the statistics service and the call time.

·  Container: The service runs the container.

Call Relationship Description:

·  0. The service container is responsible for starting, loading, and running the service provider.

·  1. Upon launch, the service provider registers its services with the registry.

·  2. When the service consumer starts, it subscribes to the registration center for the services it needs.

·  3. The registry returns the service provider address list to the consumer, and if there is a change, the registry will push the change data to the consumer based on a long connection.

·  4. service consumers, from the provider address list, based on the soft load equalization algorithm, select a provider to make the call, if the call fails, then choose another call.

·  5. Service consumers and providers, the cumulative number of calls in memory and call time, timed to send statistics every minute to the monitoring center.


Dubbo 's official

http://dubbo.io/  







This article is from "I Love Big gold" blog, please be sure to keep this source http://1754966750.blog.51cto.com/7455444/1886194

Learning Dubbo (a): Introduction

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.