Kad AI izrađuje nacrt arhitekture vašeg sustava, što postaje vaš posao?
AI can now produce a plausible system architecture before a team has finished its first coffee. Give it a product brief and it may return a microservices diagram, a database choice, API boundaries, event flows, deployment suggestions, and a backlog of implementation tasks.
That is useful. It is also easy to mistake plausibility for judgment.
When AI drafts the architecture, the architect’s job does not disappear. It becomes more demanding in the places that matter most: defining the real problem, exposing constraints, testing assumptions, making trade-offs explicit, and owning the consequences after the generated diagram meets production.
Architecture is more than a list of components
A generated design often looks confident because software architecture has recognizable patterns. A web application might receive a frontend, an API gateway, a service layer, a relational database, a cache, asynchronous workers, and observability tooling. None of those choices is inherently unreasonable.
The question is whether they are necessary for this system, this team, and this stage of the product.
A small internal workflow tool may be better served by a modular monolith and a managed database than by independently deployed services connected through a message broker. A high-volume integration platform may need durable queues, idempotency controls, replay mechanisms, and clear ownership boundaries from day one. The same AI can propose both answers. It cannot reliably determine which risks your organization is actually prepared to carry unless you provide and validate the context.
Architecture is therefore not component selection. It is a sequence of decisions about constraints, failure modes, change, and responsibility.
Your new job: turn ambiguity into testable decisions
AI is strong at expanding a prompt into options. Technical leaders must become stronger at narrowing those options with evidence.
Before asking for an architecture draft, establish the facts that materially shape the design:
- Who uses the system, and what happens when it is unavailable?
- What data is sensitive, regulated, or difficult to restore?
- What response times, throughput levels, and operating hours are actually required?
- Which existing systems must be integrated, and how reliable are they?
- What skills, operational capacity, and deployment practices does the team have?
- Which assumptions would be expensive to reverse later?
These questions are not paperwork. They are architecture inputs. If they are absent, an AI-generated design will tend to fill the gaps with generic best practices. Generic best practices can be actively harmful when they add operational cost without reducing a relevant risk.
A useful prompt does not ask, “Design a scalable architecture.” It says what must scale, what can fail gracefully, what data must remain consistent, which systems are authoritative, and what the team can operate. Even then, treat the output as a draft for review, not a decision record.
Use AI to widen the review, not to skip it
The most valuable use of AI in architecture work is often adversarial. After it proposes a design, ask it to challenge that design from several angles.
Ask for the hidden costs
Request an explanation of the operational burden of each component: deployment complexity, monitoring needs, backup and recovery, permissions, secrets, versioning, on-call diagnosis, and migration paths. A service boundary that looks clean in a diagram may create a distributed transaction problem that the team will spend months managing.
Ask for failure scenarios
Architecture becomes real when dependencies misbehave. Have the model enumerate what occurs if a queue delivers a message twice, a downstream API times out after accepting a request, a cache becomes unavailable, or a database migration is interrupted. Then turn the meaningful cases into engineering requirements.
For example, an order-processing workflow should not merely state that it uses asynchronous events. It should define how duplicate delivery is handled, where idempotency is enforced, what the retry policy means, and when a failed item requires human intervention.
If payment confirmation is received more than once:
1. Identify the order by a stable external payment reference.
2. Record the first successful confirmation atomically.
3. Treat later matching confirmations as no-ops.
4. Alert only when confirmations conflict.
This is not a complete implementation, but it is the kind of precise behavior an architecture must make possible.
Ask for simpler alternatives
One of the best review questions is: “What is the simplest design that satisfies the stated requirements, and what signal would tell us it is time to evolve it?” This counters the tendency to adopt complexity as insurance against hypothetical scale.
Good architecture includes an exit strategy. If a modular monolith later needs separate deployment units, the code structure, data ownership, and interfaces should make that evolution possible. The initial answer does not need to anticipate every future; it needs to avoid blocking likely futures.
Human judgment moves closer to the boundaries
As AI makes implementation and documentation faster, technical leadership shifts toward the boundaries of a system: between teams, between services, between trusted and untrusted inputs, and between automated action and human accountability.
Those boundaries are where familiar architectural terms become consequential. “Use an event” raises questions about ownership and delivery guarantees. “Add a model” raises questions about data handling, evaluation, fallback behavior, and user expectations. “Automate the workflow” raises questions about approval limits and recovery when automation is wrong.
AI can help identify these questions, but it cannot accept responsibility for an unsafe permission model, an unusable recovery procedure, or a business rule that quietly harms customers. The person accountable for the system must decide what should be automated, what must remain reviewable, and what requires a hard stop.
Make architectural reasoning visible
A diagram without rationale is a picture of current opinion. Teams benefit more from concise decision records that explain what was chosen, which alternatives were considered, and what would cause the decision to be revisited.
AI can draft these records quickly, summarize trade-offs, and keep terminology consistent. A senior engineer should verify that the record reflects reality rather than the confidence of the prose. In particular, separate known facts from assumptions and open questions.
- Decision: Store transactional data in a relational database.
- Reason: The workflow needs atomic updates and auditable state transitions.
- Assumption: Current traffic can be handled by a single primary deployment.
- Revisit when: Measured load, availability needs, or regional requirements exceed the current design.
This discipline makes AI assistance safer because it gives generated ideas a place in a human review process. It also helps future maintainers understand why a design exists.
The architect becomes the editor of reality
The enduring skill is not drawing more boxes than an AI can draw. It is recognizing which boxes solve a real problem, which merely make the diagram look sophisticated, and which risks remain after the diagram is approved.
AI can accelerate exploration, generate alternatives, and expose gaps in a first draft. Let it do that work. But keep the central responsibility where it belongs: with people who understand the context, can interrogate the trade-offs, and will be present when the system behaves differently from the plan.
When AI drafts your architecture, your job is not less architecture. Your job is to make sure the draft earns the right to become a system.