Dubbo------- Three ways of running a service

1. Running with a Servlet container (Tomcat, Jetty, etc.) is not recommended That is, make the project a web project, start spring in web.xml, and then start the dubbo service in spring.The dubbo service started with tomcat.However, this is not recommended because it adds complexity and wastes memory re ...

Posted on Mon, 20 Jan 2020 20:08:08 -0500 by codrgii

ByteBuddy manipulating Java bytes example: automatically removing spaces on both sides of a string

I learned a little bit about ByteBuddy today. Its official warehouse address is: https://github.com/raphw/byte-buddy. Official description: Runtime code generation for the Java virtual machine.   Anyone who has written Java knows that Java only supports interface based dynamic proxies. If your class does not implement an interface, and yo ...

Posted on Tue, 14 Jan 2020 06:07:37 -0500 by FidelGonzales

dubbo exposes HTTP services

dubbo exposes HTTP services Don't get lost. Welcome to visit again! Catalog dubbo exposes HTTP services Preface Preparation HttpProviderConf configuration class Request response input and output parameters HttpRequest input HttpResponse response Exposure service controller Preface Ge ...

Posted on Mon, 13 Jan 2020 10:12:57 -0500 by carylson

Service Reference for Dubbo Source Analysis 4

This article was translated from original text In the end Catalog 1. Introduction 2. Principles of Service Reference 3. Source Code Analysis 3.1 Disposal Configuration 3.2 Reference Services 3.2.1 Create Invoker 3.2.2 Create proxy 4. Summary supplement Service Reference Call Chain 1. Introduction In D ...

Posted on Sun, 12 Jan 2020 21:08:47 -0500 by itsjareds

Spring boot integrates Dubbo for distributed development

Since Dubbo supports Spring boot, the integration of Dubbo and Spring has become more simple. Here are the complete steps:   1. Introduce dependency <dependency> <groupId>com.alibaba.boot</groupId> <artifactId>dubbo-spring-boot-starter</artifactId> <version>0.2.0</version> </dependency&g ...

Posted on Fri, 10 Jan 2020 11:27:26 -0500 by Pryach

Interpreting GC log information by JVM value

GC log interpretation Simple case configuration parameters are as follows JAVA_OPTS=${JAVA_OPTS}" -Djava.rmi.server.hostname=172.16.11.117" JAVA_OPTS=${JAVA_OPTS}" -Dcom.sun.management.jmxremote.port=8899" JAVA_OPTS=${JAVA_OPTS}" -Dcom.sun.management.jmxremote.ssl=false" JAVA_OPTS=${JAVA_OPTS}" -Dcom.sun.management.jmxremote.authenticate=false" ...

Posted on Thu, 09 Jan 2020 12:11:29 -0500 by JimChuD

Source code analysis Dubbo load algorithm

Dubbo supports load balancing algorithm for service providers in service callers. The LoadBalance interface is defined as follows: @SPI(RandomLoadBalance.NAME) public interface LoadBalance { /** * select one invoker in list. * * @param invokers invokers. * @param url refer url * @param invocation invocation. * @return selected in ...

Posted on Wed, 08 Jan 2020 07:01:44 -0500 by roneill

dubbo source code parsing (service exposure + Service Reference)

1, Service exposure 1.xml analysis The < Dubbo: Service > tag will be resolved to ServiceBean, which implements InitializingBean, so the afterPropertiesSet() method will be called after the class is loaded. This is where exposure begins. public void onApplicationEvent(ApplicationEvent event) {     if (ContextRefreshedEvent.class.getName ...

Posted on Sun, 29 Dec 2019 14:04:07 -0500 by Amman-DJ

Analysis of Dubbo dynamic rule configuration

Opening chapter Coverage rule is a capability designed by Dubbo to dynamically adjust RPC call behavior without restarting the application. In Dubbo 2.6 and earlier, all service governance rules are only for service granularity. If you want to apply a rule to application granularity, you need to cooperate with the same rules for all services u ...

Posted on Sun, 29 Dec 2019 06:42:02 -0500 by SalientAnimal

Source code analysis Dubbo service registration and discovery mechanism RegistryDirectory)

RegistryDirectory, based on the service discovery of registry, this paper will focus on how Dubbo realizes the automatic registration and discovery of services. From the previous article, we know that when the message consumer creates the service invoker [when the consumer is in the initial stage], they need to build it according to different p ...

Posted on Sun, 29 Dec 2019 03:35:16 -0500 by ayzee