IntroductionΒΆ
Learning Signals
- Level: Beginner / Intermediate
- Time: 5β10 minutes
- Prerequisites: Basic C# Async Knowledge
Nalix is a modular networking framework for .NET 10 providing the high-performance transport, dispatch, and middleware infrastructure needed for real-time TCP and UDP services. It decouples the network stack into focused packages, ensuring that server code, client SDKs, and shared contracts depend only on the layers they need.
π Design PhilosophyΒΆ
Nalix is engineered around five core engineering principles.
-
Unified Model --- Define packets once. Share binary contracts perfectly between server and client assemblies. Zero version drift.
-
Zero-Alloc Hot Path --- Pooled buffers and
FrozenDictionaryregistry lookups eliminate GC pressure during heavy traffic spikes. -
Layered Decoupling --- Strict separation between Transport (Socket Acceptance) and Runtime (Middleware & Logic).
-
Declarative Logic --- Express policies (timeouts, permissions, limits) as C# Attributes. Cached at startup; zero reflection at runtime.
-
Service Efficiency --- Uses the optimized
InstanceManagerfor allocation-free service resolution without standard DI container overhead.
π§ The Mental ModelΒΆ
The journey of a Nalix packet is deterministic and clean.
Client Transport Protocol Bridge Dispatch Channel Middleware Logic Response
Structure CheckΒΆ
For any project beyond a prototype, ensure your assembly structure follows the Contracts Pattern:
graph LR
C[MyApp.Contracts] --- S[MyApp.Server]
C --- Cl[MyApp.Client]
π« What Nalix Is NotΒΆ
::: danger "Wrong Tool for the Job" Nalix is a specialized binary protocol engine. It is not suitable for: :::
-
Web Applications Nalix does not support HTTP/REST, WebSockets, or browser-based networking.
-
Game Logic Engine We provide the data pipeline. Physics, ECS, and rendering stay in your engine of choice (Unity, Godot, Unreal).
-
Message Broker Nalix is for real-time bidirectional communication, not store-and-forward persistence like Kafka or RabbitMQ.
ποΈ Reliability & ScaleΒΆ
Senior Developers Only
If you are building for mission-critical production environments, explore our advanced reliability models.
- Failure Handling β How we handle the unexpected.
- Design Tradeoffs β Why performance leads.
- Reliability Model β High-level production confidence.
π Recommended PathΒΆ
- Architecture β The big picture.
- Quickstart β Build in 15 minutes.
- Production Example β Secure implementation.