Not in Phase One

"We will have no API gateway for now. Maybe in the next phases".

The engineer I said this to was not happy. "This sounds a bit strange, it's usually not like that", she wrote, and asked for at least a simple API gateway. She wanted a single entry point, clean routing, room to grow. She had submitted a full, well-argued design.

Everything in it was reasonable, except that none of it was needed yet. My answer was the sentence I repeated for three months, in almost every architecture conversation: "The question is whether we need it for the current phase".

We built a platform for user submissions.

The product reached production on time. I'm fairly sure a big part of the reason is the long list of things we consciously decided not to build. The first version of a product reaches customers on time because of what you chose to defer, and every component that goes into it has to justify its place now.

Every Box in the Diagram Costs Money

Founders look at an architecture diagram and see boxes. Engineers see work. Every one of those boxes has to be built, run, monitored, backed up, explained to everyone who joins the team, and debugged at two in the morning when something gets stuck.

The problem is that each box on its own looks cheap. "It's just Redis". "It's just a message queue". "It's just a small service". Five boxes like that are already a few weeks of work, and beyond that, we have built a system with more ways to break. At the stage where you are still trying to find out whether customers want the product at all, every one of those weeks is a week in which they are not using it.

Good engineers propose these components for good reasons. They have seen large systems, they know what you need when you have a million users, and they want to build it right from the start. That is a healthy instinct. It just needs someone next to it asking which phase we are in.

What Stayed Out of the First Version

No API gateway. The website talked directly to the two services it actually needed: sign-in and submissions. When we moved to a real cluster, we added a proper entry point, because by then it had a job to do.

No Redis. The first designs proposed it for a ranking table of the submissions and for keeping the state of signed-in users. But the user's token already carries its own expiry time, and a ranking table is a query over two tables we already had. As I said at the time: "I am not sure leaderboard entries should be a table at all".

No message queue for a list. The reviewers need to see which submissions are waiting for them. That is a simple query on the database we already have. When the system has Kafka, it is tempting to route this through it too, and then there is one more place where the data has to stay in sync, and one more component to monitor and debug when something does not show up on the list.

No separate service per module. Two components that always worked together became one service. The manual review of submissions did not get a service of its own either; it lived inside the submissions service. Access to file storage was a small library in the code, with no extra service to run and maintain.

No catalog service, for now. One of the engineers noticed, rightly, that in the diagram the website calls a catalog service that does not exist yet. "Sharp observation. This is correct for the next phases".

One database user for all of our services. When a separate user per service was proposed, I said no: if one of our services is breached, you can assume all of them are, so that separation would not buy us much. Where the risk was real, running code we did not write, we invested in serious isolation. This deferral freed up time for exactly that.

Notice that none of these items was rejected as a bad idea. Every one of them got a later date.

A Good Deferral Leaves the Door Open

Some deferrals save time, and some create debt you will pay with interest when you hire the next team. The difference is a few small decisions you make right now.

Don't marry a vendor. When a managed queue from a specific cloud provider was proposed, I asked for an open-source option instead, and for the code that talks to it to be generic enough to swap it out in a day. That costs almost nothing today, and it saves a painful migration when prices or requirements change.

Keep the data structure flexible. The client's engineers asked us to avoid features that exist in only one database. So we kept to clear field names, a minimum of foreign keys between tables, and flexible fields wherever the structure was still changing every week.

Respect service boundaries, even when services share a database. Toward the end, one service started reading another service's tables directly. It looks like a harmless shortcut, but it ties the two services together so they can never be separated later. We fixed it: a service that needs data asks the service responsible for it. A shared database is a decision about how the system runs. It says nothing about who is responsible for which data.

Write down every deferral. Every "not now" became an open task in the tracker. "Open an issue and move on" was probably the sentence I typed most in those months. A deferral that is not written down will be forgotten, or worse, remembered under pressure a week before a big customer.

A Roadmap for the Short Term, Too

Toward the end, when the client's priorities shifted, I posted a three-phase plan in the team channel. Phase one: get the system live with what users need to start submitting. Phase two: close the open questions that needed a decision from the client. Phase three: the advanced capabilities.

The plan was short and explicit. Anyone on the team, and the client too, could point to a line and say "this needs to move up a phase".

How a Founder Can Check This Without Reading Code

If you are a founder without a technical background, most of the list above sounds like a foreign language. That's fine. You don't need to know what Redis is to ask the right questions.

When someone presents an architecture for your first version, ask them to go over every box and tell you what happens if we remove it. If the answer is "the product won't work" or "customers will be hurt", it stays. If the answer is "in a year, performance will be weak", it can be deferred. If the answer is "in a year, it will be hard to add", that is the moment to sit down with the team and work out how to build the system so that adding it later won't be hard. And if there is no clear answer, that in itself is important information.

Ask to see the list of deferrals as well. A team without such a list usually hasn't deferred anything, and is building the phase-three system right now.

A large part of a CTO's job at an early stage is knowing which component not to build yet, and saying so to the team without killing their enthusiasm.

Takeaways

  1. For every component in the first version, ask whether you need it in this phase. The debate is about timing, and the idea itself may be excellent.
  2. Defer in a way that leaves doors open: no dependence on a single vendor, a flexible data structure, and clear boundaries between services from day one.
  3. Write every deferral down as a tracked task. Otherwise "later" quietly becomes "never".
  4. Publish the order of phases openly, for the short term too. When the plan is written down, anyone can point to a phase and say it needs to move up.

When I approved the design of the evaluation component, I wrote that it would probably change along the way, and that, as they say, Rome wasn't built in a day. It also wasn't built with an API gateway in phase one.