The Controller is a single access point to monitor components in your MediaKind solution, manage product users, and configure solutions from end-to-end. Configuration and control are separated for flexible resource allocation.

## Software and applicative layers

The Controller design relies on a **micro-services architecture** to promote modularity and software component independence. The solution is split into a Front-End and a Back-End layer. Each layer is interfaced through a REST API.

![Controller front end and back end connected through the REST API.](/images/aquila-guide/controller-architecture.webp)

<blockquote data-callout="note"><p>If menus or options in the web interface are grayed then contact your administrator about user rights.</p></blockquote>

### UI Layer (Front-End)

The generic UI framework provides a same environment to display the web pages for all compatible products:

- Web pages (services, servers, etc.) are shared across the product line.
- Certain web pages are specific to each [processing type](/traditional-products-and-appliances/components/controller/services#service-processing-types) (statistics, services, etc.).

### API Layer (Back-End)

The Back-End features are triggered through a REST API that can be used either from a _Command Line Interface_, or from the Front-End Layer. The API layer allows:

- A centralized redundant database.
- The logic handling for cross-products and product specific features.

## High availability

Access to the Controller is through a Virtual IP. This allows for a **single connection access**.

The Controller is based on an **active/active** implementation that ensures high availability.

![Two Controllers with synchronised databases, a virtual IP address, and an arbiter.](/images/aquila-guide/controller-high-availability.webp)

The Controller **database is synchronized in real-time** between both nodes. **In case of failure, the remaining node is instantly ready** to process requests. If the primary server fails, then the Virtual IP is seamlessly re-assigned to the secondary server. **This mechanism involves _arbiter_ software**, installed on a separate server. This arbiter server is in charge of electing the primary database if the network is partitioned (in the event of communication loss between synchronized databases).
