---
title: Moving from Redis to SQLite with Mike Buckbee
url: "https://aaronfrancis.com/videos/moving-from-redis-to-sqlite-with-mike-buckbee"
path: "/videos/moving-from-redis-to-sqlite-with-mike-buckbee"
type: video
author: Aaron Francis
published: 2024-11-26
topic: Databases
keywords: [sqlite, redis, wafris, web application firewall, database architecture, ip address ranges, threat lists, read write splitting, cybersecurity, performance optimization, data structures, operational advantages]
youtube_url: "https://www.youtube.com/watch?v=EwDuYId5v8k"
chunked: true
full_bytes: 67986
section_count: 15
full_url: "/videos/moving-from-redis-to-sqlite-with-mike-buckbee/full.md"
site_index: "/llms.txt"
keyword_index: "/llms/keywords.txt"
---

# Moving from Redis to SQLite with Mike Buckbee

## Sections (66.4 KB full document — follow any link to read verbatim)

This page is long enough to hit agent truncation cliffs if fetched all at once. Pick the section matching your question below to read it 100% verbatim (< 35 KB each), or open the [full unsplit document (66.4 KB)](/videos/moving-from-redis-to-sqlite-with-mike-buckbee/full.md).

### 1. Introduction and Guest Overview (00:02–01:33 · 1.8 KB)
Aaron Francis introduces Mike Buckbee, a longtime developer and cybersecurity expert he's known for over a decade, who co-founded WAFris (W-A-F-R-I-S) and recently wrote about migrating from Redis to SQLite.
Keywords: `guest overview`, `wafris`, `introduction`, `overview`, `buckbee`, `known`, `mike`, `sqlite`
[Read section 1 verbatim](/videos/moving-from-redis-to-sqlite-with-mike-buckbee/sections/1-introduction-and-guest-overview.md)

### 2. What is Wafris? (01:33–02:50 · 1.5 KB)
WAFris is an open-source web application firewall (WAF) designed to level the asymmetry between attackers and defenders by making protection accessible beyond just enterprises, addressing the trivial nature of mass attacks like script kiddies looping cURL commands.
Keywords: `wafris`, `web application`, `application firewall`, `buckbee`, `curl`, `application`, `firewall`, `go`
[Read section 2 verbatim](/videos/moving-from-redis-to-sqlite-with-mike-buckbee/sections/2-what-is-wafris.md)

### 3. Naming and Origins of Wafris (02:50–04:27 · 2.0 KB)
Mike discusses choosing unique, weird names for startups like WAFris to avoid trademark issues, improve SEO differentiation, and simplify domain acquisition, joking that Aaron's suggested 'WAFqlite' would have been much worse.
Keywords: `wafris`, `naming`, `origins`, `buckbee`, `sqlite`, `wafqlite`, `mike`, `rolls`
[Read section 3 verbatim](/videos/moving-from-redis-to-sqlite-with-mike-buckbee/sections/3-naming-and-origins-of-wafris.md)

### 4. Mike's Cybersecurity Background (04:28–07:31 · 3.3 KB)
Mike started in cybersecurity consulting with a CISSP certification, worked at Varonis as director of demand generation pre-IPO, then built Expedited SSL and Expedited WAF as side projects in the Heroku Salesforce ecosystem before co-founding WAFris.
Keywords: `cybersecurity background`, `mike cybersecurity`, `mike`, `cybersecurity`, `background`, `wafris`, `buckbee`, `web application`
[Read section 4 verbatim](/videos/moving-from-redis-to-sqlite-with-mike-buckbee/sections/4-mikes-cybersecurity-background.md)

### 5. Challenges with Web Application Firewalls (07:31–10:03 · 2.6 KB)
Enterprise WAFs handle operational security issues outside frameworks like Laravel and Rails, stopping attacks including credential stuffing with rotating IPs and other exploits that rate limiting alone cannot prevent, motivating WAFris's design.
Keywords: `web application`, `application`, `application firewalls`, `challenges`, `firewalls`, `buckbee`, `rate limiting`, `ip addresses`
[Read section 5 verbatim](/videos/moving-from-redis-to-sqlite-with-mike-buckbee/sections/5-challenges-with-web-application-firewalls.md)

