MOONBIT · SERVICE FRAMEWORK
moonzero
One config document becomes a service that is already running: an application, the middleware it asked for, and an answer on a port.
moon add moonbitstack/moonzero
MOONBIT · SERVICE FRAMEWORK
One config document becomes a service that is already running: an application, the middleware it asked for, and an answer on a port.
moon add moonbitstack/moonzero
01 / THE PATH
Every hop is a package you can open. The rail on every page is this same line.
02 / WHAT IT CARRIES
Six areas, one dependency, and a package behind each of them.
REST and zRPC on one h2c, each with the interceptor chain it was configured with.
14packages02A breaker, an adaptive shedder and three limiters, all reading the clock you hand them.
5packages03Round robin, weighted, or power of two choices over each instance's measured load.
10packages04One document, checked at load, with every default written down where you can read it.
10packages05Cache aside with one load per key, redis behind the same contract, SQL behind another.
10packages06Stop and drain on a signal, log a request, trace it, and run several services as one process.
551public items03 / CONFIGURED, NOT CODED
Name: orders-api
Host: 0.0.0.0
Port: 12000
Middlewares:
Breaker: true
Shedding: true
Gunzip: true
Breaker:
CpuThreshold: 800
read at load · refused if wrong · defaulted if absent