Concurrent Bounded FIFO Queue with Timeouts and Shutdown

Medium · Software Engineering Fundamentals · Backend Engineer · Onsite

Problem Statement

Build a thread-safe, fixed-capacity FIFO blocking queue supporting concurrent producer and consumer threads, optional wait timeouts, and graceful shutdown.

Implement two exception types—QueueClosedError and QueueTimeoutError—along with BoundedBlockingQueue:

  • __init__(capacity: int): Creates an empty queue able to buffer at most capacity elements at once. Raise ValueError whenever capacity <= 0.
  • put(item: Any, timeout: Optional[float] = None) -> None: Appends item to the back of the queue (None and other falsy objects are valid elements). While the queue is open and at full capacity, the caller blocks until a slot opens up, timeout seconds elapse, or close() runs (timeout=None waits with no time limit). Raise QueueClosedError if the queue is already closed or closes before item can be inserted (even if free space exists). Raise QueueTimeoutError if the deadline expires while the queue is still open and full.
  • take(timeout: Optional[float] = None) -> Any: Removes and returns the oldest queued element from the front. While the queue is open and empty, the caller blocks until an item is enqueued, timeout seconds elapse, or close() runs (timeout=None waits with no time limit). After close(), any items still buffered in the queue continue to be delivered in FIFO order; once the queue is both closed and empty, waiting and future take calls raise QueueClosedError. Raise QueueTimeoutError if the deadline expires while the queue remains open and empty.
  • close() -> None: Marks the queue closed and wakes every thread currently waiting in put or take. Invoking close() additional times is a harmless no-op.
from typing import Any, Optional

class QueueClosedError(Exception):
    pass

class QueueTimeoutError(Exception):
    pass

class BoundedBlockingQueue:
    def __init__(self, capacity: int): ...
    def put(self, item: Any, timeout: Optional[float] = None) -> None: ...
    def take(self, timeout: Optional[float] = None) -> Any: ...
    def close(self) -> None: ...

Examples

Example 1

  • Scenario: capacity = 3 with non-blocking timeout and post-close draining
q = BoundedBlockingQueue(capacity=3)
q.put("job-10")
q.put("job-20")
q.put("job-30")

q.put("job-40", timeout=0)  # Raises QueueTimeoutError immediately (buffer full)
q.take()                    # -> "job-10"
q.put("job-50")             # Buffer now holds ["job-20", "job-30", "job-50"]

q.close()
q.put("job-60")             # Raises QueueClosedError
q.take()                    # -> "job-20"
q.take()                    # -> "job-30"
q.take()                    # -> "job-50"
q.take()                    # Raises QueueClosedError (closed and drained)
  • Walk-through: Once three items fill the queue, a zero-timeout put fails right away with QueueTimeoutError. Popping "job-10" frees one slot for "job-50". After close(), new put attempts fail immediately, whereas take drains "job-20", "job-30", and "job-50" in FIFO order before raising QueueClosedError.

Example 2

  • Scenario: capacity = 1 with None items, blocking handoff, and closing on a blocked producer
q = BoundedBlockingQueue(capacity=1)
q.put(None)                 # None is stored as a normal value
# Producer P1 calls q.put(42) -> blocks because capacity 1 is occupied
q.take()                    # -> None; wakes P1 so 42 enters the buffer
# Producer P2 calls q.put(99) -> blocks because [42] fills the queue
q.close()                   # Wakes P2, which raises QueueClosedError
q.take()                    # -> 42
q.take(timeout=0)           # Raises QueueClosedError
  • Walk-through: Signaling failures with exceptions allows None to pass through the queue safely. Closing while P2 is waiting unblocks P2 with QueueClosedError while preserving buffered 42 for the next consumer.

Constraints

  • 1 <= capacity <= 10^5 (values <= 0 raise ValueError).
  • Arbitrary numbers of producer and consumer threads may call put, take, and close concurrently.
  • timeout == 0 performs one immediate check without sleeping; negative timeout values must either behave like timeout = 0 or raise ValueError.
  • Guard against spurious OS wakeups and stolen slots/items so queue bounds (0 <= len <= capacity), waiter cleanup, and wakeup delivery never break.

