常见系统设计
https://soulmachine.gitbooks.io/system-design/content/cn/
https://soulmachine.gitbooks.io/system-design/content/cn/
MCP入门 https://modelcontextprotocol.io/introduction
概述 fork:https://www.cnblogs.com/reim/p/17377883.html Redis 是一个开源的高性能键值数据库,它支持多种数据类型,可以满足不同的业务需求。本文将介绍 Redis 的10种数据类型,分别是 string(字符串) hash(哈希) list(列表) set(集合) zset(有序集合) stream(流) ...
https://zhuanlan.zhihu.com/p/137041568
quorum Raft 一致性哈希 slots 插槽
计数器固定窗口算法 原理: 一个时间窗口内对请求计数,超过阀值则丢弃 时间窗口结束,同时重置计数器为0 优点: 实现简单 缺点: 一个时间窗口内服务不可用;例如时间窗口为1s,限流100。在1ms时来了100个请求,后面999ms的请求会感觉系统不可用 窗口切换临界会出现2倍阀值流量;例如时间窗口为1s,限流100。在0-998ms没有请求,在999ms...
大模型应用开发入门 https://github.com/datawhalechina/llm-universe
一、Pulsar 1.1、基本概念 Broker Http服务暴露REST API,提供adminer、producer、consumer相关api 调度器,包含异步TCP服务,通过自定义二进制协议进行数据传输 纯计算,无状态 1.2、系统架构 消息写入流程 1、Productor通过SDK发...
flex布局 https://www.ruanyifeng.com/blog/2015/07/flex-grammar.html flex布局,最后一个元素靠右or靠下 margin-left: auto 或 margin-top: auto :nth-child()选择器 https://developer.mozilla.org/zh-CN/docs/Web/CSS/:nth-child
安装环境 一台机器上部署两个实例 redis.conf文件务必区别: dir:数据文件 logfile:日志文件 dbfilename:转储文件 pidfile:进程ID文件 Ubuntu 22.04 LTS redis版本:7.0.0 安装dev 源码目录:/opt/redis-7.0.0/ 可执行文件目录:/opt/redis-...