How to implement efficient HTTP server with Netty

1 Overview HTTP is based on request / response mode: the client sends an HTTP request to the server, and then the server will return an HTTP response. Netty provides a variety of encoders and decoders to simplify the use of this protocol. An HTTP request / response may consist of multiple data parts. FullHttpRequest and FullHttpResponse messag ...

Posted by JustGotAQuestion on Wed, 03 Nov 2021 02:50:59 -0700

[how to build a business level chat system] start building your chat service, Netty best practices quick start

Netty QuickStart best practices Official website address: https://netty.io/wiki/user-guide-for-4.x.html Special customs officer dying stranded mysterious connection Click to obtain knowledge password Write in front This paper is based on the Spring Boot framework environment. Readers can build their own environment or adjust some of the cod ...

Posted by markjohnson on Sat, 11 Sep 2021 17:23:20 -0700

Spring Cloud Gateway uses simple configuration

Basic use of Spring Cloud Gateway Spring Cloud Gateway is the second generation gateway framework officially launched by Spring Cloud, replacing Zuul gateway. Gateway as a traffic, plays a very important role in micro service system. The common functions of gateway include routing and forwarding, author ...

Posted by POGRAN on Mon, 29 Jun 2020 20:10:52 -0700

RocketMQ entry to the ground novice can also understand the principle and practice!

Learning any technology is a two-step process: Setting up the environment helloworld I'm no exception. I'll do it directly. 1, RocketMQ installation 1. Documents Official website http://rocketmq.apache.org GitHub https://github.com/apache/rocketmq 2. Download wget https://mirror.bit.edu.cn/apache/rocketmq/4.7.0/rocketmq-all-4.7.0-bin-rele ...

Posted by muretto on Sat, 27 Jun 2020 20:44:03 -0700

[build back-end microservice architecture from scratch] - 02 - system entry

Every system needs an entrance for users to enter, which is generally used to connect the public network and the internal network. It is the total entrance of system traffic and the front guard of the system. This paper mainly introduces the design from user initiated request to load balancing layer. ...

Posted by webaddict on Sun, 07 Jun 2020 03:42:30 -0700

netty summarizes the startup process of the server

Mainly paste code Make a summary for yourself (connection server initialization and processing): 1. NioEventLoop is used to positively handle io connection 2.NioEventLoopGroup can be simply understood as two processing groups, one is accepting connection, the other is processing connection, and the chooser in it is NioEventLoop array Server ...

Posted by KeitaroHimura on Sun, 17 May 2020 07:44:32 -0700

How does Netty work in Dubbo?

Author: Mona Rudowhttps://www.cnblogs.com/stateis0/p/9062171.html As we all know, the bottom layer of Dubbo, a well-known domestic framework, is Netty  As a network communication, how on earth is it used internally?Today we'll explore. 1. How Dubbo's Customer uses Netty Note: This code uses the dubbo-demo example from the Dubbo source of clo ...

Posted by DaveMate on Wed, 06 May 2020 19:59:44 -0700

Spring cloud gateway routing, assertion, filtering

Gateway introduction What is it? There is a very important component in the Spring Cloud family bucket: gateway. In the 1.x version, Zuul gateway is used, but in the 2.x version, Spring Cloud has developed a set of gateway components: Spring Cloud Gateway because Zuul's upgrade keeps skipping tickets. Based on Spring Boot 2.x, Spring WebFlu ...

Posted by mk_silence on Sat, 25 Apr 2020 21:19:31 -0700

Spring Cloud Gateway series processing request process

This article mainly reveals the loading of Spring Cloud Gateway and how to handle the request process from the source point of view. 1. Overview of spring gateway Spring Cloud Gateway is an official gateway developed by spring based on Spring 5.0, Spring Boot 2.0, Project Reactor and other technologies. Spring Cloud Gateway aims to provide a ...

Posted by Michael Lasky on Thu, 23 Apr 2020 00:29:58 -0700

Spring boot + websocket + netty to push messages

Thank you for your reference- http://bjbsair.com/2020-04-01/tech-info/18392.html One of the application scenarios of Netty in the project: the message push function can be used to push messages to all users, or to specify a user. The spring boot project is created. The background server uses Netty technology, and the front page uses WebSocket t ...

Posted by jpadie on Thu, 02 Apr 2020 08:24:30 -0700