> For the complete documentation index, see [llms.txt](https://help.diarkis.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.diarkis.io/en/diarkis-server.md).

# 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&amp;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](/en/getting-started/diarkis-server-template.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
