Why use dubbo?

When the scale of the website reaches a certain level , ordinary MVC The framework can no longer meet our needs , So the distributed service framework and mobile architecture are highlighted .

 
 

Single application architecture

When website traffic is low , Just one app , Deploy all functions together , To reduce deployment nodes and costs . here , Data access framework to simplify the work of adding, deleting, modifying and querying (ORM) Is the key .

Vertical application architecture

When the number of visits increases gradually , Single application increases the acceleration brought by the machine is getting smaller and smaller , Split the application into several unrelated applications , To improve efficiency . here , For accelerating front-end page development Web frame (MVC) Is the key .

Distributed service architecture

As more and more vertical applications , Interaction between applications is inevitable , Extract core business , As an independent service , Gradually form a stable service center , Enable front-end applications to respond more quickly to changing market demands .

here , Distributed service framework for business reuse and integration (RPC) Is the key .

Flow computing architecture

When the service is more and more , Capacity assessment , Problems such as waste of small service resources are gradually emerging , At this time, it is necessary to add a dispatching center to manage the cluster capacity in real time based on the access pressure , Improve cluster utilization .

here , Resource scheduling and Governance Center for improving machine utilization (SOA) Is the key .

I don't say much nonsense , Let's build one first and see what's going on ?–

For me now it's just , I A The project wants to call B What to do with the methods in Engineering ? I import No, come in , At this time, I need to call the method remotely , How to call it remotely ?dobbu Give me a good open source framework , Then I'll use it to operate it !

dubbo and zookeeper What's the matter ?

To put it simply, for example :dubbo It's the animals in the zoo ,zookeeper It's the zoo . If tourists want to see animals, then go to the zoo . For example, if you want to see a tiger , Then the zoo has you to see . In other words, we put a lot of different dubbo( animal ) Put it in zookeeper( In the zoo ) Provide us tourists to watch . There are three keys to this process : place 、 Supplier 、 consumer .

Another distributed project ,server( consumption ) Layer and service( supply ) The layers are split apart , Deploy in different tomcat in , I am here server Layer needs to call service Layer interface , But the two run in different tomcat The service under the interface cannot be directly intermodulated , Then you can pass zookeeper and dubbo Realization . It's like putting animals in the zoo , We're going to see it. Just go to the zoo . Instead of going to the places where animals live , There will be life safety concerns ( For example, you go to see tigers ).

We go through dubbo establish service This service , And to the zookeeper The above registration , Fill in the corresponding zookeeper Where the service is Of IP And port number .

 
 

Here's our server Layer needs to call service The interface , Because in different projects , It can't be found directly service Interface , We use dubbo Let's refer to the registered dubbo service .

Let's fill in zookeeper Where the service is Of IP And port number , Fill in the name of the interface we need to call .

 
 

such , You can call

Use dubbo Here's a picture from the official website dubbo:

original text :https://blog.csdn.net/yuanlaijike/article/details/79654183

link :https://www.jianshu.com/p/5e3cbac93689

