Skip to content
  • Our Product
    • Namazu Elements
      • What is Elements?
      • Why open source?
      • Docs
        • Namazu Elements in Five Minutes or Less
        • RESTful APIs Library
        • Security Model
        • Accessing the Web UI (CMS)

    Our Product

    A logomark with three layered rhombuses adorning the lettermark that says Elements in bold all-caps sans-serif letters.
    • What is Namazu Elements? Discover our easy-to-use backend network solution built for online games. Rapidly enables full-scale multiplayer games or online solo adventures.
    • Why open source? Is there a truly open source server backend for connected games? There is now. Download and run a local copy of Namazu Elements and try it for yourself.
    Download Namazu Elements

    Get started

    • Quick start Read our Elements 5-minute quick start guide
    • Documentation Read our developer docs for learning more about Elements
    • RESTful APIs A full list of core API specs for working with the Elements framework
    • Security An overview of the server-authoritative security model of Elements
    • Accessing the CMS Manage your game with ease via the Namazu Elements CMS.

    Co-development Reimagined

    • Reduce your costs Would you rather outsource your backend development? Hire Namazu Studios to build your server backend with the power of Namazu Elements.
      Co-dev

    Recent Posts

    • The watercolor-styled Namazu Studios logo over a giant namazu lurking in the depth
      Namazu Studios Featured in San Diego Business Journal
      22 Sep 2025 Press
    • Namazu Elements 3.1 Released – Service Layer Fixes, Secure APIs, and Steam Bug Fix
      22 Apr 2025 Release Notes
  • Case Studies
  • About Us
  • News
  • Services
  • Book a call
namazu-studios-logo
Book a call

Getting Started

  • Namazu Elements in Five Minutes or Less
  • Accessing the Web UI (CMS)
  • CMS Feature Overview

Fundamentals

  • Why You Need a Server (and What “Authoritative” Means)
  • Elements as a Game Runtime
  • Where Your Authoritative Code Runs
  • Lifecycles and Flows

General Concepts

  • Overview
  • Custom Elements
  • Data Models
  • Security Model
  • N-Tier Architecture

Namazu Elements Core Features

  • User Authentication / Sign In
    • What is a User?
    • User Authentication in Elements
    • Auth Schemes
      • Auth Schemes
      • OAuth2
      • OIDC
  • Features
    • Applications
    • Sessions
    • Users and Profiles
    • Digital Goods
    • Progress and Missions
    • Progress and Missions (3.4+)
    • Leaderboards
    • Matchmaking – Comprehensive Guide
    • Followers
    • Friends
    • Receipts
    • Reward Issuances
    • Save Data
    • Metadata
    • Metadata (3.4+)
    • Queries
    • Web3
      • Wallets
      • Vaults
      • Omni Chain Support
      • Smart Contracts
        • Smart Contracts
  • Queries
    • Advanced Operators
    • Object Graph Navigation
    • Boolean Queries
    • Base Query Syntax
  • Advanced Operators
    • .name
    • .ref

Your Game Code - Adding Custom Elements

  • Custom Code Overview
  • Windows Setup
  • Mac OS Setup
  • Ubuntu Linux Setup
  • Element Anatomy: A Technical Deep Dive
  • Introduction to Guice and Jakarta in Elements
  • Structuring your Element
  • Events
  • Packaging an Element with Maven
  • Deploying an Element
  • Preparing for code generation
  • Properties
  • Websockets
  • RESTful APIs
  • Direct MongoDB Access (3.5+)

Configuration

  • Matchmaking – Comprehensive Guide
  • Direct Database Access and Batch Configuration
  • Batch Samples
    • Mission Upload Bash Script Sample
    • Item Upload Bash Script Sample

RESTful APIs

  • Importing into Postman
  • RESTful APIs Library
  • Swagger and Swagger UI

Add-Ons

  • Custom Elements
    • Crossplay
      • Namazu Crossfire (Multiplayer)
      • Deploying Namazu Crossfire in your game
  • Game Engines
    • Unity
      • Elements Codegen
      • Crossfire
    • Roblox
      • Roblox Overview
      • Secure Player Authentication & Registration
      • Global Matchmaking
      • Roblox Security Best Practices

Troubleshooting

  • Common Issues with Docker
  • Local SDK
    • Unable to deploy application : dev.getelements.elements.sdk.exception.SdkElementNotFoundException
    • Could not load class : java.lang.NoClassDefFoundError
  • Namazu Elements Community Edition
    • Common Issues with Docker
    • Unable to deploy application : dev.getelements.elements.sdk.exception.SdkElementNotFoundException
    • Running in the IDE
      • Exception in monitor thread while connecting to server localhost:27017
      • Could not deployAvailableApplications Jetty server Failed to bind to /0.0.0.0:8080 Address already in use

