01 2025 档案
摘要:1.服务端 1.1 字符消息 NettyServer /** * @author liu.wenxuan1 * @Description: netty服务端处理字符消息 解码器问题 不能同时处理文件和字符 */ public class NettyServer { private static fi
阅读全文
摘要:1.依赖 <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>3.0.0</version> <relativePath/>
阅读全文
摘要:1.简介 ClickHouse是一个用于联机分析(OLAP)的列式数据库管理系统(DBMS)。 使用SIMD高效指令集,向量化执行引擎,列存储数据高效压缩 1.1 OLAP 核心A:在线实时分析 类型:关系型,多维,混合,空间。ck是关系型 基本分析操作: 上卷RollUp: 相关数据聚合到一个变量
阅读全文
摘要:1.火焰图 profiler start 启动采集(默认是CPU) profiler getSamples 查看采样的数量 profiler status 查看采样的状态(是否在运行,运行了多久) profiler stop 停止并生成火焰图 通过路径或web打开http://localhost:3
阅读全文
摘要:1.构成 1.1 Elasticsearch Elasticsearch是一个高度可扩展的全文搜索和分析引擎,基于Apache Lucence(事实上,Lucence也是百度所采用的搜索引擎)构建,能够对大容量的数据进行接近实时的存储、搜索和分析操作。 1.2 Logstash Logstash是一
阅读全文
摘要:1.背景 2.概念 2.1 文档Document 类似mysql一列,json格式存储 2.2 索引Index 索引类似数据库里的表,相同文档类型的集合 2.3 映射mapping 类似表结构 属性: type: 类型 text(可分词的文本)、keyword(精确值,例如:品牌、国家、ip地址)。
阅读全文
摘要:1.依赖 <dependency> <groupId>org.redisson</groupId> <artifactId>redisson-spring-boot-starter</artifactId> <version>3.25.0</version> </dependency> 2.yml
阅读全文
摘要:1.依赖 <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>3.0.0</version> <relativePath/>
阅读全文
摘要:go mod init name go mod vendor go mod tidy
阅读全文