hyy's blog


一些redis进阶知识

最近突然接了一个性能优化的需求。 大概是一个这样架构的微服务,对外提供根据主键查询数据的接口,对于此接口,性能要求较高,需支撑IAM系统中获取鉴权相关资源的操作。 还是先描述一下机器规格与采用的集群模式: 1,负载均衡器采用NAT模式,转发TCP数据包,在Server端与Client端皆...

为什么我说Go的动态数组是灾难

Go的动态数组简直是灾难! 先温习一些计算机基础知识。 一个程序,按照生命周期,可大致分为(以编译型语言举例,不讨论Python等解释型语言)编译期(Compile Time)与运行期(Runtime)。 编译期编译器负责将使用高级抽象编程语言写的代码编译为计算机可执行的二进制文件。运行时...

Safety In Rust And Differencies Between Rust And Golang

git — layout: post title: Safety in Rust and differences between Rust and Golang date: 2023-09-06 categories: blog tags: [Rust] description: — As...

Cache constructed by moka crate

During my intern in HUAWEI CLOUD, we have constructed a two layer cache using Redis as the second layer and a cache provided by moka crate as the f...

Hello, World!

Although I decided to establish my blog about two years ago, on Sep 6, 2022, I succeed! Hope I can persist in writing!