Facebook Interview Question for Developer Program Engineers


Country: United States
Interview Type: In-Person




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

NoSQL Solution..esp MongoDB seems to be a good fit here

- snake May 10, 2015 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

MongoDB

- snake May 10, 2015 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Initially, i also thought that we would require a NoSQL solution. But thinking again, we don't have a schemaless usecase here. The database is having two properties of integer and string, which could easily be modelled as a table in a MySQL based database. Secondly aggregation is also pretty straightforward when using a MySQL based solution. So the database can be implemented using MySQL Cluster which can scale according to needs.

We can run an agent in each system, that pushes the logs near real time or periodically to an s3 bucket. We can use s3 upload events to an sqs queue. This queue can be processed by an array of servers, which process the logs and upload to the mysql cluster.

On the other end of the cluster, it is merely reading the data and aggregating it according to requirements.

- deepanprabhu December 02, 2015 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Using Kafka to push data to the storage server, store in HDFS. Using Hive for data pull. Hive also supports aggregation. Remember to use a good partition (App name for the log, time, etc), otherwise Hive query will be slow.

- TonyStark September 22, 2016 | 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