Deep understanding of ServiceLoader class and SPI mechanism

Recently, we are reconstructing projects ourselves. In order to meet the 82 principle (I hope 80% of businesses can be fixed by exhausting, and only 20% of businesses allow special definitions), after fixing some standard processes, for example, we have enlarged the capability of atomic services. When we enlarge the capability of atomic service ...

Posted by alexinjamestown on Sat, 04 Apr 2020 01:02:54 -0700

Understanding Feign Source for Spring cloud Source Text

Introduction to Feign In the previous article, we analyzed Eureka's registration, renewal, service culling, service self-protection and other mechanisms. https://blog.csdn.net/lgq2626/article/details/80288992 .This article analyzes the feign of SpringCloud.Calls between SpringCloud micro-service items are made through httpress requests, which w ...

Posted by Mount Tropolis on Fri, 03 Apr 2020 23:55:28 -0700

dubbo source code analysis 5 -- ServiceBean publishing service

Publishing service ServiceBean Release entrance ServiceBean implements the afterpropertieset() method of the interface InitializingBean public void afterPropertiesSet() throws Exception { //Set provider, application, registers //Publishing service if (!isDelay()) { export(); } } If the service has ...

Posted by danf_1979 on Mon, 30 Mar 2020 12:53:21 -0700

Dubbo Source Learning-Service Reference (Service Startup Phase)

In the previous article, we looked at the process of publishing a dubbo service, and this article outlined the process of analyzing dubbo service references. 1. What should service consumers do? Generate proxy objects (help us achieve communication details) Set up a communication connection (netty) Get the service provider address (subscript ...

Posted by gooman on Fri, 20 Mar 2020 19:56:52 -0700

0312 java interface test rest-assured

background java programmers generally write that back-end services are JavaWeb-type projects, mainly including Http interface and dubbo interface, Http interface generally uses the resting style, so how to quickly test the resting interface on a third-party testing framework? The rest-assured framework is a good tool.Like a soldier's triangula ...

Posted by bugsuperstar37 on Thu, 12 Mar 2020 10:05:16 -0700

Source code analysis of NettyServer network event dispatch mechanism in Dubbo network communication

This section will focus on how Dubbo uses Netty to achieve network communication. From the official website, we know that Dubbo protocol uses a single long connection for network transmission, that is to say, the service caller establishes a connection with the service provider for a long time, and all the service call information passes throug ...

Posted by jmandas on Thu, 12 Mar 2020 06:41:22 -0700

Practice of distributed timed task scheduling framework

This article starts with WeChat official account of vivo Internet technology.Links: https://mp.weixin.qq.com/s/l4vuYpNRjKxQRkRTDhyg2QAuthor: Chen wangrong Distributed task scheduling framework is almost a necessary tool for every large-scale application. This paper introduces the demand background and pain points of the use of task schedu ...

Posted by Wldrumstcs on Sun, 08 Mar 2020 20:32:21 -0700

Spring boot integration zookeeper and dubbo@Reference null pointer exception

Problem Description: as a rookie, in the process of learning spring boot, I want to watch the teacher's video once and knock myself to impress myself a little bit. As a result, the problem comes. @The Reference of the Reference annotation reported a null pointer exception. After more than two hours of t ...

Posted by webdzine on Wed, 04 Mar 2020 01:55:17 -0800

SPI application and principle of dubbo

dubbo SPI(Service Provider Interface) In essence, the fully qualified name of the interface implementation class is configured in the file, and the service loader reads the configuration file and loads the implementation class. This allows you to dynamically replace the implementation class for the interface at run time. SPI is used to de ...

Posted by Thora_Fan on Mon, 02 Mar 2020 23:42:33 -0800

[dubbo source code] 1. How to publish services by service providers

Service publishing Startup process 1.ServiceConfig#export When the service provider starts the deployment, dubbo will call serviceconfig ා export to activate the service publishing process, as shown below: Java API: // 1. Create ServiceConfig instance ServiceConfig<IGreetingService> serviceConfig = new ServiceConfig<>( ...

Posted by [-_-] on Thu, 27 Feb 2020 23:53:21 -0800