Background
I'm a mid-level developer, new to the German job market. The process has two rounds:
- Round 1: introductions plus fundamentals (OOP concepts, design patterns, SQL, etc.)
- Round 2 (onsite): discuss my approach on a whiteboard, have lunch with the team, then do an implementation
This post is about Round 2. Two interviewers attended. They introduced themselves, I introduced myself, and they asked: "How would you build a tiny URL service?"
Requirements I clarified
- Expected users? About 7 million.
- Should links live for a fixed time (e.g. 48 hours) or be permanent? I asked because expired links could be cleaned up and reused. They asked why it mattered and then said they didn't know, so I treated it as a variable.
- A few more basic questions, which I don't remember in detail.
Whiteboard
They told me to start with a scenario: "We are the CEO's company and you're a freelancer. Explain it to us."
- I started with the basic HLD: URL as input, a service, a cache, and one DB. The cache is needed because the system is read-heavy. For example, during a flash sale the cache absorbs the traffic so the DB doesn't go down, and the service can scale horizontally.
- To scale, I added a load balancer to avoid traffic spikes on one server.
- They stopped me: "Don't go too deep, we don't know why not start with the frontend and how it will look." (In my mind it's just a URL shortener.)
- I described the frontend pages:
/is a landing page about the site/shorteneris where users submit a URL/contact-uscovers contact info, legal and the privacy policy
- For the shorten flow, I kept it basic: the request goes to the service, which validates the URL first, then writes to the DB and saves to the cache.
- For the redirect flow, when someone clicks a short URL we check Redis, fall back to the DB on a miss, populate the cache, and return the URL to redirect to.
- They then asked how the redirect works and how the browser handles it. I said a PHP header or a JS relocation would do it, which was a simple script. They liked that answer. They kept asking "how does the browser do it?" and I really didn't understand what they wanted. I wasn't sure if they wanted me to explain it at a lower level (the HTTP redirect mechanism).
- I asked whether, when a user clicks a tiny URL, they want a loading page ("Redirecting to X…", 2–3 seconds, with a link below) or an immediate redirect. They asked what I preferred. I said the loading page, since that's common and acts as free promotion for the service.
- I also asked whether every user gets free access or whether there's a subscription model (e.g. 5 free per month). I know I probably shouldn't have asked, but I wasn't sure. They said to keep it simple.
The "explain to a junior developer" part
They then said: "Okay, now explain it to a junior developer." I went through everything again in more detail:
- Full JSON responses and HTTP status codes for all APIs
- URL validation
- DB schema, indexes and constraints
- Caching, including how to avoid cache stampede
- Hash + salt for generating short codes (I was nervous and forgot to mention base64)
- Why the shorten endpoint is a POST
- My approach was almost the same as the ByteByteGo write-up: https://bytebytego.com/courses/system-design-interview/design-a-url-shortener
They kept asking "how does the browser redirect?" and I got more nervous. I just said a PHP header redirect. When they asked which status code, I dont remembered 302 and blanked on the other redirect codes. I explained everything else.
How it ended
They asked how I felt about my design. I said it was solid and scalable. They said they'd stop here and not go further, and then gave this feedback:
- "It's really a bad design, we didn't conclude anything. We not able to design anything i onclude you not able to implement this thing we not conculded on design in 45 min"
- "Your focus should be on system design, not backend or frontend."
- "You should show the frontend: how it looks and what happens when you click the button."
- "We could have discussed URL validation more: regex, blacklists, hashing."
- "You're not a junior, you're mid-level. How would you explain this to a senior, your manager, or someone more senior?"
- "Before people come in, we expect this in 15 minutes. You took 45."
My opinion that half the people who come here don't even know about cache stampede, or have never talked about it. I also said I'd covered the schema and edge cases and asked what else they needed. Like brother do i really need to explain after button click frontend to post request to backend even like this its technical interview not a product manager or like basics. I give whole sclable you dont ask really any technical question 302 its mine but its really dont thing u reject or can ask properly like its just google up thing.
They then asked how far I'd traveled. I said I live nearby. They replied that I'd get home early and you want something to drink (water)before u go. I said no. That was the end of it. There was no lunch with the team and no implementation round, even though that was the plan.
it feel like they want design test how backend interact frontend how fronetend look but idk this what really expecting its more feel like he just want to reject me neither he drive interview properly
Why I feel bad about it
- The prompt was just "design a URL shortener." If they wanted a frontend-heavy walkthrough, the expectation was never stated.
- I'd say the frontend of a URL shortener is one input and one button what i suppose to show design here. For a blog, product listing or e-commerce site there'd be much more to design, but here it seemed trivial. I'm not sure what "explain what happens when you click the button" means beyond the basics.
- I assumed system design interviews work like this: clarify, high-level design, deep dive. I drove the interview that way.
- They didn't want to go deep on cache, DB and scalability, but they also didn't say what they did want. They gave me no direction and didn't seem to listen to my opinions.
- Skipping lunch is fine with me, but I felt they could have at least ask or said "we'll discuss and let you know." Instead it felt very abrupt.
- I'm not sure whether explaining URL validation in depth like button click or like they lireally said we dont know what is backend service or what is this service this explain like this like should i explain you what is computer? is even expected at mid-level, since I'd assume they know that much.
- I'm new to full-time work in Germany and don't know if interviews here are normally like this.
Questions for the community
- Is it normal to expect a frontend walkthrough in a "design a URL shortener" system design round?
- How should I handle vague prompts like this? Should I ask more clarifying questions up front, or confirm the expected structure?
- Is this style of interview common in Germany?
- Any honest feedback on what I did wrong?

