Designing an Energy-efficient Architecture for Geo Databases by Yichen Wei
ScyllaDB
7 views
32 slides
Oct 17, 2025
Slide 1 of 32
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
About This Presentation
The cost and efficiency of IP geolocation data services depends on careful system design. This talk covers how storage architecture, data compression, network optimization, memory layout, and CPU-level tuning all play a role. We also show how techniques like NUMA awareness, SIMD, zero-copy, and zero...
The cost and efficiency of IP geolocation data services depends on careful system design. This talk covers how storage architecture, data compression, network optimization, memory layout, and CPU-level tuning all play a role. We also show how techniques like NUMA awareness, SIMD, zero-copy, and zero-serialization enable higher traffic with lower resource use.
Size: 2.11 MB
Language: en
Added: Oct 17, 2025
Slides: 32 pages
Slide Content
A ScyllaDB Community
Designing an Energy-efficient
Architecture for Geo Databases
Yichen Wei
Engineer Manager
Yichen Wei
Engineer Manager
■HA Distributed Platform domains with
machine learning and GenAI
■Evangelist of HPC, HTAP, Rust and FP/CT
■WASM/WASI, FaaS
Geo service
Challenge
■Critical Service
●Low latency
●High availability
●Backward and forward compatibility
■Cost
●Data size
●Query performance
Geo service workflow
Why not existing local databases?
Why not using sqlite, duckdb or rocksdb?
■Different user cases
●Daily/Weekly full size dump
●No update operations
■Performance and cost concerns
●Read/Write amplification and memory footprint
●Long tail lookups
Solution
Geo service workflow
Optimization 1: Loading
Optimization 2: Parsing
■Encoding
●Dictionary encoding - Country, Region, City, Metro, Zip…
●Delta encoding - longitude and latitude
Optimization 2: Parsing
■Memory layout and alignment
Optimization 2: Parsing
■Memory layout and alignment
Optimization 3: Lookup
SIMD
■https://github.com/alivanz/go-simd
■`linkname` directive to call C code, bypass CGO
Optimization 3: Lookup
SIMD
Optimization 3: Lookup
SIMD
Optimization 3: Lookup - One More Thing
premature optimization is the root of all evil
Optimization 3: Lookup - One More Thing
Optimization 3: Lookup - One More Thing
Optimization 3: Lookup - One More Thing
Optimization 3: Lookup - One More Thing
Optimization 3: Lookup - One More Thing
Understand compiler first before optimizations!
Looking Forward
■Compression & encoding
■Histogram Distribution
■Data prefetching
■Change Language
Takeaways
■No one knows your data better than you
■Don’t be afraid to build the infrastructure for your data
■Optimization is fun
●… and hard
■Golong doesn’t support SIMD well