Add C# programming architecture and update tech stack
- Server/architecture.md: full programming architecture reference in C# (.NET 8) covering repo/project structure, three-layer handler→service→repository pattern, multi-service runner (ENABLED_SERVICES env var for N services per box), DI, config (IOptions), gRPC handler pattern, NATS pub/sub, Redis, EF Core + PostgreSQL, Serilog logging, error handling (ServiceResult + exceptions), health checks, testing patterns (xUnit + Moq + FluentAssertions), naming conventions, and hard rules - Server/initial-plan.md: add C# 12 (.NET 8), EF Core, Serilog to tech stack table; add C# to Decided table; reference architecture.md Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -14,6 +14,7 @@ All components are open-source and self-hosted. No licensing fees.
|
||||
|
||||
| Component | Choice | License |
|
||||
|---|---|---|
|
||||
| **Programming language** | **C# 12 (.NET 8)** | MIT |
|
||||
| Primary database | PostgreSQL | PostgreSQL License |
|
||||
| Session store / live game state / rankings | Redis (Community Edition) | BSD 3-Clause |
|
||||
| Async event bus (inter-service fan-out) | NATS | Apache 2.0 |
|
||||
@@ -22,6 +23,10 @@ All components are open-source and self-hosted. No licensing fees.
|
||||
| Client transport | WebSocket | Open standard |
|
||||
| Object storage (CDN origin) | Ceph (via RADOSGW S3 API) | LGPL v2.1 |
|
||||
| Chat cold storage (archive) | Remote MySQL (third-party hosted, unlimited storage deal) | N/A |
|
||||
| ORM | Entity Framework Core + Npgsql | MIT |
|
||||
| Logging | Serilog | Apache 2.0 |
|
||||
|
||||
**Programming architecture** (repo structure, service patterns, DI, config, error handling, testing): see `Server/architecture.md`.
|
||||
|
||||
**Payment processing** is the one mandatory third-party service. Accepting real-money card payments requires PCI DSS compliance and direct card network relationships — this cannot be built in-house. Stripe is the recommended processor (per-transaction fee only, no monthly license). The integration will be **implemented but disabled** until real-money features are ready to launch. All other payment handling logic (wallets, currency conversion, transaction records) is built internally in the Bazaar service.
|
||||
|
||||
@@ -368,6 +373,7 @@ This is not a service but an infrastructure component managed through the Admin
|
||||
|
||||
| Decision | Choice | Notes |
|
||||
|---|---|---|
|
||||
| Programming language | C# 12 (.NET 8) | ASP.NET Core for gRPC + WebSocket; EF Core for ORM; see architecture.md |
|
||||
| Primary database | PostgreSQL | JSONB, concurrency, analytics; over MySQL |
|
||||
| Async event bus | NATS | Lightweight, low-latency, pub/sub + request/reply; Apache 2.0 |
|
||||
| Sync inter-service RPC | gRPC + Protobuf | Schema-first, code-generated, binary |
|
||||
|
||||
Reference in New Issue
Block a user