Monofor High Availability (HA) Architecture
This document summarizes the high availability scenarios, operating models and scopes of responsibility of the ODM solution.
1. Overview
To ensure service continuity, the ODM solution can be deployed in different High Availability (HA) scenarios. This document explains the two fundamental operating models – Active–Passive and Active–Active – and clarifies their geographic distribution, scalability characteristics and database responsibility boundaries.
In both the Active–Passive and Active–Active cases, the applicable Multi DC (Multiple Data Center Topology) structure is shown below.
Figure 1: Multiple DC Topology
2. Active–Passive Structure
In the Active–Passive model, the application is installed and running in two separate locations. At any given time, only one location actively serves user traffic; the other location is kept ready for backup purposes.
2.1 Location Roles
Active server (Ankara): Always on and running. This is the location to which all customers are routed and from which they receive and use the service.
Passive server (Istanbul): The application is installed and running, standing by; however, it is not actively used. All components are also present here for redundancy. It is considered passive because no users are routed to this location.
Thanks to this structure, in the event of an outage at the active location, service can be continued from the passive location that is already standing by. (The Istanbul and Ankara locations are used as examples.)
2.2 Failover Process
Failover from the active location to the backup location is performed by a routing change on the load balancing layer. If the database is redundant and operating properly, this failover process is completed with only a brief interruption, and service resumes from the target location.
Note: The brief interruption applies only to the moment when the routing on the load balancer switches to the target location. It is a prerequisite that the database be redundant and consistent before the failover. |
3. Database Redundancy Scope
Important: Database redundancy work is outside the scope of the services provided. Setting up and operating database backup, replication and disaster recovery processes is the customer’s own responsibility. |
The ability of the Active–Passive failover process to complete with a brief interruption depends on the database being redundant and operating properly on the customer side.
4. Active–Active Structure
In the Active–Active model, multiple locations actively serve user traffic at the same time. This model offers scalability and geographic availability advantages.
4.1 Scalability
Account and api services can be scaled out as much as needed.
Services can be scaled horizontally by installing them on different machines.
4.2 Geographic Availability
Users are routed to the location closest to them: users in Ankara access the Ankara location, and users in Istanbul access the Istanbul location. This approach improves access performance thanks to geographic proximity.
4.3 Database Behavior
Even if the services in the system are deployed on different machines and in different locations, persistent data is kept in a single central database. For security reasons, externally exposed services (for example, the account service) do not access the database directly and have no database dependency. These services meet their data needs only through the [internal service / API layer name] running on the internal network; database access rights are granted only to these internal components. This structure is a standard approach, also widely used in similar products, that provides isolation between the externally exposed layer and the data layer.
5. Comparison of the Models
Note: The table below is provided as an example. The details given in the table will vary depending on each organization’s structure. |
The table below summarizes the key differences between the two operating models:
Criterion | Active–Passive | Active–Active |
Number of active locations | Single location active (Ankara) | Multiple locations active simultaneously |
Backup location | Passive, standing by (Istanbul) | Redundancy is provided in a distributed manner |
Traffic routing | All traffic to the active location | Users to the nearest location |
Scalability | Limited to active location capacity | account / api services can be scaled out |
Interruption during failover | Brief interruption (load balancer routing) | Locations are already active |
Database | Customer’s responsibility; must be redundant | Written to a single database |
Summary of Scope of Responsibility
Within the scope of service: Installation of the application layer, keeping it running in the active and passive locations, and failover routing via load balancing.
Customer’s responsibility: Setting up and operating database redundancy, replication and DR (disaster recovery) processes. The company does not accept any responsibility in this regard.
