Joined December 2023
26 Photos and videos
29 Aug 2025
"What the hell is database sharding?" I asked my senior engineer 3 years ago. He said, "I'll explain it tomorrow." That tomorrow never came. So I figured it out myself. Here's the explanation he never gave me: Sharding = splitting your massive database into smaller pieces across multiple servers. Think 1 giant messy filing cabinet that takes forever to search through vs 3 organized smaller ones where you know exactly which one has what you need. The lightbulb moment Instead of cramming 1 million users in ONE database, you split them up: Shard 1: Users A-H (333K users), Shard 2: Users I-P (333K users), Shard 3: Users Q-Z (334K users). Searching through 333K records is way faster than 1M records. Simple math.
2
48
26 Aug 2025
I wrote Netlify, auto-corrected corrected and opened Netflix.
14
25 Aug 2025
How did you use your Cursor last month? I’ve been running it on auto mode, and honestly, it’s working really well for me.
1
1
611
24 Aug 2025
Can you still code a whole MERN stack ecommerce app without AI help? If you can't, maybe don't call yourself an engineer yet 🤷‍♂️ Look, auto-complete (ai) is fine. stackoverflow and Github issues? Sure. studying other engineers's code? Absolutely. But straight up AI generation? Nah. Non-tech people are building apps with tools like Lovable now. So what makes you different after your 5 year CS degree? You spent years learning to code, now you need AI to write basic functions? At least on weekends, challenge yourself. Can you still hardcode? Is your brain still working? Best way I've found to keep up: review every line of code Cursor generates for you. Study open source repos instead of just waiting for your turn. Checked out a Nuxt movies repo yesterday - learned Vue SFC isn't limited to one component like I thought. AI never teaches you these patterns, only getting your hands dirty does. Just saying. Stay sharp or get left behind.
1
1
63
23 Aug 2025
If PostgreSQL is the "king," like everyone says, then why does MongoDB still serve millions of users daily? Here's where relational DBs actually break: Fixed schemas: - Your users table has 15 columns, but premium users need 5 extra fields. - Now you're either adding nullable columns for everyone or creating awkward junction tables. Single-machine bottleneck: - PostgreSQL runs on one server. - When you hit CPU/memory limits, your only option is to buy bigger hardware. - Can't just add more servers. ACID overhead: - Every write needs disk persistence locking for consistency. - Great for banking, terrible when you need 10k writes/second for real-time analytics. Relational impedance: - Storing a JSON document means either shoving it in a TEXT field (losing query ability) or - normalizing it across 5 tables (killing performance). NoSQL attacks these specific problems: - MongoDB: Flexible schemas, horizontal scaling - Redis: In-memory speed, simple data structures - Cassandra: Write-heavy workloads, multi-datacenter - Neo4j: Graph traversals without expensive JOINs Alright, SQL databases are optimized for ACID compliance and relational integrity. When you don't need that overhead, NoSQL gives you speed, flexibility, or scale. It's not about better/worse - it's about different engineering trade-offs.
1
1
81
22 Aug 2025
What actually happens when you run "SELECT * FROM users" in your database? Your simple query goes through a multi-step journey inside the DBMS before you get results. It's like ordering food - seems instant, but there's a whole kitchen operation behind it. Here's the backstage tour: Your SQL hits the Parser first - checks if you wrote valid SQL or gibberish. Then Authorization Control asks, "Are you even allowed to see this table?" Query Processor turns your human-readable SQL into a logical plan, while Optimizer figures out the fastest way to get your data - should it scan the whole table or use an index? Transaction Manager makes sure your query doesn't interfere with others running simultaneously. Integrity Checker ensures you're not breaking any database rules. Finally, Data Manager grabs the actual data from disk, I/O Processor handles the file operations, and Result Generator packages everything nicely for you. All this happens in milliseconds. Your database isn't just a fancy file cabinet - it's a sophisticated engine with specialized components working together. Next time your query takes 2 seconds, remember there's an entire assembly line working for you.
1
7
609
21 Aug 2025
Why ACID matters in databases (and why it's not just chemistry class) You know that moment when you transfer money online and your bank app crashes mid-transaction? Without ACID properties, you might lose $500 and the recipient gets nothing. Fun times. ACID isn't just a chemistry term - it's what keeps your data from turning into a mess: Atomicity: All or nothing. Bank transfer either completes fully or gets rolled back completely. Consistency: Data follows the rules. No negative ages or double-booked flights. Isolation: Multiple users can't interfere with each other's transactions. Durability: Once it's done, it's permanently saved even if the server crashes. Real talk: PostgreSQL is ACID-compliant by default. Some NoSQL databases traded ACID for speed but many are adding it back because data integrity matters. Your blog comments don't need ACID. Your payment system absolutely does. Choose wisely, because explaining to customers why their money disappeared is way harder than implementing proper transactions. The chemistry joke writes itself, but the data protection is serious business.
65
21 Aug 2025
I get confused: "Is MongoDB a database or DBMS?" MongoDB is a DBMS - the software that manages your data. Your actual collections and documents are the database. Just like: PostgreSQL = DBMS (manages relational data) MongoDB = DBMS (manages document data) Redis = DBMS (manages key-value data) Different DBMS types, same concept. The software manages the data; the data itself is your database.
42
21 Aug 2025
Just got a call for an interview. She asked me about my work experience, and I told her it's over three years. We went through some basic questions, and then she asked, "Awais, I don't see your degree listed." I replied, "I haven't graduated yet. I only completed high school." She said, "I'm sorry, but we're looking for someone with a degree." It's frustrating because this was a local job. Before this, I worked with international startups from the US, Malaysia, and the Philippines. I was honest with them about not having a degree, and they told me it wasn't a problem.
51
21 Aug 2025
What's the difference between a Database and a DBMS? Database: Just the data itself - tables, records, files sitting somewhere DBMS (Database Management System): The software that manages the data Think of it like: - Database = Your music collection - DBMS = Spotify Why you need DBMS 1/ Raw data files can't handle concurrent users 2/ No built-in security or permissions 3/ Manual data integrity checks 4/ Complex queries require custom code Examples - PostgreSQL, MySQL = DBMS software - Your "users" table = Database SQL queries, user permissions, transaction handling = DBMS features Database is just data. DBMS is the engine that makes that data actually usable in applications.
1
72
21 Aug 2025
Real talk on Nuxt hosting options I see so much Vercel hate from frontend devs, but let's be honest - when Netlify fails to deploy, Cloudflare Workers hit payment limits, and VPS setup with Coolify takes hours, Vercel just works for getting demos live quickly. The Nuxt community's reaction to the Vercel acquisition seems overblown. NuxtLabs joining Vercel isn't automatically bad. Next.js pioneered server/client separation, component colocation, route grouping, and nested layouts. Give credit where it's due. For your specific needs: - Vercel handles SSR, global edge, automatic subdomains easily - Add PlanetScale/Neon for database, Resend for emails, S3 for storage - Stop overthinking the "right horse" - your customers don't care where you host the demo NuxtHub charges after limits while relying on Cloudflare infrastructure anyway. If it requires more technical knowledge than Vercel, why not just use what works? I deployed apps last week. - Netlify failed silently - NuxtHub failed without clear errors - Vercel deployed my Nuxt app instantly. Sometimes Cloudflare Pages works, sometimes Netlify works, but consistency matters for business. So far, use what gives you better DX, saves time, and gets your app live. The vibes don't pay the bills.
59
20 Aug 2025
Building a subscription payment system with Stripe. Considering MongoDB for: - Flexible schema for different subscription tiers - Easy horizontal scaling - Strong consistency with replica sets But financial data demands ACID compliance. PostgreSQL might be better for strict consistency, though NoSQL offers scaling advantages. Main concerns with MongoDB: - Race conditions in concurrent payments - Data consistency during subscription updates - Potential deadlocks For those who've built payment systems: Did you stick with SQL for financial data reliability, or made NoSQL work with additional safeguards? What architecture patterns worked best for you?
1
142
20 Aug 2025
So, who’s actually using Turso in real-world apps? It has a nice free tier and pretty reasonable pricing, which is a plus. But here’s the catch: Turso is based on LibSql, which runs on SQLite. This setup means it can struggle with multiple write requests at the same time. So, does that mean Turso is a bad choice? Not necessarily. If your app doesn’t have frequent write operations, Turso might be a great database for you.
55
20 Aug 2025
Serious question: Why do we only use Postgres, MySQL, and MongoDB in production? CouchDB, ScyllaDB, ArangoDB, CockroachDB exist. Some are actually better for specific use cases. Is it just network effects? Fear of being the one who picked the 'weird' database? What's your theory?
1
2
97
20 Aug 2025
Why PostgreSQL is the database king (and it's not even close): - ACID compliance that actually works - JSON support (eat your heart out, MongoDB) - Extensions for everything (PostGIS, TimescaleDB) - Performance that scales - Community that doesn't gatekeep MySQL has speed, MongoDB has marketing, but Postgres has everything.
31
19 Aug 2025
My client's app kept freezing at login. I blamed their internet. Plot twist: I was the problem A thread about connection pools and why I ignored AI suggestions (big mistake) 👇
1
20
19 Aug 2025
5/6 The kicker? Gemini suggested the same fix weeks ago. I declined it. Sometimes AI knows better than your ego.
1
19
19 Aug 2025
6/6 Lesson: One Prisma instance per app, not per module. Connection pools aren't infinite. Listen to AI suggestions (sometimes)."
17