Seems basic but I fumbled the tradeoffs a bit.
Start by defining both batch and real-time predictions clearly, then contrast them across key dimensions like latency, throughput, data freshness, and infrastructure. Finally, discuss trade-offs and when to choose each approach, ideally with examples relevant to Meta's scale.
Pro tip: Emphasize that the choice isn't binary—many production systems use a hybrid approach (e.g., batch for precomputation, real-time for dynamic features). Mentioning this shows you understand practical system design beyond textbook definitions.
Explain that batch predictions are generated periodically on large volumes of data, often offline, and stored for later use. They prioritize throughput over latency.
Explain that real-time predictions are generated on-demand with low latency, often using streaming data and online models. They prioritize latency over throughput.
Contrast them on latency, throughput, data freshness, cost, complexity, and use cases. Highlight that batch is suitable for non-urgent, large-scale scoring, while real-time is for interactive or time-sensitive applications.
Acknowledge that real-time systems are more complex and costly but provide fresher predictions. Mention hybrid architectures like lambda or kappa that combine both.
Give examples of where each might be used at Meta, such as batch for daily ad performance predictions and real-time for ranking feed content or detecting spam.
AI-generated suggestions, not part of the candidate's original notes. May be inaccurate — verify before relying on them.