Twitter Interview Question for Software Engineer / Developers






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

Yes, Paxos is used in a distributed system when any sort of decision is to be made. E.g. who is to be made the leader, how many nodes are present in the current view, what should the next sequence number of the request be etc. Here the primary (usually a node with the smallest id in the current view) proposes a value (which can be anything depending upon what sort of consensus is to be reached). If the primary receives an OK response from majority of the nodes in the view, the primary commits this value, else we need to run another instance of Paxos. So the question is, when does Paxos commit/complete? Theoretically we may never reach a consensus, but when designing a system like this, you will eventually get majority of the nodes to agree on some value.

- ZhableBaba January 08, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

A quick question before my interview with Twitter, I have seen some questions from Twitter on CareerCup, and most of them are focused on design. So is Twitter mostly focusing on finding design guys. BTW, I will interview for software engineer for new graduate.

- amyue.xing November 15, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

Paxos requires a leader to make progress so I think using paxos for this is incorrect.

- Anonymous March 07, 2014 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

I only know the Paxos algorithm
There is the link: en.wikipedia.org/wiki/Paxos_(computer_science)
But i do not understand it completely.

- lshmouse April 16, 2011 | Flag Reply


Add a Comment
Name:

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

Books

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

Videos

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