Bird
0
0

Spotify plans to implement a feature that processes streaming user data in real-time to dynamically adjust song recommendations. Which architectural component should be integrated to support this?

hard📝 Trade-off Q9 of 15
Microservices - Real-World Architecture Case Studies
Spotify plans to implement a feature that processes streaming user data in real-time to dynamically adjust song recommendations. Which architectural component should be integrated to support this?
AA real-time event streaming platform like Apache Kafka
BA traditional relational database for batch processing
CA static cache layer for storing recommendations
DA monolithic service handling all user data synchronously
Step-by-Step Solution
Solution:
  1. Step 1: Identify real-time processing needs

    Real-time user data requires event streaming for low latency and scalability.
  2. Step 2: Evaluate options

    Apache Kafka supports real-time event streaming; relational DBs and static caches are unsuitable for real-time dynamic updates; monolithic services lack scalability.
  3. Final Answer:

    A real-time event streaming platform like Apache Kafka -> Option A
  4. Quick Check:

    Event streaming platforms enable real-time data processing [OK]
Quick Trick: Use event streaming for real-time data [OK]
Common Mistakes:
  • Choosing batch processing databases
  • Relying on static caches for dynamic data
  • Using monolithic services for scalability

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Microservices Quizzes