{"id":18378635,"url":"https://github.com/creatcodebuild/system-design-interview-lies","last_synced_at":"2026-01-22T12:08:12.771Z","repository":{"id":93996685,"uuid":"345046472","full_name":"CreatCodeBuild/system-design-interview-lies","owner":"CreatCodeBuild","description":"Maybe system interview design questions \u0026 answers are lies.","archived":false,"fork":false,"pushed_at":"2021-03-06T09:14:34.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-11T13:47:45.379Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CreatCodeBuild.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-03-06T08:43:40.000Z","updated_at":"2021-03-06T09:14:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"a8653ea6-ab52-403e-8ae1-21ec1aac93ce","html_url":"https://github.com/CreatCodeBuild/system-design-interview-lies","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/CreatCodeBuild/system-design-interview-lies","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CreatCodeBuild%2Fsystem-design-interview-lies","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CreatCodeBuild%2Fsystem-design-interview-lies/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CreatCodeBuild%2Fsystem-design-interview-lies/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CreatCodeBuild%2Fsystem-design-interview-lies/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CreatCodeBuild","download_url":"https://codeload.github.com/CreatCodeBuild/system-design-interview-lies/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CreatCodeBuild%2Fsystem-design-interview-lies/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28662924,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T01:17:37.254Z","status":"online","status_checked_at":"2026-01-22T02:00:07.137Z","response_time":144,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T00:34:36.161Z","updated_at":"2026-01-22T12:08:12.717Z","avatar_url":"https://github.com/CreatCodeBuild.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# system-design-interview-lies\nMaybe system interview design questions \u0026amp; answers are lies.\n\nI am a professional software engineer with a Computer Science bachelor degree from a top university in US.  \nI have 3.5 years professional experience working for Silicon Valley web \u0026 tech companies as the time of writting.   \nI now work as a distributed system / infrastructure engineer in a database company.  \nThough 90%+ of my work have been on the foundation of previous design and implementation. But I had the luck to design and implement some new system as well.\n\nI have never passed a system design interview.\n\n# URL Shortener\nLast week, I was in a interview and the interviewer asked me to design a URL shortner. I gave a design.   \nBut apparently the interviewer did not think the design qualifies and I failed the interview.\n\n2 years ago, I also had the same question in a different interview. I also failed that one.\n\n2 consecutive failures of the same question kept me wondering. Is it true that I have to gave a template answer of URL shortner in order to pass the interview?  \nConsidering URL shortner a popular question, there are many best answers on the internet.   \nOf course, I did not give those best answers, I gave answers according to my understanding of software engineering and compute science.\n\nBut still I felt super annoied by the fact that I failed these system design interviews. \n\nI want to implement 2 URL shortners. One with my naive design and another with the \"best\" template answer on the internet.\n\nMaybe I will learn a lesson or 2. Or maybe those best template answers are lies.\n\n## Requirement\nThe short URL has 5 chars. a-z and 0-9. Each char has 36 choices. That's a total of 36^5 = 60,466,176 (60 million) urls.\nThe minimal QPS of the service is 100,000. Let's say 25% are new URLs and 75% are reads of short URLs.\n\nWith this rate, the service will run out of short URLs in 40 minutes.\n\nIf the system can stand available in until ran out of short URLs, the system will pass. If both pass, the one with less overall (avg, mid, 99%, 95%) latency wins.\n\n## Design A: My naive design\n\n## Design B: Best Answer on the internet\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcreatcodebuild%2Fsystem-design-interview-lies","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcreatcodebuild%2Fsystem-design-interview-lies","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcreatcodebuild%2Fsystem-design-interview-lies/lists"}