# 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="/files/PIUkbS3VsBXbJyjrklYH" 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](/en/getting-started/diarkis-server-template.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.diarkis.io/en/diarkis-server.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
