Unix Network Programming Volume 1 Intermediate

Unix Network Programming Volume 1 Intermediate Basic TCP socket programming socket connect bind listen accept close() Server: display client IP and port number Concurrent server Local and foreign protocol address functions Sample TCP client and server programs Client Server Workflow Normal startup ...

Posted by TheKiller on Wed, 23 Oct 2019 23:08:31 -0700

Monitoring of linux tuning indicators

linux index monitoring Since I was responsible for the production environment deployment, I have encountered a number of online environment memory and CPU problems. Because of the popularity of microservices and containers, K8s + prometheus + grafana + alert can be easily used for monitoring, which is enough to cover most scenarios. The most im ...

Posted by welshy123 on Wed, 23 Oct 2019 19:33:04 -0700

A brief account of linux monitoring indicators

linux index monitoring Since I was responsible for the production environment deployment, I have encountered a number of online environment memory and CPU problems. Because of the popularity of microservices and containers, K8s + prometheus + grafana + alert can be easily used for monitoring, which is enough to cover most scenarios. The most im ...

Posted by hellz on Wed, 23 Oct 2019 17:15:56 -0700

Java implement a simple java Web container

Instance - implement a simple java Web container Latest updates Technology stack java.net.Socket java.net.ServerSocket Execution process Create a ServerSocket object; Call the accept method of the ServerSocket object and wait for the connection. If the connection succeeds, a Socket object will be returned. Otherwise, the wait will be block ...

Posted by Ice on Wed, 23 Oct 2019 09:11:45 -0700

Analysis of the learner in zk

The parent class of observer and follower when learning defines common properties and methods Subclasses Follower and Observer Internal class: PacketInFlight indicates that there is no commit message in the proposal static class PacketInFlight { TxnHeader hdr; Record rec; } Properties: QuorumPeer Server node LearnerZooKeep ...

Posted by sp@rky13 on Mon, 21 Oct 2019 13:22:02 -0700

Performance test of golang mainstream high performance web framework

Test purpose Because of K8s, I dabbled in go language and found that there are many web frameworks of golang, which are called high-performance benchmarks. I have been committed to the research of c + + high-performance server framework before. Out of curiosity, I want to objectively compare the many web frameworks of go from the performance le ...

Posted by thecookie on Mon, 21 Oct 2019 01:32:30 -0700

Implementation of p2p video call with WebRTC

brief introduction Objective to help oneself understand webrtc to realize end-to-end communication # Usage flow git clone https://gitee.com/wjj0720/webrtc.git cd ./webRTC npm i npm run dev # Visit 127.0.0.1:3003/test-1.html to demonstrate h5 media stream capture # Visit 127.0.0.1:3003/local.html to demonstrate rtc local transmis ...

Posted by viveleroi0 on Sat, 19 Oct 2019 08:17:49 -0700

Finish reading Runloop

Runloop is a basic component closely related to threads, and it is behind many functions related to threads. This article will summarize runloop from the following aspects: What is runloop The role of runloop The relationship between runloop and thread Detailed introduction of runloop and source code analysis Analysis of runloop principle runl ...

Posted by korngold on Fri, 18 Oct 2019 15:20:08 -0700

ThinkPHP uses Swoole to realize WebSocket online chat communication system

To use Swoole in ThinkPHP, you need to install the think Swoole composer package, provided that the system has installed the Swoole PECL extension. To install think swoole, execute the composer command in the project root directory of tp5: composer require topthink/think-swoole If you don't say much, go straight to the code: To create a WebSock ...

Posted by chwebdesigns on Fri, 18 Oct 2019 09:09:25 -0700

Client requests server communication, Web programming development basis

I haven't seen you for a long time. I miss you so much. The article I published earlier has finished the primary stage of Java. Next, Xiaole will continue to talk about Java intermediate stage - Java Web. First of all, let's take a look at the knowledge that the Java Web phase focuses on: Understand C/S and B/S structural modes Understandi ...

Posted by j0sh on Fri, 18 Oct 2019 01:42:25 -0700