. NET Core HttpClientFactory+Consul for service discovery

preface Last article . NET Core HttpClient+Consul to realize service discovery It has been mentioned that HttpClient has the problem of socket delay release, and the problem of server denial of service caused by port number exhaustion caused by high concurrency. Fortunately, Microsoft realized this problem and started to introduce HttpClientFa ...

Posted on Tue, 26 May 2020 01:03:44 -0400 by Johannes80

Django channels to realize websocket real-time communication

The operation and maintenance platform must have such a scenario, that is, it needs to obtain the back-end data in real time, such as the results of batch execution, or the status of monitoring. If the browser frequently requests the back-end interface to update the data, it seems a little low So it is easy to learn how django supports websock ...

Posted on Wed, 20 May 2020 11:17:09 -0400 by Zergman

Simple Online Chat Websocket

Preface What is Webscoket ? websocket application scenarios Brief Group Chat Implementation Code examples Summary Webscoket Websokcet is a single TCP On Connection full duplex Protocol for communication, through HTTP /1.1 Protocol 101 status code for handshake. http://websocket.org Websocket application scenarios Web ocket and Htt ...

Posted on Tue, 19 May 2020 12:21:49 -0400 by softnmedia

WIFI debugging assistant Two Use guide

This code only supports hexadecimal sending and receiving, mainly referring to the WiFi client modified by the hexadecimal sending and receiving of Bluetooth. Basic configuration method of WiFi: https://blog.csdn.net/weixin_44244812/article/details/104303322 When I use the Android WiFi client, my android Five The version of mobile phone can con ...

Posted on Tue, 19 May 2020 07:03:50 -0400 by atstein

An http request from the perspective of Tomcat

One HTTP request     As shown in the figure above, a complete HTT request roughly includes the following steps: Domain name resolution TCP connection (three handshakes) Send request data after connection established Server processing request Send response data Browser parsing response data Browser rendering front page The http request proce ...

Posted on Mon, 18 May 2020 01:50:33 -0400 by etrooper

The application and practice of structural design mode in the company's projects, super practical

Practical summary of design patterns -- common structural design patterns In the design pattern, there is a design pattern called Adapter Design Pattern. This kind of adapter pattern is usually used to adapt and adjust different interfaces. Common application scenarios are as follows: Some interfaces of different implementations are integrated ...

Posted on Sun, 17 May 2020 22:52:41 -0400 by trmbne2000

A summary of the actual use of socket

Write in front I have made an application of sending character instruction to middleware. Based on the practical principle, I only use one diagram to replace the basic principle of socket. I will show the use of socket in the form of four middle schools, The first thing to know: socket transmission is divided into input stream (also call ...

Posted on Sat, 16 May 2020 10:58:13 -0400 by Quevas

[linux] C language Linux system programming socket echo client

Echo client: 1. The so-called "echo" refers to that the client sends a piece of data to the server, and the server returns the data to the client as is, just like the sound, when encountering obstacles, it will be "bounced back". 2. The client can also use the write() / send() function to send data to the server, and the ser ...

Posted on Fri, 15 May 2020 11:31:07 -0400 by mannyee

Real time push based on workerman (no ajax polling)

Let's start with: TCP/IP TCP/IP is a protocol group, which can be divided into three layers: network layer, transport layer and application layer. There are IP protocol, ICMP Protocol, ARP protocol, RARP protocol and BOOTP protocol in the network layer. There are TCP protocol and UDP protocol in the transport layer. In the application layer, th ...

Posted on Mon, 11 May 2020 09:04:41 -0400 by synical21

Basic use of Jedis connection pool

jedis direct Each operation will create a jedis object. After the execution, close the connection and release it. The corresponding is a Tcp connection. jedis connection pool A batch of jedis connection objects are generated in advance and put into the connection pool. When it is necessary to operate redis, the jedis objects are borrowed from ...

Posted on Thu, 07 May 2020 13:30:10 -0400 by sunsun