Thread-Safe Buffered Batch Writer for Streaming Records into a Database
Company: Disney
Role: Software Engineer
Category: Software Engineering Fundamentals
Difficulty: medium
Interview Round: Technical Screen
Overview: Concurrency coding question: build a thread-safe component that buffers records arriving from a stream on many threads and writes them to a database through its batch insert API. It tests size- and time-based flushing, keeping the lock out of slow I/O, backpressure, clean shutdown, retries with idempotency, and ordering.
Read the full Disney Software Engineer interview experience this question came from