-
Redis cookbook - (3)Data Structure
映射关系 较新版本中ZipList被ListPack淘汰, 但是本质上类似. SDS (Simple Dynamic String)特点 O(1)获得长度信息 避免溢出 → 1MB以下double扩容, 1mb以上每次扩容1MB 二进制安全... -
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... -
Redis cookbook - (1)Intro
特点将会在后面逐一介绍这些特点, 此处只是列出来作为参考. 高性能 内存数据库 单线程异步IO(避免多线程竞争和阻塞) 多数据结构 → String, Hash, List, Zset, Sorted Set, etc 持久化 RDB... -
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... -
DDIA cookbook - (12)The Future of Data System
Data IntegrationAppropriate choice of software tool depends on the circumstances. Combining Specialized Tools by Deriving Dat... -
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... -
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... -
DDIA cookbook - (9)Distributed Transactions and Consensus
IntroConsensus → get several nodes to agree on something. Some situations: Leader Election → The leadership positi... -
DDIA cookbook - (9)Ordering
Ordering and CausalityCausality imposes an ordering on events: cause comes before effect; a message is sent before that messa... -
DDIA cookbook - (9)Linearizability
CAP Theorem Consistency → Every read receives the most recent write or an error Availability → Every request receiv...
闲云野鹤
A lone cloud