Notícias
Notícias
5 min de leitura
30 de setembro de 2026

Serverless agent tá morrendo. Multi-agent precisa infraestrutura real.

Single-agent serverless: OK. Multi-agent systems: Precisa infraestrutura real (persistent sessions, context sharing). Serverless tá morto.

Equipe OpenClaw

Equipe OpenClaw · Time de Engenharia & Produto

A Equipe OpenClaw é formada por engenheiros, designers e especialistas em IA dedicados a construir a melhor plataforma de agentes conversacionais para negócios brasileiros. Combinamos expertise…


Serverless agent tá morrendo. Multi-agent precisa infraestrutura real.

Você é founder de SaaS.

Seu SaaS tem agent de IA (WhatsApp, atendimento ao cliente, automação de vendas).

Current agent architecture:

Your agent infrastructure today: │ ├─ What you built (Version 1): │ ├─ Architecture: Serverless (Lambda, Cloud Functions, etc) │ ├─ Agent count: 1 (single agent) │ ├─ Use case: Customer support (chat queries) │ ├─ Session length: Minutes to hours (stateless) │ ├─ Context sharing: Not needed (agent works alone) │ ├─ Cost: Super cheap (€0.0001 per execution) │ ├─ Scaling: Automatic (handles traffic spikes) │ └─ Performance: Fast (cold start ≈ 100ms) │ ├─ Why serverless worked: │ ├─ Single agent = stateless = perfect for serverless │ ├─ Each request = independent = no context needed │ ├─ User asks question, agent answers, session ends │ ├─ No need to remember context between sessions │ ├─ No need to coordinate with other agents │ └─ Serverless architecture was perfect fit │ ├─ Your success (and your problem): │ ├─ Single agent is working great │ ├─ Customers love it (faster support, better answers) │ ├─ You're thinking: "What if we add more agents?" │ ├─ Idea: Support agent + Sales agent + Billing agent │ ├─ Idea: Agents collaborate (share context, hand off) │ ├─ Idea: Agents work together on complex tasks │ └─ Reality: This breaks serverless architecture │ └─ The limitation: ├─ Serverless session timeout: 15 minutes (AWS Lambda) ├─ Your multi-agent workflow: 3+ hours (agents collaborating) ├─ Gap: Your workflow is 12x longer than serverless allows ├─ Problem: Agent 1 times out before Agent 2 starts ├─ Problem: Context lost between agent handoffs ├─ Problem: Agents can't collaborate (can't share state) └─ Reality: Multi-agent on serverless = broken

Then AWS announced AgentCore Runtime Instances.

Serverless is now obsolete for agents.

The Problem: Serverless Architecture Breaks Multi-Agent Systems

Single agents work on serverless. Multi-agents don't. Infrastructure requirements just changed.

Why serverless worked for single agents (and why it fails for multi-agent)

SINGLE-AGENT ARCHITECTURE (Serverless = Perfect):

Customer workflow: ├─ Customer: "What's my order status?" ├─ Request arrives: Lambda cold starts (100ms) ├─ Agent loads: Model initialized (500ms) ├─ Agent processes: Query answered (1 second) ├─ Agent responds: "Order ships tomorrow" (200ms) ├─ Request ends: Lambda terminates ├─ Session destroyed: Memory freed ├─ Next request: Fresh start (cold start again) └─ Total time: 2 seconds (acceptable)

Why it works: ├─ Stateless: Each request is independent ├─ Context: Not needed (agent doesn't remember previous questions) ├─ Collaboration: No other agents involved ├─ Duration: Short (seconds) ├─ Cost: Cheap (pay only for execution time) └─ Scaling: Automatic (10 requests = 10 Lambda instances)

Serverless advantages: ├─ Cost: €0.0001 per execution (vs €100/month for server) ├─ Scaling: Automatic (you don't manage capacity) ├─ Maintenance: Zero (no infrastructure to manage) ├─ Simplicity: Deploy code, it works └─ Perfect for: Single agent, stateless, short sessions


MULTI-AGENT ARCHITECTURE (Serverless = Broken):

Customer workflow: ├─ Customer: "I want to return my order AND I have a billing question" ├─ Request arrives: Lambda cold starts (100ms) ├─ Agent 1 (Support): Processes return request (2 seconds) ├─ Agent 1: "I need to check billing, let me hand off to Agent 2" ├─ But: Lambda timeout approaching (4 minutes remaining) ├─ But: Passing context between Lambda instances is hard ├─ But: Agent 2 needs to remember Agent 1's work ├─ But: Serverless doesn't preserve state between executions ├─ Agent 2: Starts (but doesn't have Agent 1's context) ├─ Agent 2: "What was the return request? I don't know..." ├─ Result: Context lost, agents can't collaborate ├─ Result: Workflow fails (customer confused) └─ Problem: Serverless breaks multi-agent collaboration

Why it fails: ├─ Stateless: Each agent execution is isolated ├─ Context: Agent 2 doesn't remember Agent 1's findings ├─ Collaboration: Agents can't share state easily ├─ Duration: Long (3+ hours for complex workflows) ├─ Timeout: Lambda kills workflow after 15 minutes ├─ Cost: Expensive workarounds (databases to share state) └─ Scaling: Hard to coordinate multiple agents

Serverless limitations: ├─ Session timeout: 15 minutes (vs 3+ hours for multi-agent) ├─ State sharing: Difficult (agents isolated) ├─ Context persistence: Poor (state lost between calls) ├─ Collaboration: Hard (no native multi-agent support) ├─ Cost workarounds: Expensive (databases + message queues) └─ Complexity: High (need to build state management yourself)


THE SHIFT IN INFRASTRUCTURE NEEDS:

From: Single-agent serverless ├─ Architecture: Stateless functions ├─ Scaling: Automatic ├─ Sessions: Minutes ├─ Context: Not needed ├─ Collaboration: N/A ├─ Cost: Cheap └─ Complexity: Low

To: Multi-agent persistent infrastructure ├─ Architecture: Long-running processes ├─ Scaling: Managed by you (capacity planning) ├─ Sessions: Hours to days ├─ Context: Persistent (shared across agents) ├─ Collaboration: Native support ├─ Cost: Higher (but necessary) └─ Complexity: High (but worth it)

Real-world example (Customer service workflow): ├─ Day 1: Customer contacts support (agent processes) ├─ Day 2: Customer asks follow-up (agent needs context from Day 1) ├─ Day 3: Sales agent contacts customer (needs support's notes) ├─ Day 4: Billing agent resolves issue (needs context from all agents) ├─ On serverless: Context lost at each handoff (nightmare) ├─ On persistent infrastructure: Context preserved (agents collaborate) └─ Difference: Serverless = broken, persistent = works

Why Multi-Agent Systems Are Becoming Table Stakes

Single agents solve one problem. Multi-agents solve everything. Your SaaS needs to evolve.

How multi-agent systems change the game

SINGLE-AGENT USE CASES (Limited scope):

Support agent: ├─ Can: Answer customer questions ├─ Can: Look up order status ├─ Can: Create support tickets ├─ Can't: Process refunds (needs Sales agent) ├─ Can't: Update billing address (needs Billing agent) ├─ Can't: Coordinate complex workflows (no other agents) └─ Result: Agent solves ONE problem (support)

Limitation: ├─ Customer asks: "I want to return my order" ├─ Support agent: "Sure, I'll create a return ticket" ├─ Customer: "But I also need to update my address for refund" ├─ Support agent: "Sorry, you need to talk to Billing (different team)" ├─ Customer: Frustrated (fragmented experience) └─ Your SaaS: Loses customer (poor experience)


MULTI-AGENT USE CASES (Unlimited scope):

Support agent + Sales agent + Billing agent (coordinated): ├─ Support agent: Handles return request ├─ Support agent: Hands off to Billing agent (context preserved) ├─ Billing agent: Updates refund address ├─ Billing agent: Hands off to Sales agent (context preserved) ├─ Sales agent: Offers discount on next purchase ├─ All agents: Collaborate on single customer workflow └─ Result: Agent system solves EVERYTHING (end-to-end)

Advantage: ├─ Customer asks: "I want to return my order" ├─ Multi-agent system: "We'll handle everything" ├─ Support agent: Processes return ├─ Billing agent: Updates address ├─ Sales agent: Offers discount ├─ Customer: Delighted (seamless experience) └─ Your SaaS: Keeps customer (excellent experience)


WHY COMPETITORS ARE BUILDING MULTI-AGENTS:

Competitive positioning: ├─ You (single agent): "We handle support queries" ├─ Competitor (multi-agent): "We handle end-to-end customer lifecycle" ├─ Customer perspective: Competitor is 10x better ├─ Switching cost: Customer moves to competitor └─ Result: You lose customer to multi-agent competitor

Market shift: ├─ 2024: Single agents = competitive advantage ├─ 2025: Multi-agents = table stakes ├─ 2026: Super-agents (10+ coordinated agents) = differentiator ├─ Your window: NOW (18 months to build multi-agent) └─ If you wait: You're too late (competitors already have it)


WHAT MULTI-AGENT SYSTEMS ACTUALLY DO:

Real-world multi-agent workflows: ├─ Customer service: │ ├─ Support agent (handles questions) │ ├─ Escalation agent (handles complex issues) │ ├─ Billing agent (handles refunds/credits) │ ├─ Retention agent (offers discounts) │ └─ All working together on single customer │ ├─ Sales workflow: │ ├─ Lead agent (qualifies leads) │ ├─ Research agent (finds company info) │ ├─ Pitch agent (creates proposal) │ ├─ Negotiation agent (handles objections) │ └─ All working together on single deal │ ├─ Content creation: │ ├─ Research agent (gathers information) │ ├─ Writer agent (creates draft) │ ├─ Editor agent (checks quality) │ ├─ Publisher agent (schedules publication) │ └─ All working together on single article │ └─ Product development: ├─ Spec agent (writes requirements) ├─ Design agent (creates designs) ├─ Code agent (writes code) ├─ QA agent (tests product) └─ All working together on single feature

Key insight: ├─ Single agent = solves one step ├─ Multi-agent = solves entire workflow ├─ Multi-agent = orchestrated collaboration ├─ Multi-agent = seamless end-to-end experience └─ Multi-agent = competitive necessity

The Infrastructure Reality: Serverless Is Dead for Multi-Agents

You need persistent infrastructure. Here's what changed and why it matters.

Serverless vs Persistent Infrastructure for multi-agents

SERVERLESS (AWS Lambda, Google Cloud Functions):

Constraints: ├─ Session timeout: 15 minutes (hard limit) ├─ Memory: 128MB-10GB (can't handle large context) ├─ State persistence: Zero (everything resets) ├─ Inter-process communication: Hard (message queues needed) ├─ Context sharing: Difficult (manual serialization) ├─ Concurrency: Limited (coordinated agents are hard) └─ Price: €0.0001 per execution (cheap, but scales fast)

Multi-agent workflow on serverless: ├─ Agent 1 executes (5 minutes) ├─ Agent 1 times out (too long) ├─ Agent 2 starts fresh (context lost) ├─ Agent 2 confused (doesn't know what Agent 1 did) ├─ Workflow fails (agents can't collaborate) └─ Result: Broken multi-agent system

Cost with multi-agent: ├─ 10 agents × 100 executions/day × €0.0001 ├─ = €1,000/month (sounds cheap, but...) ├─ Plus: Message queue costs (coordinate agents) ├─ Plus: Database costs (share state) ├─ Plus: Engineering time (build workarounds) ├─ Total: €5K-10K/month (not cheap anymore) └─ Plus: Complexity (nightmare to maintain)


PERSISTENT INFRASTRUCTURE (AWS EC2, Google Compute Engine, Kubernetes):

Capabilities: ├─ Session timeout: None (runs forever) ├─ Memory: Unlimited (handle massive context) ├─ State persistence: Native (easy to share) ├─ Inter-process communication: Native (direct APIs) ├─ Context sharing: Easy (in-process shared memory) ├─ Concurrency: Easy (multiple agents in same process) └─ Price: €100-1000/month (more expensive, but simpler)

Multi-agent workflow on persistent: ├─ Agent 1 processes (stays running) ├─ Agent 1 shares context with Agent 2 ├─ Agent 2 starts (with full context) ├─ Agent 2 understands Agent 1's work ├─ Agents collaborate seamlessly └─ Result: Powerful multi-agent system

Cost comparison: ├─ Serverless multi-agent: €5K-10K/month (with workarounds) ├─ Persistent multi-agent: €500-2K/month (clean architecture) ├─ Persistent is CHEAPER (simpler, fewer workarounds) ├─ Persistent is BETTER (agents collaborate natively) └─ Persistent is SIMPLER (less engineering overhead)


AWS AGENTCORE RUNTIME INSTANCES (NEW):

What Amazon launched: ├─ Persistent infrastructure optimized for multi-agent ├─ Built on Bedrock (Claude/GPT models) ├─ Manages long-running multi-agent workflows ├─ Handles context sharing automatically ├─ Supports persistent sessions (days/weeks) ├─ Pricing: €100-500/month (per instance) └─ Complexity: Managed by Amazon (you don't manage infra)

Why it matters: ├─ No more building state management (Amazon handles it) ├─ No more message queues (built-in agent coordination) ├─ No more context loss (persistent by default) ├─ Focus on agents (not infrastructure) ├─ Simpler deployment (vs managing Kubernetes) ├─ Faster time-to-market (pre-built multi-agent runtime) └─ Cost-effective (simpler than serverless workarounds)


DECISION MATRIX:

Use serverless if: ├─ You have single agent (stateless) ├─ Sessions are short (minutes) ├─ No coordination needed ├─ Cost is critical (€ < €500/month) └─ You're OK with poor multi-agent experience

Use persistent infrastructure if: ├─ You have multi-agent (coordinated) ├─ Sessions are long (hours/days) ├─ Agents need to collaborate ├─ Customer experience matters (end-to-end workflows) ├─ You want competitive advantage └─ Time-to-market is important (faster development)

Use AgentCore if: ├─ You're on AWS/Bedrock ├─ You want managed multi-agent infrastructure ├─ You don't want to manage Kubernetes ├─ You want agent coordination out-of-box ├─ You're building production multi-agent systems └─ Recommendation: YES (for most B2B SaaS)

What This Means for Your SaaS (Right Now)

Serverless is dying for agents. Multi-agent is table stakes. Infrastructure decision can't wait.

Three immediate implications for your agent strategy

IMPLICATION 1: YOUR SERVERLESS AGENT IS MAXED OUT

Reality: ├─ Your single-agent serverless = working great (for now) ├─ Your customers: Asking for more (integration with other agents) ├─ Your roadmap: Wants multi-agent (expand capabilities) ├─ Your infrastructure: Can't handle it (serverless limitations) ├─ Your options: Migrate to persistent OR stay limited └─ Timeline: Must decide in next 3 months (before roadmap commits)

Cost of staying on serverless: ├─ Competitive disadvantage (competitors have multi-agent) ├─ Customer churn (customers want end-to-end solutions) ├─ Scaling pain (workarounds become expensive) ├─ Engineering overhead (state management is complex) ├─ Slow time-to-market (features take longer to build) └─ You lose to multi-agent competitors (inevitable)

Cost of migrating: ├─ Effort: 2-3 months (re-architect for persistent) ├─ Cost: €10K-30K (engineering time) ├─ Risk: Downtime during migration (must be careful) ├─ Benefit: 3-5x capability increase (multi-agent enabled) ├─ Benefit: Better customer experience (end-to-end workflows) ├─ Benefit: Competitive advantage (faster innovation) └─ ROI: Positive (migration cost < customer churn cost)


IMPLICATION 2: MULTI-AGENT IS NOW COMPETITIVE REQUIREMENT

Before AgentCore: ├─ Multi-agent = optional (nice-to-have feature) ├─ Competitors: Mostly single-agent (you're tied) ├─ You can: Stay single-agent, compete on quality └─ Market: Has room for single-agent players

After AgentCore: ├─ Multi-agent = table stakes (expected feature) ├─ Competitors: Building multi-agent (racing to launch) ├─ You must: Go multi-agent (or lose customers) ├─ Window: 6 months (first-mover advantage) └─ Market: Consolidating (multi-agent winners, single-agent losers)

What's happening: ├─ Competitor A: Launches multi-agent (marketing blitz) ├─ Your customers: "Why don't you have multi-agent?" ├─ You: "Our single agent is better quality" ├─ Customers: "Doesn't matter, we need end-to-end" ├─ You lose: 30-40% of pipeline (to multi-agent competitors) └─ Result: You're forced to build multi-agent (reactively)

Smart play: ├─ Build multi-agent NOW (proactively) ├─ Be first in market (own the narrative) ├─ Market: "We have end-to-end multi-agent" ├─ Competitors: "We're building multi-agent" ├─ You win: 30-40% of pipeline (early mover) └─ Timeline: Start in next month


IMPLICATION 3: INFRASTRUCTURE DECISION SHAPES YOUR ROADMAP

If you migrate to persistent (smart choice): ├─ Phase 1 (Month 1-2): Migrate current agent (stay compatible) ├─ Phase 2 (Month 2-3): Add second agent (sales agent) ├─ Phase 3 (Month 3-4): Add third agent (billing agent) ├─ Phase 4 (Month 4+): Add more agents (expand capabilities) ├─ Phase 5 (Month 6+): End-to-end workflows (multi-agent orchestration) └─ Timeline: Full multi-agent system in 6 months

If you stay on serverless (slow down): ├─ Phase 1 (Month 1-6): Optimize single agent (diminishing returns) ├─ Phase 2 (Month 6-12): Build workarounds (expensive, complex) ├─ Phase 3 (Month 12+): Finally migrate (after falling behind) ├─ Phase 4 (Month 18+): Build multi-agent (too late, market lost) └─ Result: Competitors own multi-agent market


RECOMMENDED ACTION PLAN:

This month: ├─ Audit current agent (single or multi? serverless or persistent?) ├─ Plan multi-agent roadmap (what agents do you need?) ├─ Evaluate infrastructure (serverless vs persistent vs AgentCore?) ├─ Estimate migration effort (how long? how much cost?) └─ Get stakeholder buy-in (CEO/board approval)

Next month: ├─ Prototype multi-agent on persistent infrastructure (proof of concept) ├─ Test context sharing (can agents collaborate?) ├─ Measure performance (latency? cost? throughput?) ├─ Validate with customers (do they want this?) └─ Decide: Proceed with migration? (yes/no)

In 3 months: ├─ Migrate first agent (maintain backward compatibility) ├─ Launch second agent (add capability) ├─ Monitor & optimize (cost, performance, stability) ├─ Customer communication (launch messaging) └─ Competitive positioning (market the multi-agent advantage)

In 6 months: ├─ Full multi-agent system (end-to-end workflows) ├─ Market leadership (own the multi-agent narrative) ├─ Customer advantage (significant new value) └─ Competitive moat (harder to catch up now)

Next Steps: Multi-Agent Infrastructure Strategy for Your SaaS

At OpenClaw, we help SaaS founders design multi-agent architectures (serverless vs persistent tradeoffs, AgentCore evaluation, migration planning), plan agent orchestration (how to coordinate agents, context sharing strategies, workflow design), and execute roadmaps (build multi-agent in 3-6 months, stay competitive, own the market):

  • Multi-agent architecture audit (is your current agent serverless? what are the limitations?)
  • Infrastructure recommendation (should you migrate? to what platform?)
  • Multi-agent design workshop (what agents do you need? how should they collaborate?)
  • Migration planning (timeline, cost, risk mitigation)
  • Agent orchestration strategy (workflow design, context sharing, handoff patterns)

Get a free multi-agent infrastructure assessment: Schedule 30 minutes with our agent architecture consultant. We'll audit your current agent (serverless or persistent? single or multi?), evaluate your multi-agent needs (what agents should you build?), recommend infrastructure (serverless vs persistent vs AgentCore?), and design your roadmap (how to migrate without breaking anything?).

[Book your free multi-agent assessment] → [Button: Schedule 30-Minute Call]

Serverless worked for single agents. Multi-agents need infrastructure. AgentCore changes the equation. Your decision in the next month determines if you lead or follow.


FAQ

Q: Mas não dá pra rodar multi-agent em serverless com database? (Compartilhar contexto via DB)

A: Teoricamente sim, mas na prática é ruim:

  • Você teria que: Salvar contexto em DB → Agent 2 lê DB → Continua
  • Problema 1: Latência (DB calls = lento)
  • Problema 2: Complexity (você gerencia estado manualmente)
  • Problema 3: Cost (serverless + DB = mais caro que persistent)
  • Problema 4: Bugs (context sync é complexo, bugs aparecem)
  • Realidade: Serverless multi-agent = mais caro + mais complexo que persistent

Smart play: Usar persistent infrastructure (simpler, cheaper, better).

Q: AgentCore é bom ou é só hype?

A: É bom se você tá na AWS:

  • Benéficos reais: Managed multi-agent, built-in context sharing, less ops overhead
  • Limitações reais: Lock-in com AWS, pricing pode subir, não é única opção
  • Alternativas: Kubernetes (mais controle, mais complex), persistente custom (DIY)
  • Recomendação: AgentCore é 80% solution (boa escolha para 80% de SaaS)

Decision: Se você tá em AWS, use AgentCore. Se não, use Kubernetes.

Q: Timeline pra migration é realmente 2-3 meses?

A: Depende do tamanho:

  • Agente pequeno (< 100 linhas): 2 semanas
  • Agente médio (integrations + complex logic): 1-2 meses
  • Agente grande (muitos integrations + data access): 2-3 meses
  • Mais time = mais rápido (mas não linear)

Estimativa conservadora: 2-3 meses + 2 semanas de testing.


Publicado em 30 de setembro de 2026

Leia também