Step-by-step walkthrough

  1. Understand the queue contract

    Picture a pass-through counter between kitchen cooks (producers) and servers (consumers) that holds at most capacity plates in strict FIFO (First-In, First-Out) order: new plates go on the back, and the oldest plate comes off the front.

    Every put or take call finishes in one of three ways:

    Operation   Succeeds when...                         Raises QueueClosedError when...    Raises QueueTimeoutError when...
    ---------   --------------------------------------   --------------------------------   --------------------------------
    put(item)   queue is open AND has a free slot        queue is closed (even with space)  still full & open at deadline
    take()      queue has >= 1 item (open OR closed)     queue is closed AND empty          still empty & open at deadline
    

    Notice the deliberate asymmetry when close() is called: - Producers stop immediately: blocked and future put calls fail with QueueClosedError, even if free slots remain. - Consumers drain remaining items first: take keeps returning buffered items in FIFO order until the queue becomes empty, and only then raises QueueClosedError. - Zero or negative timeouts never sleep: timeout=0 (and clamped negative values) checks the queue once under the lock and either finishes right away or raises an exception.

  2. Why one lock plus two condition variables

    A mutex lock (threading.Lock) ensures only one thread reads or modifies the queue at a time. By itself, however, a lock cannot make a thread wait cleanly for space or an item: a thread that sees a full queue would have to release the lock, sleep for an arbitrary guess like 10 ms, and try again, wasting CPU or adding artificial delay.

    A condition variable (threading.Condition) solves this by pairing a waiting list with the lock. Calling cond.wait() releases the lock and puts the thread to sleep in one indivisible step so a wakeup signal can never slip into the gap between unlocking and sleeping. Before wait() returns, it automatically re-acquires the lock.

    We attach two condition variables to the same lock: - _not_full: producers sleep here while len(_items) == _capacity, and each take() wakes one of them. - _not_empty: consumers sleep here while len(_items) == 0, and each put() wakes one of them.

    Why two instead of one shared condition variable? With a single condition variable on a capacity = 1 queue, a take() calling notify() might wake a second sleeping consumer instead of a sleeping producer:

    Single condition bug (capacity = 1, queue = []):
      Consumer C1 calls take() -> sleeps on cond
      Consumer C2 calls take() -> sleeps on cond
      Producer P1 calls put(1) -> queue = [1], wakes C1
      Producer P2 calls put(2) -> queue is full, sleeps on cond
      C1 wakes, pops 1         -> queue = [], calls cond.notify()
                                  wakes C2 instead of P2!
      C2 sees queue = []       -> goes back to sleep; P2 never wakes -> DEADLOCK
    

    Keeping separate _not_full and _not_empty wait lists guarantees notify() always wakes a thread on the opposite side. We also store items in collections.deque so appending to the right and popping from the left are both O(1), whereas list.pop(0) shifts every remaining element in O(n).

    def __init__(self, capacity: int):
        if capacity <= 0:
            raise ValueError("capacity must be at least 1")
        self._capacity = capacity
        # _items: FIFO deque of queued values, e.g. deque([1, 2]) where 1 is oldest.
        self._items = deque()
        # _closed: True once close() is called; blocks all puts and empty takes.
        self._closed = False
        # One mutex guards _items and _closed; both condition variables share it
        # so sleeping on either condition releases the exact same lock.
        self._lock = threading.Lock()
        # Producers wait here while len(_items) == _capacity.
        self._not_full = threading.Condition(self._lock)
        # Consumers wait here while len(_items) == 0.
        self._not_empty = threading.Condition(self._lock)
    
  3. Why every wait belongs inside a while loop

    When a sleeping thread returns from wait(), it must re-check the queue state in a while loop rather than trusting an if statement, for three independent reasons:

    1. Stolen wakeups: notify() moves a sleeping thread from the wait list to the runnable state, but that thread still has to re-acquire _lock. A brand-new thread can grab _lock first and take the freed slot (or the new item). When the woken thread finally gets _lock, the queue is full (or empty) again.
    2. Spurious wakeups: operating-system condition variables are allowed to wake a waiting thread occasionally even when nobody called notify().
    3. Closure wakeups: close() wakes waiting threads not because space or items appeared, but so they can observe self._closed == True and exit.

    Inside the loop, we always check the queue state before checking whether the timeout expired:

    with self._lock:
        while cannot proceed yet:
            1. Check closed condition -> raise QueueClosedError if disallowed
            2. Compute remaining time -> raise QueueTimeoutError if <= 0
            3. Sleep on condition.wait(remaining)
        Perform deque update and notify opposite condition
    

    Checking the queue state before the deadline avoids a subtle lost-wakeup bug: if a thread's wait(remaining) times out at almost the exact microsecond another thread calls notify() for it, the woken thread still re-checks the queue first, sees the item (or slot), and completes the call instead of throwing away the notification.

  4. Track timeouts with a monotonic deadline

    Because stolen or spurious wakeups can make a thread loop and call wait() more than once, we must not pass the original timeout to every wait(). If timeout = 1.0 second and a thread wakes up after 0.4 seconds only to find its slot was stolen, its next wait should be at most 0.6 seconds, not a fresh 1.0 second.

    To do this cleanly, convert timeout once at the start of the call into an absolute deadline on time.monotonic() — a clock that moves steadily forward and never jumps backward or forward if the machine adjusts its system wall clock.

    def _compute_deadline(self, timeout: Optional[float]) -> Optional[float]:
        if timeout is None:
            return None
        # Clamp negative timeouts to 0.0 so they perform one non-blocking check,
        # and use time.monotonic() so wall-clock adjustments cannot skew waits.
        return time.monotonic() + max(timeout, 0.0)
    
    def _seconds_left(self, deadline: Optional[float]) -> Optional[float]:
        if deadline is None:
            return None
        return deadline - time.monotonic()
    

    Computing deadline before with self._lock: also means any time spent waiting just to acquire the lock is properly counted against the caller's timeout.

  5. Implement put and take

    put and take follow the same loop pattern, with one crucial difference in how they treat self._closed: - In put, we check if self._closed: first, before checking len(self._items) < self._capacity, because a closed queue must reject new items even when slots are empty. - In take, the loop condition itself is while len(self._items) == 0:, so if buffered items remain after close(), take skips the loop body altogether, pops the oldest item, and returns it. Only when the queue is both empty and closed does take raise QueueClosedError.

    def put(self, item: Any, timeout: Optional[float] = None) -> None:
        # Start the timeout clock before acquiring _lock so lock contention counts too.
        deadline = self._compute_deadline(timeout)
        with self._lock:
            while True:
                # Check _closed first: a closed queue rejects new items even with free space.
                if self._closed:
                    raise QueueClosedError("put on a closed queue")
                # Check free space before deadline: if a take() called notify() right as our
                # timer expired, using the slot avoids wasting that wakeup and starving peers.
                if len(self._items) < self._capacity:
                    break
                remaining = self._seconds_left(deadline)
                if remaining is not None and remaining <= 0.0:
                    raise QueueTimeoutError("queue still full after timeout")
                # Atomically release _lock, sleep up to `remaining` seconds, then re-acquire _lock.
                self._not_full.wait(remaining)
    
            self._items.append(item)
            # Adding one item can satisfy at most one sleeping consumer.
            self._not_empty.notify()
    
    def take(self, timeout: Optional[float] = None) -> Any:
        deadline = self._compute_deadline(timeout)
        with self._lock:
            # Loop only while empty so buffered items are still drained after close().
            while len(self._items) == 0:
                if self._closed:
                    raise QueueClosedError("take on a closed, empty queue")
                remaining = self._seconds_left(deadline)
                if remaining is not None and remaining <= 0.0:
                    raise QueueTimeoutError("queue still empty after timeout")
                self._not_empty.wait(remaining)
    
            item = self._items.popleft()
            # Freeing one slot can unblock at most one sleeping producer.
            self._not_full.notify()
            return item
    

    Notice that with self._lock: guarantees _lock is always released even when QueueClosedError or QueueTimeoutError is raised, and signaling errors via exceptions allows None itself to be stored as a valid item.

  6. Implement close

    Closing the queue sets self._closed = True under the lock and wakes every waiting thread on both condition variables with notify_all(). Plain notify() would wake at most one producer and one consumer, leaving any other blocked threads stuck forever.

    def close(self) -> None:
        with self._lock:
            self._closed = True
            # Wake every sleeping producer and consumer so none stay stuck waiting forever.
            self._not_full.notify_all()
            self._not_empty.notify_all()
    

    Calling close() a second time simply sets _closed = True again and sends harmless notifications, making it idempotent (safe to call multiple times with the same effect as calling it once).

  7. Trace Example 1 and a stolen wakeup

    First, trace Example 1 (capacity = 3):

    Call                        _items after                         _closed   Result
    -------------------------   ----------------------------------   -------   -----------------------------------------
    put("job-10")               ["job-10"]                           False     appends "job-10", notifies _not_empty
    put("job-20")               ["job-10", "job-20"]                 False     appends "job-20"
    put("job-30")               ["job-10", "job-20", "job-30"]       False     appends "job-30" (now at capacity 3)
    put("job-40", timeout=0)    ["job-10", "job-20", "job-30"]       False     full & remaining <= 0 -> QueueTimeoutError
    take()                      ["job-20", "job-30"]                 False     pops "job-10", notifies _not_full
    put("job-50")               ["job-20", "job-30", "job-50"]       False     appends "job-50"
    close()                     ["job-20", "job-30", "job-50"]       True      wakes all waiters on both conditions
    put("job-60")               ["job-20", "job-30", "job-50"]       True      sees _closed == True -> QueueClosedError
    take() x 3                  []                                   True      drains "job-20", "job-30", "job-50"
    take()                      []                                   True      empty AND _closed -> QueueClosedError
    

    Next, see how the while loop protects capacity during a stolen wakeup on capacity = 1, starting with _items = ["a"]:

    Step   Thread P (blocked producer)              Thread M (other thread)        _items
    ----   --------------------------------------   ----------------------------   ------
    1      put("b"): full -> sleeps on _not_full                                   ["a"]
    2                                               take() -> pops "a",            []
                                                    notifies _not_full (P wakes)
    3      waiting to re-acquire _lock...           put("c") grabs _lock first!    ["c"]
    4      acquires _lock; while-loop re-checks:                                   ["c"]
           len(_items) == 1 (still full!) -> sleeps again
    5                                               take() -> pops "c",            []
                                                    notifies _not_full (P wakes)
    6      acquires _lock; len(_items) < 1 ->       -                              ["b"]
           appends "b" and returns cleanly
    
  8. Complete solution

    from typing import Any, Optional
    from collections import deque
    import threading
    import time
    
    
    class QueueClosedError(Exception):
        """Raised by put on a closed queue, and by take on a closed queue that is empty."""
    
    
    class QueueTimeoutError(Exception):
        """Raised when put or take could not finish before its timeout."""
    
    
    class BoundedBlockingQueue:
        """FIFO queue with a fixed capacity, safe for many producer and consumer threads.
    
        Timeouts are in seconds. None blocks until the call can finish or the queue is
        closed; 0 or a negative number never blocks (one immediate check).
        """
    
        def __init__(self, capacity: int):
            if capacity <= 0:
                raise ValueError("capacity must be at least 1")
            self._capacity = capacity
            # _items: FIFO deque of queued values, e.g. deque([1, 2]) where 1 is oldest.
            self._items = deque()
            # _closed: True once close() is called; blocks all puts and empty takes.
            self._closed = False
            # One mutex guards _items and _closed; both condition variables share it
            # so sleeping on either condition releases the exact same lock.
            self._lock = threading.Lock()
            # Producers wait here while len(_items) == _capacity.
            self._not_full = threading.Condition(self._lock)
            # Consumers wait here while len(_items) == 0.
            self._not_empty = threading.Condition(self._lock)
    
        def _compute_deadline(self, timeout: Optional[float]) -> Optional[float]:
            if timeout is None:
                return None
            # Clamp negative timeouts to 0.0 so they perform one non-blocking check,
            # and use time.monotonic() so wall-clock adjustments cannot skew waits.
            return time.monotonic() + max(timeout, 0.0)
    
        def _seconds_left(self, deadline: Optional[float]) -> Optional[float]:
            if deadline is None:
                return None
            return deadline - time.monotonic()
    
        def put(self, item: Any, timeout: Optional[float] = None) -> None:
            # Start the timeout clock before acquiring _lock so lock contention counts too.
            deadline = self._compute_deadline(timeout)
            with self._lock:
                while True:
                    # Check _closed first: a closed queue rejects new items even with free space.
                    if self._closed:
                        raise QueueClosedError("put on a closed queue")
                    # Check free space before deadline: if a take() called notify() right as our
                    # timer expired, using the slot avoids wasting that wakeup and starving peers.
                    if len(self._items) < self._capacity:
                        break
                    remaining = self._seconds_left(deadline)
                    if remaining is not None and remaining <= 0.0:
                        raise QueueTimeoutError("queue still full after timeout")
                    # Atomically release _lock, sleep up to `remaining` seconds, then re-acquire _lock.
                    self._not_full.wait(remaining)
    
                self._items.append(item)
                # Adding one item can satisfy at most one sleeping consumer.
                self._not_empty.notify()
    
        def take(self, timeout: Optional[float] = None) -> Any:
            deadline = self._compute_deadline(timeout)
            with self._lock:
                # Loop only while empty so buffered items are still drained after close().
                while len(self._items) == 0:
                    if self._closed:
                        raise QueueClosedError("take on a closed, empty queue")
                    remaining = self._seconds_left(deadline)
                    if remaining is not None and remaining <= 0.0:
                        raise QueueTimeoutError("queue still empty after timeout")
                    self._not_empty.wait(remaining)
    
                item = self._items.popleft()
                # Freeing one slot can unblock at most one sleeping producer.
                self._not_full.notify()
                return item
    
        def close(self) -> None:
            with self._lock:
                self._closed = True
                # Wake every sleeping producer and consumer so none stay stuck waiting forever.
                self._not_full.notify_all()
                self._not_empty.notify_all()
    

    ✅ Submit now — all tests should pass.

