Module · Architecture

Stack, multi-tenant, event-driven and AI-first

Fastify + MongoDB + Angular. Multi-tenant with granular tenants and roles. Event-driven with businessEvents, correlationId, causationId, and eventLedger. Unified MDM, ABAC, Zero Trust, NIST CSF, ISO 28000, observability, and specialized interfaces.

Fastify

API

MongoDB

Canonical persistence

Angular

Operations dashboard

Event-driven

Core

Technical stack

How NexLog OS is built

Fastify

High-performance Node.js framework — minimal request overhead, typed plugins, robust hooks.

MongoDB

Collections in camelCase, indexes by tenant, typed aggregations; TTL for businessEvents and multi-region replica set.

Angular

Unified operations dashboard (Planning Console) with modules for WMS, TMS, OMS, YMS, and Control Tower.

Event-driven

businessEvents with correlationId and causationId; central eventLedger, replay, audit, and asynchronous integration.

Unified MDM

Product, Party, Asset, Location, and Document Master shared — zero duplication across modules.

ABAC · Zero Trust

Attribute-based authorization, federated identity, and zero perimeter — every request independently validated.

Multi-tenant

Tenants, roles and plans

RoleScopeTypical use
SUPER_ADMINPlatformCCX Engineering — not visible to customers.
TENANT_OWNERTenantExecutive account owner; full control over the tenant.
TENANT_ADMINTenantUser, plan and integration administration.
MANAGERModuleOperational manager — exception approval, playbooks.
OPERATORModuleWMS/TMS/YMS operator — task execution.
VIEWERReadRead-only — analysts, auditors.
Plans

From FREE to ENTERPRISE

PlanAudienceLimits
FREETrial and sandbox1 tenant, 1 warehouse, low volume.
STARTERSMB e-commerce1 warehouse, essential modules (WMS + OMS).
PROMid-marketMulti-warehouse, WMS + TMS + OMS + YMS.
ENTERPRISELarge operationInternal multi-tenant, all modules, dedicated SLA.
Event-driven core

Events, correlation, and MDM

businessEvents

Every state transition and relevant operation is a canonical, typed event.

correlationId · causationId

Traces the complete causal chain across events — order → wave → movement → shipment → invoice.

eventLedger

Immutable central ledger; foundation for audit, replay, analytics, and AI training.

Unified MDM

Product Master, Party Master, Asset Master, Location Master, Document Master.

Security

ABAC, Zero Trust, and Disaster Recovery

ABAC

Attribute-based authorization: tenant, role, resource, context — granular enough for every request.

Zero Trust

No trusted perimeter — every call authenticated, authorized, and logged.

NIST CSF · ISO 28000

Practices aligned with international frameworks for security and supply chain management.

Fraud Signals

Fraud signals built into orders, claims, and billing — scored in real-time.

DR · RPO/RTO

Disaster Recovery with measurable objectives; multi-region replication and continuous backup.

Observability

Structured logs, metrics, distributed tracing, and per-tenant dashboards.

Specialized interfaces

Headless by design

App NexLog Driver

Mobile app for drivers: digital POD, tracking, geolocation, OCR.

Kiosk Portaria

Self-service check-in with optional biometrics and embedded LGPD compliance.

Planning Console

Unified Angular app for WMS, TMS, OMS, YMS, Control Tower.

Portal B2B/B2C

Dedicated portals for customers: tracking, self-service, and documents.

API Standards

Conventions contractual

Endpoints

/api/v1/trade-declarations

kebab-case, versioned at /api/v1/.

MongoDB Collections

tradeDeclarations, carbonEntries

camelCase, plural.

TypeScript Classes

TradeDeclaration, CarbonEntry

PascalCase, singular.

Enums

INBOUND · DRY · SUPER_ADMIN

UPPER_SNAKE_CASE.

Why Fastify, MongoDB, and Angular?

Fastify for high-performance API

Supply chain operations generate tens of thousands of requests per hour — picking events, movements, tracking checkpoints, telemetry. Fastify delivers minimal overhead, typed validation via JSON Schema, and robust hooks for observability. CCX has a strong track record with Node.js in production, and Fastify enables NexLog OS to scale horizontally without rewriting layers.

MongoDB as canonical core

Supply chain is a domain with rapidly evolving schemas: new SKU fields, new route attributes, new shipment metadata. MongoDB with camelCase collections enables schema evolution without downtime, supports complex aggregations for Control Tower without a separate DW, and scales horizontally by tenant. Composite indexes on `tenantId` and business keys sustain true multi-tenancy. Automatic TTL purges historical eventLedger.

Angular for operations dashboard

NexLog OS Planning Console is an Angular app — chosen for strong typing, modular architecture, mature tooling for complex forms (WMS, TMS, playbook configuration), and reusable components across modules. Specialized interfaces (NexLog Driver App, Gate Kiosk, B2B/B2C Portal) are headless over the same API, honoring the system's MACH principles.

Frequently asked questions

Common questions

Flexible schema accelerates evolution in dynamic domains. Where transactional ACID is critical (settlement), we use compensation patterns and specific write concerns.
Talk to specialists

Want to discuss architecture with the NexLog OS team?

Fastify, MongoDB, Angular, multi-tenant, event-driven, ABAC, Zero Trust, and observability — ready for deep technical conversation.

Arquitetura — Fastify, MongoDB, Angular, multi-tenant, event-driven | NexLog OS Academy | CCX Company