PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep
|Home/System Design/Meta

Design an Online Judge and Live Comments

Last updated: Apr 16, 2026

Quick Overview

This question evaluates skills in designing scalable, secure distributed systems, covering execution sandboxing, multi-language code evaluation, worker scheduling and test-case management for an online judge, alongside low-latency publish/subscribe, fan-out, ordering and moderation strategies for a live-comment feature.

  • medium
  • Meta
  • System Design
  • Software Engineer

Design an Online Judge and Live Comments

Company: Meta

Role: Software Engineer

Category: System Design

Difficulty: medium

Interview Round: Onsite

The onsite included two system design prompts: 1. Design an online judge platform where users submit code for programming problems. The system must support multiple languages, compile and run untrusted code in isolation, evaluate submissions against public and hidden test cases, enforce time and memory limits, and return verdicts such as Accepted, Wrong Answer, Runtime Error, and Time Limit Exceeded. Discuss APIs, storage, worker scheduling, sandboxing, burst handling during contests, and security. 2. Design a live-comment feature for a social media post. Users viewing a popular post should see new comments appear with very low latency. Explain the write path, read path, comment ordering, moderation, and how clients receive updates. Compare long polling, Server-Sent Events, and WebSockets, and discuss how to handle hot posts with very high fan-out.

Quick Answer: This question evaluates skills in designing scalable, secure distributed systems, covering execution sandboxing, multi-language code evaluation, worker scheduling and test-case management for an online judge, alongside low-latency publish/subscribe, fan-out, ordering and moderation strategies for a live-comment feature.

Related Interview Questions

  • Design Top-K, Crawler, and Chess Systems - Meta (hard)
  • Design Search And Web Crawling Systems - Meta (medium)
  • Design an Instagram-Style Social Feed - Meta (medium)
  • Design an Online Game Leaderboard - Meta (hard)
  • Design an On-Demand Delivery Platform - Meta (medium)
Meta logo
Meta
Apr 8, 2026, 12:00 AM
Software Engineer
Onsite
System Design
19
0

The onsite included two system design prompts:

  1. Design an online judge platform where users submit code for programming problems. The system must support multiple languages, compile and run untrusted code in isolation, evaluate submissions against public and hidden test cases, enforce time and memory limits, and return verdicts such as Accepted, Wrong Answer, Runtime Error, and Time Limit Exceeded. Discuss APIs, storage, worker scheduling, sandboxing, burst handling during contests, and security.
  2. Design a live-comment feature for a social media post. Users viewing a popular post should see new comments appear with very low latency. Explain the write path, read path, comment ordering, moderation, and how clients receive updates. Compare long polling, Server-Sent Events, and WebSockets, and discuss how to handle hot posts with very high fan-out.

Solution

Show

Submit Your Answer

Sign in to leave a comment

Loading comments...

Browse More Questions

More System Design•More Meta•More Software Engineer•Meta Software Engineer•Meta System Design•Software Engineer System Design
PracHub

Master your tech interviews with 8,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.