Intuition & how it works

Think of the queue as a narrow pass-through shelf between kitchen cooks (producers) and servers (consumers) that holds at most capacity plates in FIFO (First-In, First-Out, meaning oldest item comes out first) order. Instead of having cooks and servers constantly rattle the door to check the shelf, we attach two separate doorbells to one shared mutex lock (a mutual-exclusion lock that lets only one thread inspect or change the shelf at a time): a "space available" condition variable (a synchronization primitive that atomically releases the lock while putting a thread to sleep and re-acquires the lock before waking it) for cooks, and an "item ready" condition variable for servers.

Naive designs fail in subtle ways under concurrency. Polling with time.sleep() inside a loop wastes CPU and adds arbitrary latency; using a single shared condition variable with notify() allows a take() call to wake another sleeping consumer instead of a sleeping producer, causing a permanent deadlock; and checking the queue with if instead of while breaks as soon as a newly arrived thread steals the freed slot before the woken thread re-acquires the lock.

Walk through Example 1 on a queue with capacity = 3: 1. put("job-10"), put("job-20"), and put("job-30") fill _items to deque(["job-10", "job-20", "job-30"]); calling put("job-40", timeout=0) sees len(_items) == 3 with zero remaining budget and immediately raises QueueTimeoutError. 2. take() pops "job-10" from the left and calls _not_full.notify(), freeing space so put("job-50") yields deque(["job-20", "job-30", "job-50"]). 3. close() sets _closed = True and calls notify_all() on both condition variables: put("job-60") immediately raises QueueClosedError, while take() drains "job-20", "job-30", and "job-50" first and raises QueueClosedError on the fourth call once _items is empty.

