sonic messaging mechanism and architecture

Sonic is a network operating system, using a large number of independent third-party open source components, which depend on, compile environment, libraries, configuration methods are very different. In order to make these components cooperate with each other in sonic and not interfere with each other, and at the same time try not to modify the ...

Posted by ashwin on Sat, 27 Jul 2019 11:15:18 +0200

General solution for high concurrency scenarios

Today we'll look at how some highly concurrent business scenarios can achieve data consistency.   Scene: 1. Data sheet: ConCurrency. 1 CREATE TABLE [dbo].[ConCurrency]( 2 [ID] [int] NOT NULL, 3 [Total] [int] NULL 4 ) 2. Initial value: ID=1,Total = 0 3. Require Total + 1 per client request 2. Single thread 1 sta ...

Posted by sepodati on Sun, 14 Jul 2019 00:42:52 +0200

TeamTalk Server-side Analysis of Server-side and Client-side Processes

Original: www.bluefoxah.org/teamtalk/server_flow.html Preface In the previous article, we simply analyzed the configuration of each server. In this article, we simply analyzed the whole operation process of TeamTalk server. Server-side process There is no strict sequential process for the start-up of the server, because each end ...

Posted by puja on Thu, 11 Jul 2019 00:32:13 +0200

Source code analysis of redis lazy free space lazy release

redis is a memory database, there must be more memory release, but memory release is a heavy operation, so it will be It affects the normal operation efficiency of redis. So redis lazily releases some memory. Spatial lazy release is the release of memory by hand Special threads perform release operations. There are three main types of space ...

Posted by jay7981 on Tue, 09 Jul 2019 22:44:56 +0200

redis integrates springboot's helloworld

Introducing dependencies compile 'org.springframework.boot:spring-boot-starter-data-redis' There are two ways to use redis 1.Jedis Jedis jedis = new Jedis("localhost"); 2.RedisTemplate @Autowired private RedisTemplate redisTemplate; To configure information in application.properties if using RedisTemplate, here I use Jedis relatively simply A ...

Posted by frenchpl on Mon, 08 Jul 2019 18:57:32 +0200

Using redis+protoStuff to implement database caching mechanism in JAVA

Introduction to Redis Redis is a key-value storage system. Similar to Memcached, it supports relatively more value types of storage, including string (string), list (linked list), set (set) and Zset (ordered set). These data types support push/pop, add/remove, intersection, Union and difference sets, and richer operations, all of which ar ...

Posted by DrJonesAC2 on Thu, 04 Jul 2019 21:22:30 +0200

How to Start LinuxKit on MacOS Xhyve Engine

On Dockercon 2017, Linux Kit, an architecture that creates the smallest Linux OS image in a container, was released. Does that sound cool? Several clouds I saw an article on the Internet [about starting LinuxKit on Mac OS with Xhyve]. The best way to learn the tool is to make the best use of it. The author of the original article went back to A ...

Posted by tim on Thu, 04 Jul 2019 00:46:53 +0200

Learn docker from scratch to deploy a slightly loaded application

We talked about deploying a simple Python program before. In this section, we will extend the Python program, connect redis database, and do some operations on redis. New App.py, as follows: from flask import Flask from redis import Redis import os import socket app = Flask(__name__) redis = Redis(host=os.environ.get('REDIS_HOST', '12 ...

Posted by iShaun on Sat, 29 Jun 2019 20:28:14 +0200

Asynchronous Task Artifact Celery Quick Start Tutorial

In the process of running programs, we often encounter time-consuming and resource-consuming operations. To avoid them blocking the main program, we often use multithreaded or asynchronous tasks.For example, in Web development, when a new user is registered, we usually send him an activation email, which is an IO blocking task. If you put it di ...

Posted by teng84 on Mon, 24 Jun 2019 18:34:46 +0200

Connect module of Node learning and the use of its Middleware

Connect module of Node learning and the use of its Middleware I. Overview Connect It is a tool set based on HTTP server, which provides a new way to organize code to interact with request and response objects, called middleware. middleware In fact, it is a simple JavaScript function, which not only handles req and res requests, but ...

Posted by soulzllc on Sun, 23 Jun 2019 01:46:01 +0200