. (@loadingunknownn) profile picture
Joined December 2013
Photo by . (@loadingunknownn)Photo by . (@loadingunknownn)Photo by . (@loadingunknownn)Photo by . (@loadingunknownn)Photo by . (@loadingunknownn)Photo by . (@loadingunknownn)Photo by . (@loadingunknownn)Photo by . (@loadingunknownn)Photo by . (@loadingunknownn)Photo by . (@loadingunknownn)
This quoted post is unavailable.
13
55
7
620
67,502
Evolution of programming languages: 1940s → Machine Code (0s 1s) 1949 → Assembly 1957 → FORTRAN 1959 → COBOL 1964 → BASIC 1970 → Pascal 1972 → C 1983 → C++ 1991 → Python 1993 → Ruby 1995 → Java 1995 → JavaScript 1995 → PHP 2000 → C# 2009 → Go 2010 → Rust 2011 → Kotlin 2011 → Elixir 2012 → TypeScript 2014 → Swift 2015 → Solidity 2026 → English
279
597
121
3,749
425,153
Your app is slow. Your users are waiting 3, 4, maybe 5 seconds for a page to load. You check your logs. The problem isn't your code. It's your database. It's on fire. It's spending all its time running the same complex 'SELECT' queries with 'JOINs' and 'ORDER BY' clauses, over and over, just to fetch a user's profile and their 10 most recent posts from a slow, spinning disk. You've heard of Redis. You think 'cache'. You also think, 'it's in-memory, so if my server reboots, all my data is gone'. You think it's just a temporary, volatile speed boost, a fragile layer you can't really depend on for anything important. That's not the full story. I was digging into it, I was expecting a simple cache. What I got was a Swiss Army Knife for my data. Here was my journey from slow app to superpower. Step 1: The 'Hello World' (The Obvious Cache) This is what everyone does, and it's brilliant. - My Problem: That slow 3-second SQL query. - My New Workflow: I fetch the data 'once', 'SET' it in Redis (which lives in blazing-fast RAM), and set an expiration of 5 minutes. - For the next 5 minutes, 10,000 requests for that profile are served in 'sub-milliseconds'. - My database load just dropped 99%. My app is fast. But the real magic begins when you stop treating it like a dumb string store. Step 2: The Click Moment (Data Structures) The real power is that Redis is a high-speed data 'structure' server. - My Problem: I need a real-time leaderboard. My 'ORDER BY score' query is killing my 10-million-row 'users' table. - My New Workflow: I use a Redis 'Sorted Set'. When a user's score changes, I 'ZADD leaderboard-main 19850 'user:123''. Redis handles the sorting 'instantly' on insertion. Fetching the top 10 is near-instant. Step 3: The 'Wait, what?' Features - My Problem: I need a list of recent notifications. 'SELECT ... LIMIT 20' is still a waste. - My New Workflow: I use a Redis 'List'. When a new notification comes in, I 'LPUSH' it. Then I 'LTRIM' the list to keep it at 20 items. It's a perfect, high-speed stack. - My Problem: I need a background job queue to send welcome emails. - My New Workflow: I don't install RabbitMQ. I just 'LPUSH' a job to a 'List', and my worker 'BRPOP's (blocking pop) to wait for the next job. It's simple and reliable. - My Problem: I need a real-time chat app. - My New Workflow: I don't build a complex WebSocket server. I just use 'Pub/Sub'. It's a high-speed, lightweight message broker built-in. Step 4: The "Pro Escape Hatch" (Debunking the Myth) This is what sold me. - My Fear: 'But if it reboots, my data is gone!' - The Reality: Redis has 'persistence'. It's not on by default (for speed), but it's there. - It can take 'snapshots' (RDB) of your dataset. Or, it can keep an 'Append-Only File' (AOF) log of every single write command. - It's not a replacement for Postgres as your 'source of truth', but it's far from a 'throwaway' cache. It's your cache, your message queue, your session store, your leaderboard, and your real-time engine, all in one. I thought Redis was a 'nice-to-have' performance boost. It's not. It's the high-speed multi-tool for your entire application.
99
241
31
3,169
570,503
what consistency actually is:
73
3,830
125
38,697
1,480,293
building in sf with your best friend >
62
98
16
2,273
162,687
*chefs kiss*
105
307
30
8,223
370,099
⚛️ If you are using fetch() in a useEffect, you probably want to watch this short video ↓
26
131
7
1,409
88,868
‼️ If I was A fighter I would love my promoter to show love like that instead like Oscar snorting it up!!! @EddieHearn Best promoter out there!! #Faxxx 😤😤😤 #Boxing 🥊 🥊 🥊
17
20
9
532
427,840
‼️ Canelo Alvarez meeting with Turki Alalshikh in London today…
215
369
165
5,096
640,558
A special gift for all boxing fans directly from the Gypsy King!!! Happy new year to all 🙏🏽 #HappyNewYear #tysonfury
34
48
13
397
76,768
✅ FEB 22 RIYADH SEASON CARD CONFIRMED
91
201
235
1,519
741,045
39
3,253
58
15,249
1,466,732
📢 UNDISPUTED GAME UPDATE! Thank you for your support since the launch of Undisputed. We’re happy to share that, after several weeks of work, we’re delivering an update today that will address some of the critical issues faced by players. There will be another update in mid-December. Read about all the changes we're making below: playundisputed.com/news/upda…
607
198
122
1,776
288,868
Trump this, Kamala that… you guys BAM & BOOTS are fighting this weekend!!!
70
482
74
2,435
121,238
Don’t spend $5,000 on a nice watch. Instead, invest in a Micromarket that can pay you $5,000 every month. (One of mine makes $17k/month). Best part? No big down payment needed. Here's how you can start yours:
237
928
83
16,390
4,413,969
Valuable lesson. Most people wont believe in your vision but if you find 1% of people in you life that do, keep them close
1
1
8
1,446
How to talk like a gentleman.
31
2,015
33
14,752
494,098
Books That Every Young Man Should Read:
868
1,752
24
13,157
650,941
Nobody isolates more than the oldest son that knows no one is coming to save him
513
12,215
1,266
68,116
3,199,686
176
3,468
106
31,919
1,995,023