Paths Subjects Questions Quizzes Pricing Search
Advanced Open Pro

Session Strategy for a Multi-User SDK Service on Ephemeral Containers

You're building a Python web service on the Agent SDK: each end user has an ongoing conversation with Claude about their own project, spread across multiple HTTP requests over hours. The service runs on a container platform that can route two requests from the same user to two different containers, and containers are recycled (destroyed and replaced) periodically.

  1. Should this service rely on continue_conversation=True (Python's continue: true equivalent) or on capturing and passing a session ID with resume? Justify against the specific requirement that many users have concurrent, independent conversations.
  2. Explain concretely why this service's container platform makes the default session-persistence behavior unreliable, even though resume is being used correctly.
  3. Give two different documented mitigations, and one advantage each has over the other for this specific service.

Share this question

← Back to Headless Mode, CI Automation & the Agent SDK practice

We use cookies for product analytics to improve OmniAtlas. See our Privacy Policy.