Field notes

The 130-hour estimate

An AWS application had to run fully offline too. The estimate said 130 hours; the work was discovery. Why infrastructure estimates miss.

Written

The situation

A team asked for an estimate. An application built on AWS had to run both in the cloud and fully offline, as a standalone deployment. Same codebase, same functionality. The estimate came in at around 130 hours. One month later the work had passed the estimate, and was not done.

The application was roughly ten repositories: a frontend, a backend API, a reverse proxy, background workers and supporting infrastructure. The estimate assumed standard work: containerise the services, replace managed services with local equivalents, adjust configuration.

What was wrong

The estimate priced implementation. The work was discovery.

Feature work has bounded unknowns: requirements, design, implementation, testing. Infrastructure work starts with assumptions. The system behaves a certain way, the dependencies are documented, the architecture matches the diagrams. Those assumptions are usually wrong.

Here, services made direct AWS SDK calls inside business logic. The frontend assumed a CDN. Background workers coordinated through SQS. The reverse proxy used AWS-specific load balancing. None of it was documented. The estimate was made from the architecture diagrams, and the diagrams were not the implementation.

In a cloud-native system those questions never need answers, because the cloud provides the dependencies. Make the system run offline and every assumption becomes a problem. A Lambda function needs to become a container. An S3 bucket needs local storage. A managed database needs a local instance. Every assumption you untangle reveals three more you did not know about.

What changed

Discovery is estimated separately from implementation, because they are different kinds of work. One is following a map; the other is drawing it.

A discovery phase of 20 to 40 hours traces dependencies and maps how services talk. Only then does anyone commit to a number. It is time-boxed, so it ends. After it, the estimate is a range, “100 to 200 hours”, which says what is known and what is not.

Exceeding an estimate is a signal that the system was more complex than it looked. When an infrastructure estimate seems low for retrofitting an architecture, it probably is. If discovery is not scoped, it happens anyway, invisibly, and the estimate looks wrong.

The check in the review

All field notes