Türkçe

Building TuranOrdo: Why I Created My Own Infrastructure OS for Modern Microservices

Over the past several months, I built TuranOrdo, an infrastructure operating system designed to make the infrastructure required by complex distributed applications more predictable, reproducible, and manageable.

The motivation was straightforward. Modern microservice architectures provide scalability and flexibility, but they also introduce significant operational complexity. Databases, message brokers, caches, networking, TLS, secrets, permissions, routing, observability, and application runtimes all have to work together correctly. As the number of services grows, managing these concerns individually can become as challenging as building the applications themselves.

I wanted a different approach:

Infrastructure should be treated as software — with explicit ownership, reproducible provisioning, deterministic initialization, verification, and reconciliation.

From Containers to an Infrastructure Model

TuranOrdo is built on Docker Compose and Linux, but it is not simply a collection of Compose files and automation scripts.

At the center of the platform is a persistent infrastructure registry and a System → App → Resource ownership model.

A system represents an isolated environment or business domain. Applications belong to systems, and infrastructure resources are associated with applications and systems through explicit ownership relationships.

The registry maintains metadata about systems, applications, runtime types, infrastructure dependencies, database ownership, Redis namespaces, RabbitMQ queues, Kafka topics and access policies, routing configuration, and infrastructure schema migrations.

This gives TuranOrdo a persistent understanding of the infrastructure it manages.

Instead of treating infrastructure as a collection of unrelated containers, the platform can reason about what should exist, who owns it, how it should be configured, and how it should be verified.

Applications Declare Requirements; TuranOrdo Provides the Foundation

One of the central ideas behind the platform is separating application responsibilities from infrastructure responsibilities.

Applications own their:

  • business logic
  • APIs
  • workers and consumers
  • database schemas and migrations
  • frontend assets
  • application configuration
  • application health behavior

TuranOrdo owns the operational foundation:

  • databases
  • messaging systems
  • caching
  • networking
  • TLS and routing
  • shared application runtimes
  • infrastructure secrets
  • infrastructure configuration
  • health and dependency verification
  • observability

An application can therefore express infrastructure requirements without having to implement the operational machinery required to provision and secure those dependencies.

For example, multiple applications can share the same PostgreSQL, RabbitMQ, Kafka, Nginx, or Traefik infrastructure while maintaining distinct ownership and security boundaries.

Shared infrastructure does not have to mean shared ownership.

Security and Isolation as Infrastructure Concepts

Isolation is not limited to separating containers.

TuranOrdo applies ownership and access boundaries at the resource level.

Depending on the infrastructure technology, this can include:

  • PostgreSQL/MySQL databases and users
  • MongoDB databases and credentials
  • Redis namespaces
  • RabbitMQ virtual hosts, queues, and permissions
  • Kafka application identities, topics, and ACLs
  • Nginx configuration and filesystem ownership
  • Traefik application and domain routing

This allows shared infrastructure to remain centrally managed while applications receive only the access they require.

Secrets are also treated as infrastructure concerns, with protected secret storage and Docker Secrets used for runtime delivery.

Deterministic Initialization and Verification

A major goal of TuranOrdo is to make infrastructure initialization deterministic.

The platform follows an explicit lifecycle:


    Pre → Start → Init → Verify → Post

Infrastructure is not considered ready simply because its containers are running.

Initialization can include creating databases, credentials, queues, topics, permissions, routing configuration, and other dependencies.

Verification then checks whether those dependencies actually work.

For example, messaging infrastructure can be verified through real connectivity and publish/consume operations rather than relying solely on container health status.

This distinction is important:

A running container is not necessarily a working infrastructure dependency.

By making verification part of the infrastructure lifecycle, TuranOrdo can fail early when the expected infrastructure state has not actually been established.

Reconciliation Instead of One-Time Provisioning

Infrastructure also changes over time.

Applications are added and removed. Domains change. Messaging resources evolve. Runtime requirements change.

For that reason, TuranOrdo is designed around reconciliation rather than one-time provisioning alone.

