Maincloud is now LIVE! Get Maincloud Energy 90% off until we run out!

Server Module Overview

Server modules are the core of a SpacetimeDB application. They define the structure of the database and the server-side logic that processes and handles client requests. These functions are called reducers and are transactional, meaning they ensure data consistency and integrity. Reducers can perform operations such as inserting, updating, and deleting data in the database.

In the following sections, we'll cover the basics of server modules and how to create and deploy them.

Supported Languages

Rust

Rust is the only fully supported language for server modules. Rust is a great option for server modules because it is fast, safe, and has a small runtime.

C#

We have C# support available in experimental status. C# can be a good choice for developers who are already using Unity or .net for their client applications.

Edit On Github