Pattern-matching microservices for Node.js. Register handlers under plain-object patterns, then call them in the same process or over TCP, Unix sockets, named pipes or RabbitMQ, with the same calling code.
// math.jsconstdevis=require("devis");devis.push({role: "math",cmd: "sum"},async({ left, right })=>left+right);devis.listen({host: "127.0.0.1",port: 3030});
The client needs no service name: each service announces its patterns, and Devis routes every call to the one that matches best, in turn when several instances run. Since Devis 4.1: partial matching, automatic reconnection, load balancing and OpenTelemetry traces across services, on top of async handlers, timeouts, graceful shutdown and TypeScript types.
There was an error while loading. Please reload this page.
Most used topics
Loading…
Uh oh!
There was an error while loading. Please reload this page.
You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.