The platform maintains a registry of the resources it owns and can reconcile infrastructure against the desired state represented by that registry.

This also makes it possible to identify obsolete or orphaned resources instead of allowing infrastructure to accumulate indefinitely.

The objective is a clean, deterministic infrastructure state that can be reproduced and evolved over time.

Supporting Different Application Models

Another important design decision was not forcing every application into a single runtime model.

TuranOrdo currently supports several application models, including:

  • Containerized applications: Traefik → application container
  • Static applications: Traefik → shared Nginx → static files
  • PHP applications: Traefik → shared Nginx → PHP-FPM → application

A logical application can also contain multiple workloads or expose multiple domains and entrypoints.

This means an application is treated as a logical deployment and ownership unit rather than being limited to a single container, process, runtime, or domain.

This flexibility is important because real software platforms are heterogeneous.

TuranBilgi as a Real-World Example

One of the strongest demonstrations of the architecture is TuranBilgi, an event-driven distributed application platform that I am building on top of TuranOrdo.

TuranBilgi includes multiple backend services, realtime communication, databases, Kafka, RabbitMQ, Redis, APIs, and other distributed-system components.

Instead of repeatedly solving infrastructure problems for each service, I can focus on application architecture: business capabilities, APIs, domain events, realtime communication, and user-facing functionality.

TuranOrdo provides the underlying infrastructure model on which those applications operate.

This separation has made the relationship between application architecture and infrastructure architecture much clearer.

Why Build It Myself?

There are already excellent infrastructure technologies available.

Docker Compose, Kubernetes, Terraform, cloud platforms, managed databases, and other DevOps tools solve important problems.

TuranOrdo is not intended to replace all of them.

I built it because I wanted an infrastructure layer specifically designed around the operational problems I encountered while building distributed systems.

The key idea is not another orchestration technology.

It is the combination of:

    ownership + registry + provisioning + security + connectivity + verification + reconciliation

into a single infrastructure operating model.

That model is useful even when the underlying infrastructure changes.

A Foundation for Future Capabilities

The current TuranOrdo implementation focuses on establishing this infrastructure operating model.

The architecture also provides a foundation for future capabilities such as:

  • automated backup and restore
  • disaster recovery workflows
  • asynchronous replication
  • multi-node high availability
  • automated failover
  • Docker Swarm integration
  • TuranTulpar integration
  • additional infrastructure and storage platforms

These are evolutionary capabilities rather than assumptions about what the current platform already provides.

The important part is having an infrastructure model that can support them without requiring applications to fundamentally change how they are deployed.

Infrastructure as Software

Building TuranOrdo has strengthened my experience across Docker, Linux, Docker Compose, PostgreSQL, MongoDB, Redis, RabbitMQ, Kafka, TLS, secrets management, infrastructure automation, observability, event-driven architecture, and distributed systems.

More importantly, it has reinforced an engineering principle that I increasingly value:

Infrastructure deserves the same architectural discipline as application software.

It should have explicit models, ownership boundaries, reproducible state, predictable lifecycle management, automated verification, and well-defined interfaces.

That is ultimately why I created TuranOrdo.

It started as infrastructure for my own projects, but evolved into a more general platform for managing distributed applications in a predictable and reproducible way.

The project has become one of the most rewarding engineering efforts of my career because it brings together two areas I care deeply about: software architecture and infrastructure engineering.

If you'd like to explore the implementation and architecture in more detail:

Acknowledgement

I would also like to acknowledge ChatGPT as an engineering partner throughout the development of TuranOrdo.

It significantly accelerated research, design exploration, code review, debugging, alternative-architecture evaluation, and documentation. This allowed me to iterate through complex infrastructure and distributed-systems problems much faster.

While the architectural decisions, implementation, testing, and final engineering responsibility remained mine, the project has also demonstrated to me how effectively experienced engineers can collaborate with AI when building complex software systems.

AI did not replace the engineering process; it became part of it.