### 6. Wafris Architecture Overview (10:04–16:25 · 8.4 KB)
WAFris has a Hub management service (remote server) and local client middleware/ingress controllers that communicate with local and remote Redis instances, though this created friction requiring users to become Redis database admins just to install it.
Keywords: `wafris architecture`, `architecture overview`, `wafris`, `architecture`, `overview`, `buckbee`, `ip address`, `data store`
[Read section 6 verbatim](/videos/moving-from-redis-to-sqlite-with-mike-buckbee/sections/6-wafris-architecture-overview.md)

### 7. Why Switch to SQLite? (16:25–18:08 · 1.8 KB)
WAFris moved from Redis to SQLite to eliminate the operational burden of forcing users to manage Redis infrastructure, while also discovering SQLite offered better performance for their unique read-heavy, write-minimal workload.
Keywords: `sqlite`, `switch`, `buckbee`, `ip addresses`, `cidr ranges`, `ip address`, `ipv4`, `ipv6`
[Read section 7 verbatim](/videos/moving-from-redis-to-sqlite-with-mike-buckbee/sections/7-why-switch-to-sqlite.md)

### 8. Handling IP Address Ranges (18:08–24:05 · 7.1 KB)
WAFris stores and checks IPv4/IPv6 CIDR ranges (e.g., country blocks, reputation lists, custom blocks) against incoming requests, requiring up to four different range checks per HTTP request to validate allowlist and blocklist rules.
Keywords: `address ranges`, `ip address`, `ranges`, `ipv6`, `address`, `handling ip`, `mysql`, `ipv4`
[Read section 8 verbatim](/videos/moving-from-redis-to-sqlite-with-mike-buckbee/sections/8-handling-ip-address-ranges.md)

### 9. Wild Redis Data Structures Explained (24:05–28:52 · 6.0 KB)
Mike implemented a clever Redis sorted set trick using lexically-sorted IP addresses with appended rule IDs as markers, checking values above and below a lookup to determine range containment, later porting this same logic efficiently to SQLite.
Keywords: `redis`, `sqlite`, `data`, `wild redis`, `redis data`, `data structures`, `structures explained`, `structures`
[Read section 9 verbatim](/videos/moving-from-redis-to-sqlite-with-mike-buckbee/sections/9-wild-redis-data-structures-explained.md)

### 10. Transitioning to SQLite (28:52–32:04 · 4.2 KB)
After implementing the innovative Redis range-checking approach, Mike created a testing harness to reinvent it for SQLite, finding the same optimal structure worked best and nerd-sniping developer friends who couldn't devise a faster alternative.
Keywords: `sqlite`, `transitioning`, `buckbee`, `nerd sniping`, `two columns`, `second column`, `nerd`, `cause`
[Read section 10 verbatim](/videos/moving-from-redis-to-sqlite-with-mike-buckbee/sections/10-transitioning-to-sqlite.md)

### 11. Operational Advantages of SQLite (32:04–37:04 · 6.2 KB)
WAFris now uses read-only SQLite with 'up-sync' and 'down-sync' systems where clients pull the latest database via API key instead of hub pushing updates, eliminating Redis setup complexity and making installation nearly automatic.
Keywords: `sqlite`, `operational advantages`, `operational`, `buckbee`, `new sqlite`, `mm-hmm`, `sqlite database`, `database`
[Read section 11 verbatim](/videos/moving-from-redis-to-sqlite-with-mike-buckbee/sections/11-operational-advantages-of-sqlite.md)

### 12. How Wafris Leverages Threat Lists (37:04–40:25 · 4.4 KB)
WAFris distributes multiple SQLite files: custom rules (user blocks, allowlists) and data subscriptions including GeoIP databases, plus curated rule sets blocking SEO scrapers like Ahrefs and Semrush, and AI scrapers.
Keywords: `sqlite`, `geoip`, `wafris leverages`, `leverages threat`, `threat lists`, `threat`, `ips`, `wafris`
[Read section 12 verbatim](/videos/moving-from-redis-to-sqlite-with-mike-buckbee/sections/12-how-wafris-leverages-threat-lists.md)

### 13. Performance Gains with SQLite (40:25–46:51 · 7.6 KB)
SQLite delivered unexpected performance wins alongside operational simplicity: easier setup, cross-region compatibility, and benchmarked speed improvements specific to WAFris's read-heavy, write-free hot path that Redis wasn't optimized for.
Keywords: `sqlite`, `performance gains`, `performance`, `gains`, `buckbee`, `mm-hmm`, `ip addresses`, `redis`
[Read section 13 verbatim](/videos/moving-from-redis-to-sqlite-with-mike-buckbee/sections/13-performance-gains-with-sqlite.md)