Complexity

  • Time: A put or take that does not block performs O(1) work while holding _lock — one deque.append or deque.popleft, plus one notify() that wakes the oldest waiter at the front of the condition variable's wait queue. If a call times out, Condition.wait scans its internal waiter list of W currently sleeping threads to remove its own entry, taking O(W) time, and close() also takes O(W) time because notify_all() wakes every waiting thread.
  • Space: O(capacity + W), because _items never stores more than capacity elements at once, and each of the W currently blocked threads holds one lightweight waiter lock inside Condition.wait that is removed in a finally block as soon as the thread wakes or times out.

Edge cases

  • capacity <= 0: rejected immediately in __init__ with ValueError before any lock or thread state is created.
  • capacity == 1: every put after the first must hand off to a take; this tightest case immediately exposes lost-wakeup bugs from using a single condition variable.
  • timeout = 0 or negative timeout: clamped to a deadline of time.monotonic() + 0.0 using a monotonic clock (a clock that ticks steadily forward and never jumps if the system wall clock is adjusted), so the method checks the queue once under _lock and never sleeps.
  • close() on a non-empty queue: put fails immediately even if capacity remains, whereas take continues popping buffered items until len(_items) == 0 and only then raises QueueClosedError.
  • Closed and empty queue with timeout = 0: raises QueueClosedError rather than QueueTimeoutError, because self._closed is checked before the deadline.
  • None as a valid element: storing put(None) works cleanly because errors raise exceptions instead of returning None as a sentinel.

