10 API gateway Spring Cloud GateWay

Necessity of using gateway Summary: Service discovery enables service consumers to always find service providers Configure servers to efficiently manage the configuration of microservices Load balancing with Ribbon Using Feign to make remote calls more efficient Using Resilience4j for service fault tole ...

Posted on Wed, 26 Feb 2020 06:39:49 -0500 by chadowch

Redis - Connecting to Redis

Configuring the Lettuce Connector Lettuce is a Netty based open source connection pool supported by Spring Data Redis. @Configuration class AppConfig { @Bean public LettuceConnectionFactory redisConnectionFactory() { return new LettuceConnectionFactory(new RedisStandaloneConfiguration("server" ...

Posted on Wed, 26 Feb 2020 03:01:06 -0500 by Stargate

Source code analysis of NioEventLoop in Netty

Edition The version of this source code analysis based on Netty is 4.1 Source code analysis NioEventLoop can be regarded as a thread in java, but the events handled by NioEventLoop and the internal processing logic will be different. Let's first look at the inheritance relationship of the class: It can ...

Posted on Fri, 21 Feb 2020 04:33:44 -0500 by Dollar

Use and analysis of [Netty] Recycler

Article directory Preface Experiment code: Follow up source code Introduction to Recycler inner class Recycler creation and some properties Get object from Recycler Stack creation and some properties Pop pop up object Recycle objects to Recycler Same thread recycle Control frequency Different thr ...

Posted on Thu, 20 Feb 2020 03:24:08 -0500 by kannjihyun

Lightweight RPC Design and Implementation Fifth Edition (Final Edition)

Over the past few years, a lightweight RPC has been designed, named lightWeightRPC, by collecting relevant data and adding your own understanding.It has a common basic function of RPC.The main functions and features are as follows: Dependent Injection and Parameter Configuration Using Spring Using Netty to implement remote communication betwee ...

Posted on Wed, 19 Feb 2020 12:42:24 -0500 by webAmeteur

A deep understanding of Dubbo core model Invoker

Reproduced from: A deep understanding of Dubbo core model Invoker 1, Introduction of Invoker in Dubbo Why is Invoker the core model of Dubbo? Invoker is the entity domain in Dubbo, which is the real existence. Other models are moving towards it or converting to it, which also represents an executa ...

Posted on Sat, 15 Feb 2020 05:26:46 -0500 by hebisr

Channel pipeline of Netty source code analysis -- propagation of inbound events

In the previous article, we said that as a data pipeline in Netty, ChannelPipeline is responsible for transmitting the event propagation of messages in the Channel. The event propagation can be divided into two directions: inbound and outbound, respectively notifying ChannelInboundHandler and ChannelOutboundHandler to trigger the corresponding ...

Posted on Fri, 14 Feb 2020 01:34:44 -0500 by PigsHidePies

Netty implements a simple http server

Since the client is a browser, only the server needs to be written Server: bind port 10086 package com.jym.http; import io.netty.bootstrap.ServerBootstrap; import io.netty.channel.ChannelFuture; import io.netty.channel.ChannelFutureListener; import io.netty.channel.EventLoopGroup; import io.netty.cha ...

Posted on Sat, 08 Feb 2020 10:05:08 -0500 by fross

Netty 4.1.45 causes of TCP packet splitting and sticking and Solutions

Article directory Simulation of abnormal conditions Server transformation Client transformation Operation result Analysis on the causes of unpacking and sticking Solutions to unpacking and sticking LineBasedFrameDecoder line break delimited message Server modification Client modification Operatio ...

Posted on Sat, 08 Feb 2020 04:43:12 -0500 by deltatango5

[Netty] Pipeline related: OutBound event propagation (write)

Preface This section looks at the order and process in which outbound events propagate by tracking the write method.If you are unfamiliar with the bi-directional list of event propagation nodes or the order in which events are added, it is recommended that you review the relevant articles in my blog. ...

Posted on Thu, 06 Feb 2020 23:44:19 -0500 by aleigh