Why is Redis so fast?
redis-benchmark -t set,lpush -n 100000 -q
SET: 38550.50 requests per second //Processing 38000 set requests per second
LPUSH: 37821.48 requests per second //Process 37000 lpush requests per second
### Script execution times
redis-benchmark -n 100000 -q script load"redis.call('set','foo','bar')"
script loadredis.call('set','foo','bar'): 3705 ...
Added by bckennyw on Sat, 14 Mar 2020 09:08:33 +0200
Java. Network programming
Network programming
Overview of network programming
C/S and B/S
C/S:
The client server software structure, and the content that the service provider needs to prepare for the user's service
Clients of major platforms
Android iOS PC Windows Linux macOS
QQ wechat Taobao JD sword and expedition
Serv ...
Added by prasitc2005 on Fri, 13 Mar 2020 15:47:30 +0200
java IO series IO model foundation details
Catalog
1. BIO(Blocking IO)
Application scenario:
1.2 NIO(Non Blocking IO)
Application scenario:
Conclusion:
3. AIO(NIO 2.0)
4. Comparison of bio, NIO and AIO:
Conclusion:
Java supports three kinds of network programming IO modes: BIO, NIO, AIO. The IO model is to use what kind of channel t ...
Added by padanaram on Sun, 08 Mar 2020 13:21:47 +0200
Difference between TCP and UDP
TCP
In order to facilitate the development of network applications, Berkeley University in the United States implements a kind of communication protocol Socket on Unix, which enables programmers to access TCP/IP conveniently;
Use Socket of TCP/IP to communicate:
The server program binds a socket ...
Added by boogybren on Fri, 06 Mar 2020 07:30:09 +0200
Example of ProtocolBuf implemented by Java native Socket
1. Development environment
1.Protocol version: 3.9 (latest available) Download Address
2.Protocol Protocol Version: 3
3. Ordinary java environment, source code is 2 classes.
This is mainly about instant messaging using the native Java Socket API with its previous and back-end.Then binary data ( ...
Added by joeiscoolone on Fri, 06 Mar 2020 02:50:05 +0200
MySQL Multi-Instance Profile Start and Close in One File
One time when I was helping my friends solve problems, their server's MySQL was multi-instance, on which I made a master-slave configuration. Before I used multiple instances, I used multiple configuration files. This article mainly describes how to start and close multiple instances in a configuration file.
Profile Content
[ ...
Added by guybrush on Mon, 02 Mar 2020 18:20:49 +0200
Using live555 video monitoring
Using live555 for video monitoring
Article directory
Using live555 for video monitoring
1 code directory
2 code structure
3 main source code
4 problems encountered
link
1 code directory
.
├── main.cpp
├── Makefile
├── videoMonitor.cpp
├── videoMonitor.h
├── x264Encoder.cpp
└── x264Encoder.h
...
Added by tfburges on Fri, 28 Feb 2020 05:36:12 +0200
Gong Service for Smooth Restart Analysis
Smooth restart means that our programs can be restarted without interrupting service, seamlessly linking up old and new processes, and deploying Zero-Downtime.
Smooth restart is based on elegant exit, as described in a previous article: Golang uses the Shutdown feature to gracefully summarize the exit of http services
There are two main strateg ...
Added by justinjkiss on Thu, 27 Feb 2020 04:15:47 +0200
CoppeliaSim script simulation scripts
This is an official document translation, only for personal reference, if there is infringement, please contact to delete
Embedded scripts
CoppeliaSim is a highly customizable simulator, and almost every simulation step is user-defined. This flexibility can be achieved through an integrated script inte ...
Added by gynophobia on Sun, 23 Feb 2020 08:52:23 +0200
Server and client novice
Don't talk too much, just go to the script.
The first is the server:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using System.Net.Sockets;
using System.Threading;
namespace Sever
{
class Program
{
static byte[] buffer = new byte ...
Added by triffik on Sat, 22 Feb 2020 18:16:49 +0200