Appearance
Architecture Overview
Verified anchorsArchitecture synthesis
This page is the high-level architecture view. For implementation-level tracing, continue with:
How to read this page
- Treat this page as the platform map.
- Treat the source-map pages as the evidence layer.
- Treat the developer guides as the extension layer.
Architectural intent
NGB Platform is organized as a reusable business-application core rather than as a single vertical product. The platform is built around five cooperating layers:
Hosts
Executable applications that expose or operate the platform, such as API, background jobs, watchdog, and migrator hosts.Contracts, metadata, and definitions
Public DTOs, metadata descriptors, and definition objects that describe catalogs, documents, reports, posting behavior, and UI-facing structure.Runtime orchestration
The execution center that resolves metadata/definitions, validates requests, coordinates workflows, invokes posting/reporting/document services, and returns UI-ready results.Specialized business engines
Accounting, operational registers, reference registers, and audit-related mechanisms that model effects and durable business history.PostgreSQL infrastructure
The concrete persistence implementation, migration packs, SQL/reporting execution, Dapper/Npgsql access, and database-facing readers/writers.
Verified anchors that support this model
The following files directly support the layering picture:
NGB.Runtime/NGB.Runtime.csprojNGB.Runtime/Documents/DocumentService.csNGB.Runtime/Reporting/ReportEngine.csNGB.Runtime/Reporting/ReportExecutionPlanner.csNGB.PostgreSql/NGB.PostgreSql.csprojNGB.PostgreSql/Reporting/PostgresReportDatasetCatalog.csNGB.PostgreSql/Reporting/IPostgresReportDatasetSource.csNGB.PostgreSql/Reporting/PostgresReportSqlBuilder.csNGB.PostgreSql/Reporting/PostgresReportDatasetExecutor.csNGB.Api/NGB.Api.csprojNGB.PropertyManagement.Api/Program.csNGB.Metadata/NGB.Metadata.csprojNGB.Definitions/NGB.Definitions.csprojNGB.Accounting/NGB.Accounting.csprojNGB.OperationalRegisters/NGB.OperationalRegisters.csprojNGB.ReferenceRegisters/NGB.ReferenceRegisters.csproj
Practical reading order
If you want to understand the platform in the same order requests flow through it, read:
If you want to extend the platform, continue with:
What this page intentionally does not do
This page does not try to prove every claim file-by-file. That job belongs to the source-map pages. Here the goal is to make the architecture understandable before you dive into implementation evidence.