Why use dubbo,dubbo and zookeeper More about relationships

  1. IntelliJ IDEA 2017 Dubbo Elastic-job Redis Zookeeper RabbitMQ FastDFS MyCat Introduction and partial implementation ( 3、 ... and )

    Preface     First of all, I need to explain , It's different from the installation section in the previous two chapters , This article mainly cleans up these plug-ins / frame What are they for , Most of them will be used on the server or monitoring tools or other , As a novice, build a general idea to better understand your project . Nonsense ...

  2. dubbo Sign up to zookeeper

    zk Registry installation , See dubbo Official website :http://dubbo.apache.org/books/dubbo-admin-book/install/zookeeper.html provider.xm ...

  3. dubbo part The relationship between configuration -dubbo github Official case

    1.dubbo There is one dubbo.properties As the default configuration The default configuration can be used without adding a new configuration dubbo dubbo.properties The content of ( come from https://github ...

  4. SpringBoot And Dubbo Integration of -zookeeper And the monitoring center

    about Dubbo It's already very common to use , Since Alibaba opened source , Many domestic companies have adopted dubbo To develop a project . But then dubbo When it's very hot , All of a sudden it stopped updating , Only Dangdang has expanded its foundation (dubbox ...

  5. Dubbo( Two ):zookeeper Registry Center

    zookeeper Registry Center Zookeeper yes Apacahe Hadoop Subprojects , Is a tree directory service , Support change push , For a Dubbo Registry of services , Higher industrial strength , Can be used in a production environment , and ...

  6. 【Dubbo&&Zookeeper】3、Failed to read schema document 'http://code.alibabatech.com/schema/dubbo/dubbo.xsd' The solution to the problem

    from :http://blog.csdn.net/gaoshanliushui2009/article/details/50469595 Our company made Ali's dubbo, But Ali's open source website http://c ...

  7. Master Dubbo——Dubbo Details of supported protocols

    turn : Master Dubbo——Dubbo Details of supported protocols 2017 year 06 month 02 Japan 22:26:57 Grandchildren _ enlightenment _ empty Read the number :44500   Dubbo Support dubbo.rmi.hessian.http.webse ...

  8. [DUBBO]Dubbo Console view method

    1.dubbo There are many ways to install the console , For example, reprint http://dtbuluo.com/blog/archives/37 2.dubbo Console view Since our group is developed and installed dubbo.zookeeper wait ...

  9. [dubbo] dubbo Based on using

    Dubbo Is a distributed services framework , Committed to providing high performance and transparency RPC Remote service invocation scenarios , as well as SOA Service governance solution . To put it simply ,dubbo It's a service framework , If there are no distributed requirements , You don't need to use it , Only when distributed ...

  10. Failed to read schema document 'http://code.alibabatech.com/schema/dubbo/dubbo.xsd' The solution to the problem

    Failed to read schema document 'http://code.alibabatech.com/schema/dubbo/dubbo.xsd' The solution to the problem About dubbo Service ...

Random recommendation

  1. Uva 11988 Broken Keyboard

    Because you have to move these characters often , So the data structure is linked list . next[i] Play the role of the list is similar to the next The pointer . 0. It should be noted that , Judge cur == last ? If yes be last=i 1. Another ...

  2. [SQL] To query 9 Any period of time in the month's data , It could be a month , It could be 1 The day is coming 15 Japanese

    SELECT * FROM [ Table name ] WHERE datediff(month,[ Name ],

  3. Android Used in development SQLite database

    SQLite Introduce SQLite A very popular embedded database , It supports SQL Language , And it has good performance with very little memory . Besides, it's open source , Anyone can use it . Many open source projects ((Mozilla, PHP ...

  4. Strongly connected branches of a digraph Tarjan Algorithm explanation + HDU 1269 Connected graph Tarjan The final report

    The title is very simple. Let's talk about it briefly   Strongly connected branches of a digraph Tarjan Algorithm Strongly connected branches of a digraph Tarjan The algorithm pseudo code is as follows :void Tarjan(u) {dfn[u]=low[u]=++index// Conduct DF ...

  5. VMware Workstation Common problem solving

    This article takes FAQ Sort it out in a different way , You can search by keyword . Question 1 :VMware install 64 Bit operating system error “ This host supports Intel VT-x, but Intel VT-x In disabled state ” Question two :This v ...

  6. Microsoft Internet Explorer v11 / XML External EntityInjection 0day

    [+] Credits: John Page (aka hyp3rlinx) [+] Website: hyp3rlinx.altervista.org[+] Source:  http://hyp3 ...

  7. ArcSDE

    ArcSDE, Data path , yes ArcGIS The spatial data engine of , It's in a relational database management system (RDBMS) Access to store and manage multi-user spatial databases in . From the perspective of spatial data management ,ArcSDE It's a continuous spatial data model , With the aid of this ...

  8. C++ Basic knowledge of -Day5

    Today we are mainly talking about class extension 1. How class member functions are stored First of all, we introduce the storage method of class member functions ,C++ After introducing the concept of object-oriented ,C Some of the language, like static/const And so on , Make some upgrades , In this case, it is necessary to keep compatibility , also ...

  9. File system block In the database block And in memory page Basic knowledge summary ( I understand May be wrong )

    1. In the operating system file system block In the file system block It's the smallest read-write unit in the file system , stay HDD The age of disk , commonly block The size of may be the same as the sector size of the disk 512bytes And for this reason MBR Qi ...

  10. [Java in NetBeans] Lesson 05. Method/function

    The reference videos and pictures for this course are from youtube. The main points learned are : Define a method:(motivation: write one time, but use it many times ...