Documentation
¶
Overview ¶
Command microsplit is the runnable demo for the deployable-modules preview. The same binary boots as a monolith (no env vars set) or as a single split unit when `nexus build --deployment X` produces it:
# monolith — both modules in one process nexus build --deployment monolith ./bin/monolith # split — users on :8081, checkout on :8080 talking to it nexus build --deployment users-svc nexus build --deployment checkout-svc ./bin/users-svc & ./bin/checkout-svc
Or run both at once with auto-wiring:
nexus dev --split
All deployment-specific config (port, peers, timeouts) lives in nexus.deploy.yaml — this file stays deployment-agnostic.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package checkout demonstrates a module that *consumes* another module by importing its *Service directly.
|
Package checkout demonstrates a module that *consumes* another module by importing its *Service directly. |
|
Package users is the canonical "owns its data, exposes typed REST" module: a minimal user catalog tagged DeployAs("users-svc") so it can be peeled out into its own binary later.
|
Package users is the canonical "owns its data, exposes typed REST" module: a minimal user catalog tagged DeployAs("users-svc") so it can be peeled out into its own binary later. |
Click to show internal directories.
Click to hide internal directories.