Common mistakes

  • Using if instead of while around wait(): after a stolen wakeup (where another thread acquires _lock first and consumes the slot or item) or a spurious wakeup (an OS wakeup with no matching notify()), an if lets put exceed capacity or take raise IndexError on an empty deque.
  • Trusting the False return value of wait(remaining) blindly: in CPython, a thread's wait timer can expire right before another thread calls notify() for that waiter while holding _lock. wait() still returns False, so raising QueueTimeoutError without re-checking _items first wastes that notify() and leaves another thread asleep forever.
  • Passing the original timeout on every loop iteration: each stolen or spurious wakeup restarts the full timeout from scratch instead of waiting only for deadline - time.monotonic().
  • Using time.time() instead of time.monotonic(): wall-clock adjustments (such as automatic network clock syncs) can jump backward or forward, making timeouts hang or expire prematurely.
  • Calling notify() instead of notify_all() inside close(): notify() wakes only a single thread per condition variable, leaving all other blocked producers and consumers hanging forever.

Alternative approaches

  • Two counting semaphores plus a mutex: a counting semaphore is a synchronization counter that blocks acquire() when its count is zero and increments on release(). Initializing an empty_slots semaphore to capacity and a filled_slots semaphore to 0 handles basic blocking cleanly, but supporting close() and timeouts together without leaking permits becomes messy because blocked semaphore acquisitions cannot easily distinguish a normal slot from shutdown.
  • Python's queue.Queue: in production code, standard-library queue.Queue uses the exact same architecture (one mutex shared by not_empty and not_full condition variables, plus shutdown() in Python 3.13+).

