Infrastructure vs. product engineering at an AI startup
By Manik Narang ·
TL;DR: Infrastructure engineering builds the systems that software depends on. Product engineering turns capabilities into something people can use. Working across both at an AI startup means following a customer problem through those layers. At Profound, that can mean connecting an agent's browser experience to credential handling, sandbox isolation, startup latency, and recovery. I think the useful career question is: which problems do you want to own, and how deep are you willing to go to solve them?
I work across cloud infrastructure, the agent runtime, and the product at Profound. The infra versus product question gets awkward when I try to apply it to a feature I've worked on. Giving our AI Marketer, Aim, a browser involved a live view and saved logins. It also involved a secrets service and recovery when a browser or its sandbox dies mid-task.
Where does the product work stop?
For the person using it, the feature is the whole thing. They want the agent to open the right page, do useful work, and survive the things that go wrong along the way. The boundary between teams doesn't help them.
That's the part of working across infrastructure and product that I find useful: I can follow the problem far enough to see what actually needs fixing.
What is the difference between infrastructure and product engineering?
I use the terms to describe different responsibilities.
Product engineering starts close to a user's task. What are they trying to do? What should the software do next? How will they know it worked? The work can include an interface, an API, or the behavior connecting several services.
Infrastructure engineering starts with the capabilities other software needs: compute, networking, storage, isolation, deployment, and observability. Its users are often other engineers, though its failures can reach customers directly.
The distinction helps when deciding who maintains a system or how to measure it. It becomes less helpful when it turns into an identity that limits what an engineer is willing to investigate.
I want enough product context to choose the right systems work, and enough systems knowledge to understand what a feature will require in production.
What does working across both look like at Profound?
A concrete example is the sandbox infrastructure behind Aim.
An Aim session can run for hours, use tools, execute code, generate artifacts, and pause for human review. That creates requirements well below the chat interface. A session needs somewhere to run. Generated code needs an isolated environment. Useful state needs to survive the machine that produced it.
Our architecture gives each session two sandboxes: one for the agent runtime and another for untrusted code and filesystem work. A gateway makes authenticated calls to internal services and writes artifacts to storage. Credentials stay outside the untrusted sandbox.
I wrote about the implementation in AWS Lambda MicroVMs for AI agents. The broader lesson is how directly the architecture follows the experience we're trying to support.
If someone pauses to review work, the session needs durable state. If an agent runs code, the isolation boundary matters. If a sandbox disappears, the conversation and artifacts still need to be there.
Those are infrastructure requirements with consequences a customer can see.
When does a warm pool become product work?
When starting the environment is part of how long someone waits.
At Profound, we keep a warm pool of pre-launched sandbox pairs. When someone opens a chat, the gateway claims a pair and binds it to the session. Profound's engineering write-up reports fresh sandbox startup at 2–3 seconds at p95 and warm-pool startup under 100 milliseconds at p99. Those are different percentiles, so I wouldn't use them to calculate a precise percentage improvement. They do show why keeping capacity ready matters.
The warm pool only addresses one part of the wait. Model calls, tool execution, and network paths still matter. Moving our sandboxes into our AWS network also removed public-internet hops to internal services, and the same write-up reports a reduction of more than 20% in time to first token.
I care about the infrastructure measurements because they help explain the wait. I also want to measure the wait itself. A fast sandbox doesn't automatically mean a fast response.
Working across both means connecting a component's performance to the experience it contributes to.
What does a browser feature teach you about infrastructure?
A browser makes the connection especially obvious.
The browser I built for Aim has three parts: a live view, saved logins backed by a secrets service, and recovery when a browser or its sandbox dies. Each part exposes another engineering question.
Saved logins require a decision about where credentials live and how access is scoped. A live view needs to correspond to the browser doing the work. Recovery requires deciding which state can be restored and what the person should see afterward.
These questions are part of defining a usable browser feature.
My rule for this kind of work is to trace one task through the system. Follow what happens when it succeeds, then follow what happens when one dependency fails. That usually produces a more useful design discussion than starting with which team owns each box in the diagram.
How do you avoid overbuilding the infrastructure?
I start with the capability the product needs and ask how much of the machinery we need to operate ourselves.
Before adopting Lambda MicroVMs, we were considering self-hosted E2B. It addressed our networking and isolation requirements, but it would also have meant operating a sandbox fleet. The managed primitive let us address those requirements while AWS handled the virtualization.
We still owned session lifecycle, networking, persistence, and the operational problems around them. After the cutover, that included quotas, startup deadlines, and idle suspension. A long tool execution can look idle unless the system explicitly tracks active work.
That's a useful limit on the idea of moving fast: the first successful run proves less than you want it to. You also need to understand what happens under load, during failure, and when a session lasts longer than expected.
I don't think a startup needs to build every layer. It needs to understand the layers it depends on well enough to make a deliberate choice.
Should you choose infra or product for your career?
I wouldn't infer the quality of an opportunity from the team name alone.
I'd ask what I'd get to own. Would I understand why the work matters? Would I see how it behaves in production? Is there someone who can help me develop depth? Would I get feedback from the people using what I build?
A role spanning both can be a good fit if you enjoy following a problem across boundaries. It also has a cost. Context switching is real, and touching many systems doesn't guarantee that you're learning any of them deeply. I'd want a few areas where I own the details, alongside enough breadth to connect them to the rest of the product.
For me, agent systems make that connection concrete. The browser, runtime, network, and storage all participate in the same customer task. Working across them gives me a better chance of spotting where the task breaks down.
The question I want to keep asking is simple: what does this person need the software to do, and what needs to be true underneath for that to work?