
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
nats-micro
Advanced tools
This is a typescript-first library that provides a convinient (in 10 lines of code or less!) way to write microservises with out of the box auto discovery, observability and load balancing.
Full interoperability with to-be-released nastcli v0.0.36
that adds nats micro info
, nats micro stats
and nats micro ping
commands
nats micro
protocol thus method interface cannot be discovered over NATS yet.It is extremely simple:
const broker = await new Broker('echo' + process.pid).connect();
await Microservice.create(
broker,
{
name: 'echo-service',
description: 'Simple echo microservice',
version: '0.0.1',
methods: {
echo: {
handler: (text) => text,
// subject is autogenerated according to nats micro protocol
},
'config-change-event': {
handler: console.log,
// subject is manually specified which allows for broadcast
// event bus
subject: '$EVT.config.change',
},
},
}
);
FAQs
NATS micro compatible extra-lightweight microservice library
The npm package nats-micro receives a total of 134 weekly downloads. As such, nats-micro popularity was classified as not popular.
We found that nats-micro demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.