ROBERT4TECH (@Robert4tech) header
ROBERT4TECH (@Robert4tech) profile picture

Tech Enthusiast | Software engineer

Guess my location
Joined February 2023
Photo by ROBERT4TECH (@Robert4tech)Photo by ROBERT4TECH (@Robert4tech)Photo by ROBERT4TECH (@Robert4tech)Photo by ROBERT4TECH (@Robert4tech)Photo by ROBERT4TECH (@Robert4tech)Photo by ROBERT4TECH (@Robert4tech)Photo by ROBERT4TECH (@Robert4tech)Photo by ROBERT4TECH (@Robert4tech)Photo by ROBERT4TECH (@Robert4tech)Photo by ROBERT4TECH (@Robert4tech)
The difference is indentation (spacing before print).
This quoted post is unavailable.
4
351
ROBERT4TECH retweeted
gonna build a toilet in the city where u enter for free but first watch ads to get out
42
270
10
3,959
40,102
Afande, you are, right
This post is from an account that no longer exists. Learn more
3
147
Who were the Bachwezi
2
4
293
If desktop is fast but mobile is slow, I’d throttle to Slow 4G + low CPU, then check JS bundle size, image optimization, render performance, and third-party scripts. Mobile bottlenecks are usually frontend + network constraints.
Interviewer: Your website loads fast on desktop but is extremely slow on mobile devices. The backend looks fine. Where would you start debugging?
1
90
Feature flags. Same codebase, but behavior is conditionally enabled per user, % rollout, region, or tier. Enables gradual rollouts, A/B tests, and instant rollback no redeploy needed.
How do platforms roll out features to selected users while using the SAME backend, SAME codebase, SAME APIs? 🤔
1
63
Database
What would be the target of an SQL injection attack? a. database b. DHCP c. email d. DNS
45
ROBERT4TECH retweeted
Who is prepared for the MK Fund??
652
132
20
1,143
50,558
Am here sir
This post is from an account that no longer exists. Learn more
33
Use replicas for reads with lag monitoring. Critical reads go to primary; non critical can tolerate slight staleness. Combine with caching, connection pools, and fallback to avoid overloading primary.
Your app uses a read-replica DB for performance. One day, the replica lags behind by 15 seconds. Users see outdated info. You switch all reads to the primary and now it crashes from load. How do you design a safe, resilient read strategy under failure?
41
Use a write behind cache: Redis INCR for speed + durable queue/AOF for safety, then batch-flush counts to MySQL asynchronously. High throughput, no row lock storm, no data loss.
You are designing a 'Like' button for a viral post. Expected traffic: 100,000 likes per second. Database: MySQL. Problem: Updating a single row (`UPDATE posts SET likes = likes + 1 WHERE id = 1`) locks that row. All 100,000 requests serialize, killing performance. Solution: You use Redis `INCR`. But if Redis crashes, you lose the likes. What 'Write-Behind' or 'Buffering' pattern allows you to capture high-speed writes in memory and persist them to SQL in batches safely?
2
39
Design per client rate limits (API key/IP), use token bucket in Redis, enforce tier-based quotas, and dynamically tighten limits under high load. Return 429 with Retry After. Fairness > global throttling.
You’re running a public API. Everything is fine… Until one client sends 5,000 requests in 10 seconds. Other users start timing out. Your infra is under attack or just badly throttled. How do you design dynamic rate limiting for fairness?
1
34
If 10k users crash your app, it’s a scalability issue. Fix with load balancing, horizontal scaling, Redis caching (sessions), DB optimization, queues for heavy tasks, and proper load testing before prod.
Interviewer- Your product works perfectly in development but crashes when 10000 users log in at once. Same code and Same features. What would you use to fix this?
2
26
ROBERT4TECH retweeted
Interviewer- Your product works perfectly in development but crashes when 10000 users log in at once. Same code and Same features. What would you use to fix this?
31
4
1
79
10,822
You don’t stop users from breaking your system. You design it assuming they will. Validate inputs, enforce server side auth, rate limit, apply least privilege, and log everything. Defensive design > trusting users.
Interviewer: I asked 200+ engineers one simple question How do you stop a user from breaking your system? 99% got it wrong!!
20
Fix by normalizing phone numbers to E.164 format, generating OTPs in UTC (never client time), and logging SMS provider failures. Add retries + fallback (email/resend). Standardization + observability solves it.
You add 2FA to your login flow. Works fine in dev. In prod, 5% of users say they never receive the code. Turns out: their timezones and phone formats are messing with your OTP service. How do you fix this?
16
If a single row UPDATE runs 15s in prod, I’d check for locks (SHOW PROCESSLIST), run EXPLAIN to see if it’s missing an index, and verify no long transactions are blocking it. If critical, kill it safely, then fix the root cause.
The DB query that was supposed to update only 1 row is still running after 15 seconds in Production... What's your next step ?
20