Design a service for collaboratively creating and reviewing business plans, with versioning, comments, and roles.
Asked at
AI answer
I would divide the system into a web client, an API, an authorization and business-logic service, storage, and background tasks. Documents can be stored as structured blocks in PostgreSQL, while uploaded files can go in object storage. For each version, store the author, timestamp, and changes; protect editing with optimistic locking to avoid overwriting someone else’s edits. Associate comments with a document or a specific passage and version.
Define roles at the organization and document levels—for example, owner, editor, commenter, and reader. Check permissions on the server with every request. Record changes and access-related actions in an audit log. Run the business-plan review asynchronously: the task goes into a queue, a review service analyzes the document, and the results and comments are returned to the interface. Reliability requires backups, monitoring for errors and latency, rate limiting, and recovery tests. Deploy through CI/CD with separate environments and managed secrets.
Also asked at Альфа-Банк
- Which company did you work for and what projects did you handle?
- Tell us about your experience deploying and operating Kubernetes clusters.
- Tell us about your professional experience: what have you done and how have you grown professionally?
- Do you have any questions for the company or about the process?
- What programming languages are you familiar with and do you use them for scripting?
Similar questions
- Design a service for sharing and collaborating on architectural diagrams, with versioning and comments.
- Design a service for collaboratively creating and reviewing legal documents, with versioning, roles, and legally binding signatures.
- Design a service for collaboratively planning trips, with bookings and changes.
- Design a service for collaboratively creating and reviewing tests with a question bank, adaptive difficulty, and leak protection.
- Design a service for collaboratively planning family events, with guests, a budget, and changes.