Open source project SMSS Development Guide -- thread pool based on libevent

Libevent is a set of lightweight network library, which is based on event driven development. It can realize multi-threaded multiplexing and register event response. This article introduces the basic functions of libevent and how to develop a thread pool with libevent. 1, Use guide Listen for service and register connection events Libevent is a ...

Posted on Sat, 11 Jan 2020 03:11:24 -0500 by tendrousbeastie

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

Learn to record Internet Projects - -- 4(Hystrix fuser, Feign remote call, feign integrated hystrix,ribbon)

4.Hystrix Fuse 4.1 Introduction Hystrix is an open source delay and fault tolerant library for Netflix that isolates access to remote services and third-party libraries to prevent cascading failures. Call alternatives when access times out 4.2 Getting started with Hystrix Step 1: Import pom dependencies Step 2: Turn on the Hystrix m ...

Posted on Thu, 12 Dec 2019 19:53:10 -0500 by seb hughes

Understanding Consistent Hash

This article starts with vivo Internet technology WeChat public. Links: https://mp.weixin.qq.com/s/LGLqEOlGExKob8xEXXWckQ Author: Qian Xingchuan In the distributed environment, we often define the data distribution through certain rules. The modulus algorithm and Consistent Hash described in this paper generate a key through certain rules ...

Posted on Mon, 25 Nov 2019 01:53:43 -0500 by Edgewalker81

nginx based on http load balancing

concept Function: improve throughput, request performance and disaster recovery Load balancing is divided into four layers: ip+tcp port; seven layers: http layer, such as scheduling according to host address Implementation principle: nginx uses the core configuration of proxy pass proxy module to realize load balancing, and ...

Posted on Wed, 20 Nov 2019 15:32:55 -0500 by jakebrewer1

Cluster, Load Balancing, Fault Tolerance, Routing Resolution in Dubbo

Links to the original text Cluster in Dubbo can disguise multiple service providers as one provider, that is, to disguise multiple Invokers in Directory as an Invoker, which includes fault tolerant processing, load balancing processing and routing processing. This article introduces the cluster related things. First, it explains the concepts of ...

Posted on Mon, 15 Jul 2019 16:39:23 -0400 by techrat

Dubbo Service Call - Process Analysis

We analyze what Dubbo's call process is like based on the case on the official website 1. Paste the call source first public static void main(String[] args) throws Exception { ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(new String[]{"META-INF/spring/dubbo-demo-consumer.xml"}); context.start(); ...

Posted on Fri, 17 May 2019 18:47:15 -0400 by minus4

Talk about TransportProxyClient for elasticsearch

order This article mainly studies the TransportProxyClient of elasticsearch. TransportProxyClient elasticsearch-6.4.3-sources.jar!/org/elasticsearch/client/transport/TransportProxyClient.java final class TransportProxyClient { private final TransportClientNodesService nodesService; private final Map<Action, TransportActionNodeProxy& ...

Posted on Sat, 11 May 2019 12:55:52 -0400 by LoStEdeN

dubbo Load Balancing Strategy and Corresponding Source Code Analysis

In cluster load balancing, Dubbo provides a variety of balancing strategies, defaulting to random random random calls. We can also expand our responsible balance strategy if you've changed from a little white to a big bull. 1,Random LoadBalance 1.1 Random, set random probability according to weight. 1.2 The probability of collision on a cross s ...

Posted on Sat, 19 Jan 2019 06:03:14 -0500 by saedm