Dubbo Summary (iii)--DUBBO Introduction and project Creation

Source: Internet
Author: User

The currently used framework is the SSH or SSM framework, and I chose the SPRINGMVC Spring and MyBatis Framework on the Java EE framework. MySQL is used in the database. Use maven and Git for project management.

Node role Description:
Provider: Service provider for exposing services
Consumer: Invoking a service consumer of a remote service
Registry: Registration Center for service Registration and discovery
Monitor: The monitoring Center for the number of calls and call times of the statistics service
Container: Service Run 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.


Engineering Structure:

Test-parent Parent Project

Test-facade-user User Service Interface

Test-serviceuser User Service Interface implementation

Test-web Service Consumers


The code is uploaded later in the attachment



Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Dubbo Summary (iii)--DUBBO Introduction and project Creation

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.