High Availability
Overview
High Availability (HA) keeps TAKAKRYPT services running even when one of the servers (nodes) has a problem.
It connects several nodes into a single cluster and syncs data between them automatically, so services keep running and data stays consistent across all nodes.
HA gives you these benefits:
- Services stay available when one node has a problem.
- Data is duplicated across nodes.
- You can grow the system step by step by adding nodes.
- Services recover faster.
High Availability Architecture
TAKAKRYPT uses a cluster: several connected nodes that work together as one system.
Every node runs the same services and can receive and process data. When data changes on one node, the change is sent to the other nodes, so they all stay in sync.
┌──────────────┐
│ Client │
└──────┬───────┘
│
▼
┌──────────────────────┐
│ Gateway │
│ Load Balancer │
└─────────┬────────────┘
│
┌──────────────────┴──────────────────┐
│ │
▼ ▼
┌───────────────────┐ ┌───────────────────┐
│ Node A │ │ Node B │
│ Primary │ │ Secondary │
├───────────────────┤ ├───────────────────┤
│ Authentication │ │ Authentication │
│ Cryptography │ ◄──────────► │ Cryptography │
│ Tokenization │ Replication │ Tokenization │
│ Data Masking │ │ Data Masking │
│ Lock Management │ │ Lock Management │
│ Backup │ │ Backup │
│ Notification │ │ Notification │
├───────────────────┤ ├───────────────────┤
│ Dispatch Service │ ◄──────────► │ Dispatch Service │
│ JetStream Storage │ │ JetStream Storage │
└───────────────────┘ └───────────────────┘
Main Components
1. Gateway
The Gateway is the main entry point for users and external applications. It forwards requests to the right services and gives access to cluster management.
2. Backend Services
Backend Services run TAKAKRYPT's core functions, such as:
- Authentication
- Cryptography
- Lock Management
- Tokenization
- Data Masking
- Backup
- Notification
3. Dispatch Service
The Dispatch Service connects all nodes in the cluster and passes data changes between them. It keeps synchronization orderly and consistent.
4. JetStream Storage
JetStream temporarily stores synchronization data. Data that other nodes haven't received yet stays stored and is resent once the connection is back to normal.
Data Replication
Data Replication Concept
Data Replication is the process of synchronizing data between nodes in the cluster.
When data changes on one node, the system records the change and sends it to the other nodes, so all nodes have the same data and configuration.
Replication Flow
The process is as follows:
- Data is saved on the node where the change is made.
- The system creates the data change information.
- That information is sent through the Dispatch Service.
- The other nodes receive and apply the change.
This runs automatically in the background and doesn't affect day-to-day use.
Services That Support Replication
Replication covers several main services, including:
- Authentication
- Cryptography
- Lock Management
- Tokenization
- Data Masking
- Backup
- Notification
This keeps configurations consistent across all nodes in the cluster.
Cluster Topology
Nodes in the Cluster
Each server in an HA setup is called a node. A node can be in one of these states:
- Local Node: the node on which the main services are running
- Connected Node: a node that is connected and active in the cluster
- Down Node: a node that is registered but currently cannot be accessed
Cluster Health
The system shows the cluster condition based on the status of its nodes:
- Healthy: all nodes are connected and running normally
- Degraded: some nodes are experiencing disruptions, but the services are still running
- Unhealthy: most nodes are unavailable