Web socket-based single machine supports millions of connected distributed chat (IM) systems

This paper will introduce how to implement a distributed chat (IM) system based on websocket. Using golang to realize web socket communication, a single computer can support millions of connections, using gin framework, nginx load, can be deployed horizontally, communicate with each other within the program, and use grpc communication protocol. ...

Posted by ankur0101 on Mon, 12 Aug 2019 02:39:20 -0700

Implementation of Hot Update Source Code for webpack

I. Thermal Renewal PrincipleServer side: 1. Start the webpack-dev-server server server 2. Create webpack instances 3. Create Server Server Server 4. The compilation of the done event callback adding webpack completes sending messages to the client (hash and description files oldhash.js and oldhash.json) ...

Posted by DoctorWho on Mon, 12 Aug 2019 01:36:36 -0700

Simple and practical Socket framework DotNettySocket

Catalog brief introduction Generate Background Usage TcpSocket WebSocket UdpSocket Ending brief introduction DotNettySocket is a.NET cross-platform Socket framework that supports.NET 4.5+ and.NET Standard 2.0+. It also supports TcpSocket, WebSocket and UdpSocket. Based on Microsoft's strong DotNetty framework, DotNetty Socket strives to p ...

Posted by perfume on Sun, 11 Aug 2019 17:51:40 -0700

Android FrameWork - Start the Zygo process

Links to related articles:1. Android FrameWork - Learning Starter2. Android FrameWork - Start the Init process Related source files: /system/core/rootdir/init.rc /frameworks/base/cmds/app_process/App_main.cpp /frameworks/base/core/jni/AndroidRuntime.cpp /frameworks/base/core/java/com/android/internal/os ...

Posted by ahoo on Sat, 10 Aug 2019 03:13:24 -0700

Java Network Programming and NIO Details 7: Brief Introduction to the Implementation Principle of NIO Selector in Linux

Talking about the Implementation Principle of Selector in Linux From: https://www.jianshu.com/p/2b71ea919d49 Summary Selector is the key class in NIO to realize I/O multiplexing. Selector achieves the goal of managing multiple Channel s through one thread, thus managing multiple network connections. Channel represents this network connecti ...

Posted by leeue on Fri, 09 Aug 2019 22:41:20 -0700

Android native Interprocess Communication Instance-binder Combined with Shared Memory

Under the driver directory of Android source code, there will be related implementation source codes of shared memory. The directory is: kernel drivers staging android ashmem.c. But this article is not about the principle of Android shared memory, but about how to use it.   1.  In linux, different processes have their own independent memory ...

Posted by ziegel on Fri, 09 Aug 2019 04:13:40 -0700

Centos installs supervisor to guard the Redis process

Based on business problems, redis was added to the project for caching and queuing. But now we just install and deploy on a single server, without purchasing other services like Ali Cloud, and without building master and slave. This leads to problems. If the redis process is accidentally blocked, then the business can not be carried out. This ...

Posted by glitch003 on Fri, 09 Aug 2019 01:33:27 -0700

rpc framework in java

Time Record: 2019-7-24 There are many subsystems in distributed systems, and data interaction between subsystems will be through remote procedure call ** (RPC)**. So what should we pay attention to in remote procedure call? In fact, the most important thing is the speed of transmission and use. The proc ...

Posted by samsunnyuk on Thu, 08 Aug 2019 00:54:51 -0700

kubeproxy source code analysis

kubernetes Off-line Installation Package, only three steps kube-proxy source code parsing ipvs has higher performance and stability than iptables mode. This paper focuses on the source code analysis of iptables mode. If you want to understand the principle of iptables mode, you can refer to its implementation. There is no difference in architec ...

Posted by cutups on Wed, 07 Aug 2019 00:43:36 -0700

Java HTTPS Server Actual Warfare

Java HTTPS Server Actual Warfare Preface preview HTTPS Protocol SSL certificate SSL Certificate Type Free Application for SSL Certificate DNS parsing JSSE Maven Project test Preface I have a bad memory. I forget a lot of things if I don't look back for 2 - 3 months. This article is the latest ti ...

Posted by lifeless on Tue, 06 Aug 2019 05:09:07 -0700