
Instead of dogmatically relying on SPA architectures, we consistently keep state and logic on the server – this keeps complexity and footprint low, while benefiting performance, security and maintainability.
When modern web stacks become expensive
Many web applications fail not because of a lack of features, but because of their architecture.
API-first approaches, single-page applications, and distributed client state lead to:
- duplicate validation logic (backend + frontend)
- multiple implementations of state and error logic
- unnecessary serialization (state → JSON → templates → DOM)
- increased attack surface due to overly broad JSON responses (information disclosure)
- additional infrastructure and cloud overhead due to separate frontend/backend deployments and API operation
- increasing complexity with every extension
- high maintenance and development costs
The system becomes slower, more fragile, more vulnerable to security breaches, and more expensive – even though it was originally launched as „modern“.
Control and Responsibility Back to the Server
We build web applications so that the server regains control over the application state.
Specifically, this means:
- Server-side state instead of distributed client logic
- Hypermedia as a control mechanism, not as an API side effect
- Directly rendered markup instead of JSON → client templates
- Strict typing in PHP (e.g., PHPStan, clear contracts)
- Measurable performance instead of perceived optimization
The result is systems with less code, fewer potential errors, and significantly lower overall costs. Systems that run efficiently on simple infrastructure, without distributed deployments or complex setups.
Keywords we like:
Our Architectural Principles
We choose technologies based on impact, not trends. These principles permeate all our projects – regardless of frameworks or hype.
Objections from Practice
We frequently hear these questions and concerns in technical reviews and architectural discussions. They arise from real-world project experience – as do our answers.
What we do
We work with companies and IT teams, taking on architectural responsibility – from analysis to implementation – in the following use cases:
- Architecture reviews of existing PHP web applications
- Identifying and reducing unnecessary API and SPA complexity
- Performance analysis and profiling
- Migration to server-side hypermedia flows
- Temporary support for demanding backend and architecture topics
Not our focus:
- Marketing websites
- Pure frontend projects
Approach
- Short audit – a joint review of architecture, state flows, and cost factors
- Clear recommendation – a structured architectural decision-making framework with options and their impact on costs, risks, and maintainability
- Implementation or support – focused, transparent, and testable
The goal is not minimal change, but minimal total costs over the system’s lifetime. The required scope is determined by the existing architecture and the identified cost and risk drivers.
About Us

Behind zwei und eins gmbh is Michael Bolli, an experienced web developer with a passion for well-designed digital solutions. For over 20 years, I have been working to efficiently support IT projects and empower companies with modern websites and applications.
My focus is on:
- PHP-based systems
- Architecture and maintainability
- Performance and profiling
- Clear responsibilities within the stack
I deliberately work without unnecessary framework layers and quickly integrate into existing systems and teams. My contributions to open-source projects are documented on GitHub.
Contact Book a quick audit
Write us a message
Address
zwei und eins gmbh
Kistlerweg 1
3270 Aarberg
Switzerland
info@2und1.ch
UID: CHE-283.935.768 MWST