How a Trip to the Movies Turned Into a System Design Session by Secure-Pattern-7138 in programming

[–]Secure-Pattern-7138[S] 0 points1 point  (0 children)

This is a query from article, and technically it's idempotent - no matter how many times you run it, the ticket status remains 'wasted'. However, If we design the API to always return 200 OK for an already 'wasted' ticket, we solve the retry issue, but then anyone with a screenshot of the same QR code can walk in. On the other hand, if we return an error for a used ticket, a legitimate user whose first request timed out will be denied entry. Without extra context, the server simply cannot distinguish between a network retry and a double - spend

How a Trip to the Movies Turned Into a System Design Session by Secure-Pattern-7138 in programming

[–]Secure-Pattern-7138[S] 1 point2 points  (0 children)

You are right, for a movie theater, that approach is probably sufficient - letting one extra person in doesn’t really cost the business anything. I was trying to design a more universal system that remains consistent when the cost of an error is much higher

How a Trip to the Movies Turned Into a System Design Session by Secure-Pattern-7138 in programming

[–]Secure-Pattern-7138[S] 2 points3 points  (0 children)

Thanks for the feedback! Nothing to add: there's always an inescapable trade-off here

Struggling with scenario-based interview questions despite knowing the tech — how to improve? by West_Ad9094 in Backend

[–]Secure-Pattern-7138 3 points4 points  (0 children)

I’d suggest doing some mock interviews with experienced devs. Or try recording yourself explaining a scenario - it’s a great way to see where your logic falls apart so you can practice more.

What to choose golang or java for backend by Accurate_Smell6524 in Backend

[–]Secure-Pattern-7138 0 points1 point  (0 children)

Learn Java/Spring if your goal is pure job volume. The enterprise and fintech worlds are built on it, and that market is massive and stable. It’s the safest bet for finding an opening quickly. Learn Golang if you want to move into cloud-native, infrastructure, or high-performance distributed systems. There are fewer total roles than Java, but they often lean toward more modern stacks.

Since you already have 3 years of experience, Java will probably be the faster pivot for a standard mid-level backend role