本文转自于[今日头条] 本文以淘宝为例,介绍从一百个并发到千万级并发下服务端架构的演进过程,同时列举出每个演进阶段遇到的相关技术,让大家对架构的演进有一个整体的认知,文章最后汇总了一些架构设计的原则。 在介绍架构之前,为了避免部分读者对架构设计中的一些概念不了解,下面对几个最基础的概念进行介绍: ① ...
分类:
其他好文 时间:
2020-04-16 13:36:26
阅读次数:
65
question1: An error occured while deploying the file.This probably means that the app contains ARM native code and your Genymotion device cannot run A ...
分类:
其他好文 时间:
2020-04-16 13:33:25
阅读次数:
253
信息泄露:为什么黑客会知道你的代码逻辑? 为什么错误信息会泄露代码逻辑? 第一,错误信息反馈的是 Syntax error,即语法错误。在密码位置输入单个字母“g”肯定不会引起错误,所以,这个 SQL 语句是因为多了一个单引号导致的报错。而如果使用了 PreparedStatement 等方法,是不 ...
分类:
其他好文 时间:
2020-04-16 12:59:08
阅读次数:
67
1、报错:error:failedtorunKubelet:failedtocreatekubelet:misconfiguration:kubeletcgroupdriver:"cgroupfs"isdifferentfromdockercgroupdriver:"systemd2、原因:kubelet文件驱动默认cgroupfs,而我们安装的docker使用的文件
分类:
其他好文 时间:
2020-04-16 10:34:49
阅读次数:
549
使用threading模块中的Timer函数 from threading import Timer import time def execute_func(name, age, gender, hobby): print(f"name is {name}, age is {age}, gende ...
分类:
其他好文 时间:
2020-04-16 00:58:09
阅读次数:
94
添加NuGet源的方式 菜单: 工具 -> NuGet包管理器 -> 程序包管理器设置 NuGet的国内镜像 https://nuget.cdn.azure.cn/v3/index.json ...
分类:
其他好文 时间:
2020-04-16 00:42:51
阅读次数:
74
下面会讲解一下什么是 WebSocket,以及使用 PHP 实现 WebSocket。 WebSocket 是什么? PHP 实例 应用场景 一、WebSocket 是什么 WebSocket 是一种网络传输协议,可在单个 TCP 连接上进行全双工通信,位于 OSI 模型的应用层。WebSocket ...
分类:
Web程序 时间:
2020-04-16 00:39:50
阅读次数:
106
1、Mapper for [tags] conflicts with existing mapping in other types:\n[mapper [tags] is used by multiple types. Set update_all_types to true to update ...
分类:
其他好文 时间:
2020-04-16 00:30:12
阅读次数:
165
一、定义 assert是一种常用的调试方式,对Boolean表达式进行检查,一个正确的程序必须确保表达式的值为true;如果为false则程序处于不正确的状态,assert会给出警告或者退出。 二、格式 (1)assert [boolean 表达式] 如果[boolean表达式]为true,则程序继 ...
分类:
其他好文 时间:
2020-04-15 21:40:59
阅读次数:
102
1.fork创建进程的使用 fork()返回值等于0时,表示创建子进程; fork()返回值大于0时,是主进程; #include<stdio.h> #include<stdlib.h> #include<sys/wait.h> #include<signal.h> void sig_handler ...
分类:
系统相关 时间:
2020-04-15 21:23:20
阅读次数:
104