Coders In Hoods
  • Courses
  • Roles
  • Blog
  • Setup

Coders In Hoods AI Academy

Every course is free. Sign in to start, and your progress, quiz scores and bookmarks follow you.

AI Academy

  • Courses
  • Paths
  • Setup guides
  • How we teach

Role roadmaps

  • AI Engineer
  • Forward Deployed Engineer
  • Machine Learning Engineer
  • All roles

Coders In Hoods

  • The agency
  • Coaching for teams
  • Blog
  • LinkedIn
  • X (Twitter)

Contact

codersinhoods@gmail.com

© Coders In Hoods · since 2019

Course overview

Infrastructure for Agents

Free · sign in to start and track progress

1 · Compute and execution

  • 1Where agents run

    Exercise answers

    • Answer: Build a fleet compute and token cost model
    • Answer: Measure active CPU against wall time
  • 2Sandboxes for agent code
  • 3Durable execution engines
  • 4Queues, schedules and background jobs

2 · State, access and delivery

  • 5State, sessions and checkpoints
  • 6Secrets, identity and tenant isolation
  • 7AI gateways
  • 8Environments and delivery for agents
CapstoneA production platform slice for one agentReference implementation

Module 1 · Compute and execution · Lesson 1

Where agents run

Agents spend most of their life waiting on models and people. How that shapes the choice between Fluid functions, containers, Modal, Claude Managed Agents and eve on Vercel, with real rates and a costed fleet.

70 min 2 videos 3 exercises 7-question quiz Answers
Setup for the exercises:Install Claude CodePython with uvDeploy to Vercel

By the end of this lesson you can

  • Profile an agent workload by wall time, active CPU, duration, state and burstiness
  • Compare Fluid compute, containers, Modal, Claude Managed Agents and eve on Vercel on those dimensions
  • Compute the compute cost of an agent run under Active CPU, per-second container and session-hour pricing, and compare it with token cost
  • Split an agent into a turn handler, an execution environment and a durable waiting layer, and place each part

On this page

  • Intuition: agents mostly wait
  • Profiling an agent workload
  • The five places an agent can run
  • 1. Request-scoped functions on Fluid compute
  • 2. Containers
  • 3. Modal
  • 4. Claude Managed Agents
  • 5. eve on Vercel
  • Worked example: what does one run cost?
  • Code: write the turn handler for concurrency
  • Split the agent into three parts
  • Misconceptions and limits
  • Connections
  • Summary
  • Sources & further reading
  • Quiz

In this lesson

  1. 01Intuition: agents mostly wait
  2. 02Profiling an agent workload
  3. 03The five places an agent can run
  4. 04Worked example: what does one run cost?
  5. 05Code: write the turn handler for concurrency
  6. 06Split the agent into three parts
  7. 07Misconceptions and limits
  8. 08Connections
  9. 09Summary

Sources & further reading

  • Cloud Programming Simplified: A Berkeley View on Serverless ComputingPaper · Jonas, Schleier-Smith, Sreekanti, Tsai, Khandelwal et al. · UC Berkeley · 2019The reference definition of serverless and its limits. Read sections 3 and 4 on what made first-generation functions a poor fit for stateful, long-running work; most of those limits are exactly what Fluid compute and durable workflows now address.
  • Serverless Computing: One Step Forward, Two Steps BackPaper · Hellerstein, Faleiro, Gonzalez, Schleier-Smith, Sreekanti et al. · UC Berkeley · 2018The sharpest critique of function-as-a-service (CIDR 2019). Its complaints about short lifetimes, no addressable state and slow I/O are a checklist to run against any platform you pick for agents.
  • Hosting the Agent SDKLab research · AnthropicThe subprocess model, four session patterns (ephemeral, long-running, hybrid, multi-agent container), a starting size of 1 GiB RAM, 5 GiB disk and 1 CPU per agent, and the observation that token cost usually dominates container cost.
  • Claude Managed Agents overviewLab research · AnthropicAgents, environments, sessions and events; cloud or self-hosted sandboxes; beta status; and the data-handling note that sessions are stateful and not eligible for zero data retention.
  • Fluid computeDocs · VercelIn-function concurrency for Node.js and Python, default and maximum durations per plan, and why one instance can serve many I/O-bound requests. Pair it with the pricing page for Active CPU and provisioned memory rates.
  • Fluid compute pricingDocs · VercelThe regional Active CPU and provisioned memory rates used in this lesson's worked example, and the rule that CPU billing pauses during I/O while memory billing continues.
Free · sign in to start

Sign in to keep reading.

Free, no card. We use your account to save progress, quiz scores, bookmarks and occasionally send updates from our team.

  • 9 more sections
  • 3 hands-on exercises
  • A 7-question quiz
  • Progress, quiz scores and bookmarks