### 14. Splitting Reads and Writes in the New Architecture (46:51–52:35 · 7.4 KB)
WAFris splits architecture so reads use fast local read-only SQLite, while writes batch every 1,000th request to local SQLite files that eventually upload to the API, reducing per-request latency and administrative burden on developers.
Keywords: `new architecture`, `sqlite`, `architecture`, `splitting`, `splitting reads`, `reads`, `writes`, `buckbee`
[Read section 14 verbatim](/videos/moving-from-redis-to-sqlite-with-mike-buckbee/sections/14-splitting-reads-and-writes-in-the-new-architectu.md)

### 15. Closing Thoughts and Where to Learn More (52:35–54:36 · 2.4 KB)
Mike directs listeners to wafris.org, notes Rails client is V2-ready while other clients still use V1, and invites engagement on LinkedIn (@mbuckby) and Twitter, while offering a podcast spot to anyone with a better range-checking algorithm.
Keywords: `closing thoughts`, `closing`, `wafris`, `thoughts`, `buckbee`, `linkedin`, `pitch`, `go`
[Read section 15 verbatim](/videos/moving-from-redis-to-sqlite-with-mike-buckbee/sections/15-closing-thoughts-and-where-to-learn-more.md)

---

## Related on aaronfrancis.com

- [High Performance SQLite](/courses) *(Course · 2024-07-01 · shared: sqlite, database performance)*
- [Super Epic Crazy with Adam Wathan](/podcast/super-epic-crazy-with-adam-wathan-81c46343) *(Podcast · 2024-03-27 · shared: sqlite, redis)*
- [SQLite's WAL mode is fast fast](/videos/sqlites-wal-mode-is-fast-fast) *(Video · 2024-07-10 · shared: sqlite, database performance)*
- [Migrating from Postgres to SQLite with Kent C. Dodds](/videos/migrating-from-postgres-to-sqlite-with-kent-c-dodds) *(Video · 2024-06-20 · shared: sqlite, redis)*
- [About](/about) *(Page · 2026-11-25 · shared: sqlite)*

## Relevant Resources from Aaron Francis

- **[High Performance SQLite](https://databaseschool.com)** (overview on site: [/courses](/courses)): Comprehensive video course on running SQLite in production: WAL mode, concurrency, FTS5, strict tables, backups, and performance tuning.
- **[MySQL for Developers](https://databaseschool.com)** (overview on site: [/courses](/courses)): Full video course covering MySQL indexing, deferred joins, pagination, query plans, and schema design for application developers.

## Search aaronfrancis.com (2-Hop Static Keyword Index)

Pick the alphabetical shard matching any topic to find exact pages across all articles, newsletters, videos, talks, and podcast transcripts (every shard is < 40 KB):
[A-B](/llms/keywords/a-b.txt) · [C](/llms/keywords/c.txt) · [D-E](/llms/keywords/d-e.txt) · [F-G](/llms/keywords/f-g.txt) · [H-J](/llms/keywords/h-j.txt) · [K-L](/llms/keywords/k-l.txt) · [M-N](/llms/keywords/m-n.txt) · [O-P](/llms/keywords/o-p.txt) · [Q-R](/llms/keywords/q-r.txt) · [S](/llms/keywords/s.txt) · [T-Z](/llms/keywords/t-z.txt) · [Directory](/llms/keywords.txt) · [Site Map](/llms.txt)

Shards for this page's topics: `sqlite` ([S](/llms/keywords/s.txt)), `redis` ([Q-R](/llms/keywords/q-r.txt)), `wafris` ([T-Z](/llms/keywords/t-z.txt)), `database architecture` ([D-E](/llms/keywords/d-e.txt)).

## About Aaron Francis (Current Context)

Aaron Francis is VP of Marketing and Community at [Laravel](https://laravel.com), founder of [Try Hard Studios](https://tryhardstudios.com), creator of [Solo](https://soloterm.com), co-host of [Mostly Technical](/podcast), and author of [Mastering Postgres](/courses), [High Performance SQLite](/courses), [MySQL for Developers](/courses), and [Screencasting.com](/courses). Full bio: [/about](/about) · Current focus: [/now](/now).
