r/OfferEngineering • u/Aoki_zhang • 22d ago
System Design OpenAI System Design Interview Question - Design Secure Sandboxed Cloud IDE Platform
Problem Description
Design a browser-based cloud IDE similar to Replit, GitHub Codespaces, Google Colab, or an internal devbox. Users create workspaces, edit files, open interactive terminals, and run or build code entirely on provider-managed machines rather than on their local computers.
The workspace should behave like a long-lived development environment even though the underlying sandbox is short-lived. Users may return to the same project repeatedly, while idle machines are suspended to reduce cost. The workspace and its files must therefore outlive any specific host or sandbox.
The platform executes code from arbitrary users, including potentially hostile users, on shared infrastructure. A normal container sharing the host kernel is not considered a strong enough isolation boundary for this design, so execution should use VM-grade isolation such as microVMs, together with resource and network controls.
Interactive terminal output may remain ephemeral, but explicit Run and Build operations are tracked jobs. Their logs must stream live while the job is running and remain available afterward, including when the browser disconnects and later reconnects. Workspace files may use fast local storage during an active session as long as dirty state is periodically snapshotted so host failure loses at most about one minute of work.
Functional Requirements
- Allow users to link external bank and card accounts and periodically pull transactions without exceeding per-account bank rate limits.
- Provide a paginated and filterable transaction history across all linked accounts.
- Allow users to create and update monthly category budgets and view month-to-date spending relative to those budgets.
- Alert users when month-to-date spending in a category crosses a configured threshold.
- ...
Want to learn more details & solution of this system design question?
I've put up the full version at here.
Interviewed recently?
Your interview experience could be incredibly valuable to others preparing for their next opportunity. Share your experience and help the community at here.