# Diarkis Server

## Overview

To operate a Diarkis server in production, it's necessary to select the appropriate cloud services and customize settings according to requirements. This document provides details about the Diarkis server.

## **Primary Programming Language**

The Diarkis server primarily utilizes Go as its main programming language.

## **Goroutines**

The Diarkis engine processes and manages goroutines internally. In most cases, the application logic does not require the use of goroutines. Functions provided by the Diarkis engine that involve callbacks usually indicate the internal use of goroutines, although this is not always the case.

## **Diarkis Server Cluster and Application Server**

To establish a connection for communication with the Diarkis server cluster, it is necessary to obtain connection endpoints and other required data from the cluster via the HTTP API.

The diagram below illustrates the relationship between clients, the Diarkis server cluster, and one or more application servers.

The Diarkis cluster can consist of any of the following: MARS, HTTP, UDP/RUDP, TCP.

<table data-header-hidden><thead><tr><th width="163">Server</th><th>Description</th></tr></thead><tbody><tr><td>MARS</td><td>A server that is essential in every Diarkis cluster</td></tr><tr><td>HTTP</td><td>Entry point for real-time communication via TCP, UDP/RUDP</td></tr><tr><td>UDP/RUDP</td><td>Real-time communication server via UDP/RUDP</td></tr><tr><td>TCP</td><td>Real-time communication server via TCP</td></tr></tbody></table>

<figure><img src="https://3799879693-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FryZ6XqKeHRZxcxMovWdn%2Fuploads%2F71L0aHG70nlOIKSFMr18%2Fdiarkis_cluster_diagram.jpg?alt=media&#x26;token=5a61c9b4-e168-4695-aed8-f2d69703b36b" alt=""><figcaption><p>server cluster diagram</p></figcaption></figure>

These server configurations can be easily started by utilizing the Diarkis server template.

[diarkis-server-template](https://help.diarkis.io/en/getting-started/diarkis-server-template "mention")
