Back to problems

API Design for Long Running Requests

Object-Oriented Programming · Dropbox · Medium

Problem Design an API that processes a batch of files. The system must support both immediate synchronous processing and long-running asynchronous jobs. Part 1: Synchronous Processing Implement a function that takes a list of file names (strings) and processes each one. The processing is simulated: for every file, append processed to its name and return the resulting list. Part 2: Asynchronous Processing For long-running requests, design a method that handles file processing…

Checking your access…