Dubbo Source Parsing - Network Calls
Dubbo Network Call
background
We know that the general flow of Dubbo remote calls (consumer processes) is as follows:
Get a list of invoker s for this method from Dirctory
A list of invoker s that meet the criteria is obtained by filtering router routes
invoker called with Cluster fault tolerance
Final invoker filtered by loadBalance
filter ch ...
Posted by clip on Sun, 15 Dec 2019 06:04:43 +0100
Task.Factory.StartNew Test
How many threads should I use?Number of Relational Threads = Number of CPU Cores* (Local Compute Time + Wait Time) / Local Compute Time
Below is a comparison of Task.Factory.StartNew and TaskHelper.LargeTask.Run
1. Task.Factory.StartNew uses the TaskCreationOptions.LongRunning parameter
Code:
private int n = 50000; //Issue Size
privat ...
Posted by bdeonline on Sat, 14 Dec 2019 22:01:48 +0100
Configure redisCluster cluster
1. Install Redis image
docker pull yyyyttttwwww/redis
2. Create net2 network segment
docker network create --subnet=172.19.0.0/16 net2
3 create a node Redis container
#Rename the redis image:
docker tag docker.io/yyyyttttwwww/redis redis
#Delete old redis
docker rmi docker.io/yyyyttttwwww/redis
#Create 6 redis containe ...
Posted by shana on Sat, 14 Dec 2019 19:18:14 +0100
Application Development of Vue in Practice [Paging Effect and Shopping Cart]
Author| Jeskson
Source|Dada Front End Bistro
Paging Component
First create the project:
Paging components, do projects do not write manual code, to think about business logic, how to write, how to write is the best way to present, do the project is not in a hurry, first think about the overall framework, from the bottom of what you want to sta ...
Posted by perficut on Fri, 13 Dec 2019 03:08:08 +0100
The awk command filters IPv4 addresses in the ifconfig command
Preface:
This article mainly explains how to filter IPv4 addresses in the results of the ifconfig command.
The case in this article is suitable for finding IPv4 addresses for all network cards.
Method 1:
Use awk commands, regular expressions, and wildcards to filter IPv4 addresses.
[root@localhost ~]# ifconfig
ens33: flags=4163<UP,BROADCAST ...
Posted by jl on Thu, 12 Dec 2019 19:51:08 +0100
iOS upload multiple files
Upload file format
POST /php/upload/upload.php HTTP/1.1
Host: 127.0.0.1
Content type: multipart / form data; boundary = identity (customizable)
Request body
--Identity (customizable, but must be consistent with the request header)
Content-Disposition: form-data; name="userfile[]"; filename="head1.png"
Content-Type: image/png
Bla ...
Posted by defeated on Wed, 11 Dec 2019 16:26:29 +0100
Getting started with Tablestore - Data Management - GetRow
GetRow Interface Overview
The GetRow interface is used to read a row of data. It is one of the most basic API s of Tablestore. Official Java, Go, Node.js, Python, PHP, C and C + + SDKs are provided.This paper takes Java code as an example to explain GetRow interface in detail.
Basic instructions
Parameter description
Parameter name
Is it ne ...
Posted by Dragoonus on Wed, 11 Dec 2019 03:11:46 +0100
Writing android with Kotlin: retrofit + rxjava try
Recently, I learned the Kotlin language recommended by Google for Android development, which was used to try to reconstruct the MVP+Retrofit+Rxjava code before. Here is my reconstructed Kotlin code
First add the compile of gradle:
dependencies {
compile 'io.reactivex.rxjava2:rxjava:2.0.7'
compile 'io.reactivex.rxjava2:rx ...
Posted by jl9148 on Wed, 11 Dec 2019 01:11:15 +0100
The pit encountered by android integration sharesdk cannot return to app, etc
After sharesdk integration, I encountered a problem sharing to wechat and friends circle. When I clicked back, I found that I couldn't go back to the app
private void sharedToThirdPlatform() {
OnekeyShare oks = new OnekeyShare();
//Close sso authorization
oks.disableSSOWhenAuthorize();
// Ti ...
Posted by Thikho on Tue, 10 Dec 2019 18:14:37 +0100
Squid proxy application (traditional and transparent)
Experimental schematic diagram
Step 1: configure the squid proxy server
#Remote share and mount source package
[root@squid ~]# smbclient -L //192.168.142.1
[root@squid ~]# mount.cifs //192.168.142.1/squid /mnt
#Decompress the source package
[root@squid ~]# cd /mnt
[root@squid mnt]# tar zxvf squid-3.4.6.tar.gz -C /opt
#Install build environm ...
Posted by dinku33 on Tue, 10 Dec 2019 11:39:51 +0100