闲云野鹤
A lone cloud
Kexin's Blog
  • HOME
  • ARCHIVES
  • TAGS
  • ABOUT
  • HOME
  • ARCHIVES
  • TAGS
  • ABOUT
  • Redis cookbook - (3)Data Structure

    映射关系 较新版本中ZipList被ListPack淘汰, 但是本质上类似. SDS (Simple Dynamic String)特点 O(1)获得长度信息 避免溢出 → 1MB以下double扩容, 1mb以上每次扩容1MB 二进制安全...
      2025-09-30  
    • redis 
    Read more 
  • Redis cookbook - (2)Data Type

    Redis Data TypesWhen most developers first encounter Redis, they treat it like a fast key-value store — storing simple string...
      2025-10-02  
    • redis 
    Read more 
  • Redis cookbook - (1)Intro

    特点将会在后面逐一介绍这些特点, 此处只是列出来作为参考. 高性能 内存数据库 单线程异步IO(避免多线程竞争和阻塞) 多数据结构 → String, Hash, List, Zset, Sorted Set, etc 持久化 RDB...
      2025-09-30  
    • redis 
    Read more 
  • What is `typing.TYPE_CHECKING` and `from __future__ import annotation`

    typing.TYPE_CHECKINGPurposetyping.TYPE_CHECKING is a boolean flag, it’s True during static type checking(e.g. mypy), and it’s...
      2025-09-17  
    • python 
    Read more 
  • DDIA cookbook - (12)The Future of Data System

    Data IntegrationAppropriate choice of software tool depends on the circumstances. Combining Specialized Tools by Deriving Dat...
      2024-01-12  
    • System Design 
    • | DDIA 
    Read more 
  • DDIA cookbook - (11)Stream Processing

    IntroFor batch processing, the key is that the data is bounded, i.e. of a known and finite size so the batch process knows wh...
      2024-01-08  
    • System Design 
    • | DDIA 
    Read more 
  • DDIA cookbook - (10)Batch Processing

    Systems of Record and Derived Data Systems of record A system of record, also known as source of truth, holds the authoritat...
      2023-12-15  
    • System Design 
    • | DDIA 
    Read more 
  • DDIA cookbook - (9)Distributed Transactions and Consensus

    IntroConsensus → get several nodes to agree on something. Some situations: Leader Election → The leadership positi...
      2023-12-08  
    • System Design 
    • | DDIA 
    Read more 
  • DDIA cookbook - (9)Ordering

    Ordering and CausalityCausality imposes an ordering on events: cause comes before effect; a message is sent before that messa...
      2023-12-08  
    • System Design 
    • | DDIA 
    Read more 
  • DDIA cookbook - (9)Linearizability

    CAP Theorem Consistency → Every read receives the most recent write or an error Availability → Every request receiv...
      2023-11-03  
    • System Design 
    • | DDIA 
    Read more 
Next
© 2023 - 2025    Kexin Tang
Visitor Count   Totalview 
Powered by Hexo | Theme Keep v3.6.1