[Netty] Netty's thread model and simple usage

Netty's threading model Reactor model Netty's model is based on Reactor mode, so we must know Reactor first. The Reactor model is also called the Dispatch model. When one or more requests are sent to the server at the same time, the server synchronously assigns them to the processing threads of each request. Three roles of Reactor model Ac ...

Added by -Karl- on Tue, 08 Mar 2022 06:29:47 +0200

Microservices have everything from code to k8s deployment (XI. Log collection)

We will use a series to explain the complete practice of microservices from requirements to online, from code to k8s deployment, from logging to monitoring. The whole project uses the micro services developed by go zero, which basically includes go zero and some middleware developed by relevant go zero authors. The technology stack used is basi ...

Added by devarishi on Tue, 08 Mar 2022 03:48:50 +0200

Internal calls between microservices

2. Service invocation 2.1 LoadBalancer integrates RestTemplate to call other micro services 2.1.1 introduction 2.1.1.1 introduction to resttemplate RestTemplate is a network request framework in Spring Resources that accesses third-party RESTful API interfaces. The design principle of RestTemplate is similar to that of other spring template ...

Added by Desbrina on Mon, 07 Mar 2022 05:22:15 +0200

Microservices have everything from code to k8s deployment (X. error handling)

We will use a series to explain the complete practice of microservices from requirements to online, from code to k8s deployment, from logging to monitoring. The whole project uses the micro services developed by go zero, which basically includes go zero and some middleware developed by relevant go zero authors. The technology stack used is basi ...

Added by zulubanshee on Mon, 07 Mar 2022 03:40:56 +0200

Spring source code analysis

Through the previous study, we have learned how the primary container of spring is initialized, but compared with the unfamiliar XmlBeanFactory, ApplicationContext is obviously more familiar to everyone. The spring advanced container ApplicationContext contains all the things in the primary container XmlBeanFactory. Based on the primary contain ...

Added by ShaolinWood on Sun, 06 Mar 2022 09:58:46 +0200

Microservice automation. 05 Use of idea plug-in

Docker is used in combination with Idea plug-in 1, Install docker plug-in 1. New idea project 2. Check whether there is a Docker in the plug-in 3. In docker The port number is indicated in the service file modify Docker Service file , Comment out "ExecStart" This line and add the following information ExecStart=/usr/bin ...

Added by metroblossom on Sat, 05 Mar 2022 13:31:06 +0200

Microservice notes 02

01. Hystrix circuit breaker 1. General Problems faced by distributed systems Problems faced by distributed systems Applications in complex distributed architecture have dozens of dependencies, and each dependency will inevitably fail at some time. Service avalanche When calling between multiple microservices, suppose that microse ...

Added by BrandonE97 on Sat, 05 Mar 2022 09:21:08 +0200

Microservice notes 01

Draft, need post-processing 01. Micro service architecture What is micro service? Microservice architecture is an architecture model. It advocates dividing a single application into a group of small services, which coordinate and cooperate with each other to provide final value for users. Each service runs in its own independent process ...

Added by Brit on Sat, 05 Mar 2022 07:35:07 +0200

Application practice of 04 Nacos service registry

Background analysis In microservices, the first problem we need to face is how to find services (software is a service), and the second is how to communicate between different services? How to manage every service in the application better and more conveniently, and how to establish the link between various services, so that the registration c ...

Added by Assim on Thu, 03 Mar 2022 10:11:53 +0200

go microservice - RPC combined with Protobuf

RPC in combination with Protobuf Here we use a demand scenario to learn relevant knowledge points: Suppose there is an Order module in a system. Other modules want to realize the remote project call of RPC. The Order information can be obtained according to the Order ID and timestamp. If the acquisition is successful, the correspondin ...

Added by admin on Mon, 28 Feb 2022 03:08:44 +0200