Imagine you have a team of helpers (agents) working on a task. What does it mean to scale these agents horizontally?
Think about how adding more helpers affects the workload distribution.
Horizontal scaling means increasing the number of agents working side by side, so tasks can be done faster by sharing the load.
You want to scale your AI agents horizontally to handle more user requests simultaneously. Which approach best supports this goal?
Think about how to handle many requests at once by using more agents.
Deploying multiple agent instances behind a load balancer allows requests to be distributed evenly, enabling horizontal scaling.
What is the output of the following Python code simulating agent task completion times when scaling horizontally?
import random def simulate_agents(num_agents, tasks_per_agent): times = [] for _ in range(num_agents): agent_time = sum(random.uniform(0.8, 1.2) for _ in range(tasks_per_agent)) times.append(agent_time) return max(times) random.seed(0) result = simulate_agents(3, 5) print(round(result, 2))
Run the code to see the maximum total time among 3 agents each doing 5 tasks with random times.
The code sums random times between 0.8 and 1.2 for 5 tasks per agent, then returns the longest total time among 3 agents. With seed 0, the output is 5.51.
You measure the throughput (tasks per second) of your agent system as you add more agents horizontally. Which metric best shows how efficiently the system scales?
Think about how adding agents affects total work done compared to one agent.
Speedup compares throughput with multiple agents to a single agent, showing how well horizontal scaling improves performance.
You horizontally scaled your agents by adding more instances, but the system's throughput did not improve as expected. Which issue below most likely causes this bottleneck?
Consider what shared parts might slow down many agents working together.
If agents share a resource that cannot handle many requests at once, it becomes a bottleneck preventing throughput improvement despite more agents.