Follow-up questions

  • How could you lower lock contention when dozens of producer and consumer threads hammer the queue simultaneously? A two-lock queue (such as Java's LinkedBlockingQueue) separates _lock into a put_lock at the tail and a take_lock at the head of a linked list with a dummy sentinel node (a permanent placeholder node that keeps head and tail pointers from colliding on an empty list), tracking queue size with an atomic integer so one producer and one consumer can work in parallel. For even higher throughput, a bounded ring buffer (a fixed-size circular array) assigns monotonically increasing sequence numbers to each slot and lets threads claim indices via compare-and-swap (an atomic CPU instruction that updates a memory word only if it still equals an expected old value), falling back to OS parking primitives only when the queue is completely full or empty. Note that in standard CPython with the Global Interpreter Lock (GIL) — the interpreter-wide lock allowing only one thread to execute Python bytecodes at a time — splitting Python locks rarely speeds up pure-Python queues; batching (put_many / take_many) helps much more there, while two-lock and lock-free designs shine in C++, Rust, Java, or free-threaded Python.
  • What techniques let you test concurrent queues reproducibly for deadlocks and missed notifications without brittle sleep delays? Coordinate threads at exact checkpoints using threading.Barrier and threading.Event, and run every blocking queue call inside a daemon thread joined with a hard timeout (dumping thread stacks via faulthandler on failure) so any deadlock fails fast instead of hanging CI. Verify global invariants across thousands of operations on capacity = 1 — every item produced is consumed exactly once, items from any single producer arrive in strict FIFO order, and 0 <= len(_items) <= capacity always holds under _lock. To force rare race windows without sleeps, lower Python's thread switch interval via sys.setswitchinterval(1e-6) and inject deliberate notify_all() calls in tests to simulate spurious wakeups.
  • How do you keep internal queue state and waiter wakeups intact if a waiting caller receives an asynchronous interruption? Keep all state mutations strictly after wait() returns inside a single with self._lock: block, never reserving a slot or incrementing counters beforehand. If an asynchronous exception like KeyboardInterrupt unwinds Condition.wait(), its finally block re-acquires _lock, removes the waiter from the condition's wait list, and with self._lock: releases the mutex cleanly. The one edge case to guard against is when a notify() was already delivered to the interrupted waiter; catching BaseException around wait() and forwarding cond.notify() before re-raising ensures another waiting thread receives that wakeup, while true end-to-end delivery guarantees across caller crashes require explicit consumer acknowledgments (lease + ack).

Follow-up questions

Similar questions

More Latitudeai interview questions

All 1 Latitudeai questions →