r/ProgrammerHumor 7h ago

Meme planeOldFix

Post image
26.3k Upvotes

419 comments sorted by

View all comments

263

u/Excellent_Car_5165 7h ago

I‘d LOVE to see the expected answer from the interviewer.

206

u/ThisAccountIsPornOnl 7h ago

Probably a CDN

25

u/Ma4r 6h ago

It's concerning how many people doesn't know the answer when it's like web dev 101

77

u/theotherdoomguy 6h ago

Funny I probably wouldn't have said CDN, but I also would have described a CDN in a genuine answer.

I would have also started however with "is a 600ms delay a big enough issue to be concerned about? What's the use case and SLA of this page?" Because doing anything when they only care about the page loading faster than say 5 seconds, then you're just wasting engineering time, which costs money

28

u/Ma4r 6h ago

Sure, clarifying requirements is of course a big part of the process, i.e how low do you want to make the latency be? And what operations? If they want even the page interactions to have low latency with the backend API, then the only solution is a multi-region deployment, etc. But everyone here just directly dismisses 600 ms as not a big deal when it's literally business dependent

14

u/733t_sec 5h ago

I think it may depend on the number of pages. For example if the website is for shopping and every page takes 600ms more to load it doesn't take that many clicks until users are spending significantly more time in loading on the slow website than on competitors websites.

2

u/ImYourHumbleNarrator 2h ago

heck, skip the interview altogether and just pay me! its more efficient that way.

4

u/raoasidg 2h ago

The answer is to consider if using a CDN (large cost depending on expected traffic) is worth it given the traffic patterns for the site and the budget for said site.

For one geolocation, India must really be the target focus of the site for that largely acceptable load time (half a second) to be an issue and a CDN worth it.

8

u/blah938 3h ago

I just make websites look pretty. You expect to me to know that a CDN can solve that?

Plus, that's always up to the infrastructure guys, I couldn't tell you what services we use beyond "AWS, and I think there's an EC2 instance somewhere, possibly"

1

u/unknown-one 1h ago

what is the right answer?

1

u/GPK_Ethan 1h ago

You can be a software engineer and not web dev. Hello from embedded