Feign integrates Ribbon and Hystrix source parsing

In the last article Feign Auto-assembly In this article, we discuss the principles of Feign's automatic assembly and the core of Feign's integration of Ribbon and Hystrix in the FeignClientFactoryBean class. First, we see that this class implements FactoryBean, an interface whose primary purpose is to use getObject() to create some bean s with ...

Posted on Sun, 10 Nov 2019 17:52:18 -0800 by daarius

My understanding of netty framework, how to establish a connection with websock on the website

There is a boss in Netty. He runs a company (opens a service port) to provide external business services. It has a group of workers who do things. Boss has always publicized the business provided by his company and accepted the clients in need. When a client finds the business that boss says he needs from his company, boss will arrange a worker ...

Posted on Fri, 01 Nov 2019 00:48:57 -0700 by -entropyman

Go Micro Client source code analysis

Summary Client is mainly used to perform request service and subscribe to publish events. It is a convenient package for broker and transfer. Init Initialize client functions Initialize the number and TTL of connection pools Call the injected opts function list Finally initialize the connection pool func (r *rpcClient) Init(opts ...Option) er ...

Posted on Fri, 18 Oct 2019 10:20:06 -0700 by chomedey

YUV data are converted to RGB using Opencv, FFmepg and LibYUV respectively.

Preface This article mainly aims at their efficiency discussion, but does not make specific conversion analysis. In daily development, especially in codec projects, data format conversion is very common, such as YUV to RGB, YU12 to I420, or other formats, etc. We usually use either Opencv's cvtColor(), ...

Posted on Thu, 03 Oct 2019 10:41:24 -0700 by gordong1968

handy Network Library Source Reading

Simple and easy to use C++11 network library, From: https://github.com/yedf/handy In the course of sorting out the past data, we found that we have paid attention to this network library in the past, and looked at the lightweight implementation briefly. Therefore, this paper will make a simple learning trip to the library, with the goal of furt ...

Posted on Fri, 20 Sep 2019 07:55:20 -0700 by AnarKy

caddy & grpc adds a reverse proxy plug-in for caddy

caddy-grpc adds a reverse proxy plug-in for caddy Project address: https://github.com/yhyddr/caddy-grpc Preface Last time we learned how to extend the plug-in we wanted in Caddy. Blogs provide only a general framework. This time, let's learn from the specific plug-in caddy-grpc. The reason for choosing it is that it is a stand-alone applicati ...

Posted on Sat, 10 Aug 2019 03:36:53 -0700 by Edison

gRPC Source Details Configured Structures

Detailed grpc source structure DialOptions DialOptions is the most important part and is responsible for configuring the selection for each rpc request. structure Let's look at this structure first link // dialOptions configure a Dial call. dialOptions are set by the DialOption // values passed to Dial. type dialOptions struct { u ...

Posted on Thu, 25 Jul 2019 09:52:54 -0700 by w4designs

Decoding of NIO Messages Based on Length Domain under Netty

1. Review the sticking/unpacking first. 1.1. The Meaning of Packing/Unpacking TCP is a "flow" protocol. It does not understand the specific meaning of the upper business data. It divides the packets according to the actual situation of the TCP buffer. So in business, it is believed that a complete package may be divided into several ...

Posted on Wed, 26 Jun 2019 10:56:49 -0700 by dgx

FFmpeg decoded audio

Based on the first article: First Decoded Video We know mp4 is a video format, actually it encapsulates the compressed data of audio, and the compressed data of video. This article will read the compressed data of audio from the video and decompress the audio The following picture is reproduced from Dr. Lei Xiaohua ppt Audio compression ...

Posted on Sun, 23 Jun 2019 09:50:16 -0700 by elfeste

Using FFmpeg to Play Android Video Recording and Compression

Reprinted from: http://blog.csdn.net/mabeijianxi/article/details/72983362 This paper deals with knowledge points: Andorid Video and Audio Acquisition YUV Video Processing (Manual Cutting, Rotation, Mirror, etc.) PCM Audio Processing Using FFmpeg API, YUV code is H264, PCM code is AAC Configuration of FFmpeg Encoder Practical Applicatio ...

Posted on Sat, 25 May 2019 16:21:16 -0700 by planetphp