Releases

  • 3.6 Release Notes
  • 3.5 Release Notes
  • 3.4 Release Notes
  • 3.3 Release Notes
  • 3.2 Release Notes
  • 3.1 Release Notes
View Categories
  • Home
  • Docs
  • Fundamentals
  • Why You Need a Server (and What “Authoritative” Means)

Why You Need a Server (and What “Authoritative” Means)

Est. read time: 1 min read

If you’re coming from a client-only background (Unity, Unreal, web apps, etc.), it’s natural to ask:

Why do I need a server at all? Can’t the game just do this itself?

For small prototypes, the answer is often “yes.” For live games with progression, rewards, purchases, or leaderboards, the answer quickly becomes “no”, and here’s why:


The Core Problem: Trust #

A game client runs on the player’s device. That means the player controls it.

They can:

  • modify memory
  • intercept or replay network calls
  • fake events
  • patch or replace client code

If the client is responsible for deciding:

  • whether a mission was completed
  • how many points were earned
  • whether a purchase is valid
  • whether a reward should be granted

…then those systems are not secure.


What a Server Does #

A server exists to act as an authoritative source of truth.

Authoritative code:

  • runs in an environment the player cannot modify
  • validates what actually happened
  • makes final decisions about permanent game state

In practice, this usually means:

ActionResponsibility
Player inputClient
Rendering / UIClient
Game rule validationAuthoritative Code
Progression updatesAuthoritative Code
Rewards & inventoryAuthoritative Code
LeaderboardsAuthoritative Code
PurchasesAuthoritative Code

The client requests changes. Authoritative code approves and applies them.


Where Does Authoritative Code Run? #

In many systems, authoritative code runs on your own game server. Elements fully supports a server to server model.

However, Elements also supports another option: Custom Elements.


Do I Always Need My Own Server? #

It is completely optional, and dependent on the architecture of your game.

Elements supports Custom Elements, which are your own server-side applications that run inside Elements itself.

A Custom Element:

  • runs in a trusted, server-side environment
  • can access Elements systems directly (users, inventory, progress, leaderboards, direct db access)
  • executes authoritative logic
  • cannot be modified by players

This means you have two valid deployment models:

  1. External Game Server – your own backend service calls Elements APIs (still authoritative!)
  2. Custom Elements – your authoritative code runs inside Elements

Many teams use both, especially when their teams are more familiar with modeling the game logic in their preferred game engine (for example, running Unity in headless mode).


A Simple Mental Model #

Think of Elements as both a platform and a runtime:

That authoritative step may live:

  • on your own server, or
  • inside Elements via a Custom Element

Why Elements Assumes Authority #

Elements manages high‑trust systems:

  • digital goods and inventory
  • reward issuance
  • mission progression
  • leaderboards
  • scheduling and time‑based content

These systems require:

  • protection against duplication
  • safe retries (idempotency)
  • consistent timekeeping
  • validation of events

Those guarantees are only possible when changes are applied by authoritative code.


How This Affects the Rest of the Docs #

When the docs say:

  • “server-side”
  • “authoritative”
  • “safe to retry”
  • “idempotent”

They refer to code that runs outside the player’s control — either on your server or inside a Custom Element.

Understanding this mental model will make the rest of the documentation much easier to follow.

What are your Feelings
Still stuck? How can we help?

How can we help?

Updated on February 5, 2026
Where Your Authoritative Code Runs
Table of Contents
  • The Core Problem: Trust
  • What a Server Does
  • Where Does Authoritative Code Run?
  • Do I Always Need My Own Server?
  • A Simple Mental Model
  • Why Elements Assumes Authority
  • How This Affects the Rest of the Docs
  • Documentation
  • Terms of Service
  • Privacy Policy
  • Contact us
  • Linkedin
  • Join our Discord

Namazu Studios LLC is powered by Namazu Elements, an Elemental Computing Inc. product.

Elements
  • Download
  • About Elements
  • Open source
  • Documentation
  • Support
About Namazu
  • Case Studies
  • About Us
  • News
Get in Touch
  • info@namazustudios.com
  • Book a call
  • (619) 862-2890
  • Linkedin
  • Discord

©2008-2025 Namazu Studios. All Rights Reserved.