Facebook Interview Question for Software Engineer / Developers

Country: United States
Interview Type: In-Person

Comment hidden because of low score. Click to expand.
of 0 vote

- Earlier users had to buy credits per application but now with virtual currency, user can use the same credit in any Facebook affiliated application.
- Single user's credit balance is more of a user specific information now as compared to user's account info for a specific application. Therefore it can be combined with existing user info.
- Our aim is to atomically and securely purchase and spend virtual currency thereby updating user's current balance.
- @fb user info is cached with memcached which provides us with performance in fetching user data, replication for availability, atomic transactions using 2-phase commit, fault tolerance, cache coherency etc.
- For each expenditure we check user balance, if more or equal to be spent balance calculated accordingly and saved.

I'm really not sure, what exactly do they expect here. If they're ok with us leveraging their architecture then we don't have much to say here but if they want us to design everything from scratch then probably we need to explain memcached and DHT here.

- Second Attempt November 19, 2012 | Flag Reply

Add a Comment

Writing Code? Surround your code with {{{ and }}} to preserve whitespace.


is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.

Learn More


CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.

Learn More

Resume Review

Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.

Learn More

Mock Interviews

Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.

Learn More