Design comments and async image generation

Read the full interview experience this question came from →

Quick Overview

This question evaluates full-stack system-design competencies, including CRUD API and data-model design for sortable queries with persisted user preferences, frontend-backend synchronization, and asynchronous long-running job orchestration, status/result APIs, and UI ordering for image generation; it falls under the System Design category and tests a mix of conceptual architectural reasoning and practical application design. It is commonly asked because it probes the ability to balance scalability, consistency, user experience, and fault-tolerant asynchronous processing when designing end-to-end systems that must handle persistence, ordering guarantees, and long-running background work.

Design comments and async image generation

Company: Bobyard

Role: Software Engineer

Category: System Design

Difficulty: medium

Interview Round: Technical Screen

The system design portion combined two prompts: 1. Design a full-stack comment system with frontend, backend, and database support for create, read, update, and delete operations. The system should support sorting comments by `timestamp` or `userId` in ascending or descending order, and the user's sort preference should persist across page refreshes. 2. Design a service that generates images, where image generation can take much longer than a normal HTTP request timeout. Explain how you would accept requests, process long-running jobs asynchronously, expose status and results to users, and preserve a well-defined ordering of generated items in the user interface.

Overview: This question evaluates full-stack system-design competencies, including CRUD API and data-model design for sortable queries with persisted user preferences, frontend-backend synchronization, and asynchronous long-running job orchestration, status/result APIs, and UI ordering for image generation; it falls under the System Design category and tests a mix of conceptual architectural reasoning and practical application design. It is commonly asked because it probes the ability to balance scalability, consistency, user experience, and fault-tolerant asynchronous processing when designing end-to-end systems that must handle persistence, ordering guarantees, and long-running background work.

Read the full Bobyard Software Engineer interview experience this question came from

|Home/System Design/Bobyard
Bobyard logo
Bobyard
Apr 9, 2026
mediumSoftware EngineerTechnical ScreenSystem Design
3
0

The system design portion combined two prompts:

  1. Design a full-stack comment system with frontend, backend, and database support for create, read, update, and delete operations. The system should support sorting comments by timestamp or userId in ascending or descending order, and the user's sort preference should persist across page refreshes.
  2. Design a service that generates images, where image generation can take much longer than a normal HTTP request timeout. Explain how you would accept requests, process long-running jobs asynchronously, expose status and results to users, and preserve a well-defined ordering of generated items in the user interface.

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...