microsplit

command
v0.14.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2026 License: MIT Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL