PracHub
QuestionsLearningGuidesInterview Prep
|Home/System Design/Atlassian

Ensure thread-safe updates to org hierarchy

Last updated: Mar 29, 2026

Quick Overview

Ensure thread-safe updates to org hierarchy evaluates requirements, scale assumptions, API/data design, architecture, trade-offs, failure modes, and rollout in a realistic interview setting. A strong answer states assumptions, handles edge cases, explains trade-offs, and shows how to validate the result clearly.

  • hard
  • Atlassian
  • System Design
  • Software Engineer

Ensure thread-safe updates to org hierarchy

Company: Atlassian

Role: Software Engineer

Category: System Design

Difficulty: hard

Interview Round: Technical Screen

For the aforementioned organization hierarchy, design thread-safe add/remove operations for users and groups. Propose an API and concurrency strategy (e.g., reader–writer locks, fine-grained locking, lock ordering to avoid deadlocks, or immutable snapshots with copy-on-write). Explain how to guarantee linearizable or at least read-consistent queries while updates occur, and how to handle long-running reads. Discuss contention hot spots, performance trade-offs, failure recovery, and how to test concurrency correctness (stress tests, race detection).

Quick Answer: Ensure thread-safe updates to org hierarchy evaluates requirements, scale assumptions, API/data design, architecture, trade-offs, failure modes, and rollout in a realistic interview setting. A strong answer states assumptions, handles edge cases, explains trade-offs, and shows how to validate the result clearly.

Related Interview Questions

  • Design a simple greeting-card web app - Atlassian (medium)
  • Design a distributed rate limiter service - Atlassian (medium)
  • Design a Data Stream Processor - Atlassian (easy)
  • Diagnose why a scaled system became slow - Atlassian (medium)
  • Design a scalable chatbot platform - Atlassian (medium)
|Home/System Design/Atlassian

Ensure thread-safe updates to org hierarchy

Atlassian logo
Atlassian
Jul 31, 2025, 12:00 AM
hardSoftware EngineerTechnical ScreenSystem Design
6
0

Ensure thread-safe updates to org hierarchy

Thread-safe Organization Hierarchy: API, Concurrency, and Consistency

Context

You are building an in-memory organization directory that manages groups (hierarchical) and users. Multiple threads will concurrently read and mutate the hierarchy. The workload is read-heavy with periodic updates.

Assume:

  • Groups form a tree (or forest) identified by stable IDs; groups can have child groups.
  • Users have unique IDs and can be members of multiple groups.
  • The service runs in a single process but must be crash-safe via durable storage.

Task

Design thread-safe add/remove operations for users and groups.

  1. Propose a minimal API for:
    • Creating/deleting users and groups
    • Adding/removing a user to/from a group
    • Moving a group under a new parent
    • Querying users, groups, and memberships
  2. Propose a concurrency strategy (e.g., reader–writer locks, fine-grained locking with lock ordering, immutable snapshots with copy-on-write, or MVCC/RCU). Specify:
    • How writes occur atomically
    • How readers are isolated from in-progress writes
    • Deadlock avoidance strategy (if using locks)
  3. Consistency guarantees:
    • How to guarantee linearizable writes (or at least read-consistent snapshots) while updates occur
    • How to serve long-running reads without blocking writers
  4. Discuss:
    • Contention hot spots and performance trade-offs of your approach
    • Failure recovery (durability model, recovery steps)
    • How to test concurrency correctness (stress tests, race detection, linearizability/snapshot checks)

Constraints & Assumptions

  • Preserve the scope, facts, inputs, and requested outputs from the prompt above.
  • If the prompt leaves a detail unspecified, state a reasonable assumption before relying on it.
  • Keep the answer interview-ready: concise enough to present, but concrete enough to implement or evaluate.

Clarifying Questions to Ask Guidance

  • Clarify users, core use cases, read/write patterns, scale, latency, availability, and data retention.
  • State explicit assumptions before making sizing or architecture decisions.
  • Prioritize the functional path first, then address reliability, security, observability, and rollout.

What a Strong Answer Covers Guidance

  • A scoped requirements summary with concrete non-goals and success metrics.
  • API, data model, architecture, consistency, capacity, and operations.
  • Reasoned trade-offs among simple and scalable designs, including bottlenecks and failure modes.
  • A validation, monitoring, migration, and launch plan appropriate for the risk level.

Follow-up Questions Guidance

  • What breaks first at 10x traffic or data volume?
  • How would you degrade gracefully during dependency failures?
  • What metrics and alerts would prove the design is healthy after launch?

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...

Browse More Questions

More System Design•More Atlassian•More Software Engineer•Atlassian Software Engineer•Atlassian System Design•Software Engineer System Design

Your design canvas — auto-saved

PracHub

Master your tech interviews with 9,000+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • AI Coding Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.