Manual wheel building -- RPC framework dotnetcore RPC based on. NetCore
preface
Since there are not so many restrictions between internal services, the most simple and clear way is the most appropriate way. I prefer the way of using Dubbo. I separate the interface layer as the contract of the service. The server provides the service with this set of contract, and the client uses this set of contract to call the se ...
Posted by CanMan2004 on Sat, 13 Jun 2020 04:10:01 -0700
How does Netty work in Dubbo?
Author: Mona Rudowhttps://www.cnblogs.com/stateis0/p/9062171.html
As we all know, the bottom layer of Dubbo, a well-known domestic framework, is Netty As a network communication, how on earth is it used internally?Today we'll explore.
1. How Dubbo's Customer uses Netty
Note: This code uses the dubbo-demo example from the Dubbo source of clo ...
Posted by DaveMate on Wed, 06 May 2020 19:59:44 -0700
Several ways to register Spring Bean
All roads lead to dragons and horses
Premise: please https://blog.csdn.net/dong19891210/article/details/105697175 In case of
Spring bean s can be registered in the following ways:
1. Register through GenericBeanDefinition
Example code:
Message helper class
public class Message {
private String message;
public String getMessage() {
retu ...
Posted by mahaguru on Mon, 27 Apr 2020 21:21:30 -0700
Java Thread Foundation, Start with this
Threads, as the smallest dispatching unit in the operating system, generally have multicore processors in the current operating environment. In order to make better use of CPU, master its correct use, and make the program run more efficiently.It is also an extremely important module in Java interviews.
Introduction to Threads
A program that ...
Posted by bradymills on Mon, 20 Apr 2020 18:52:20 -0700
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