
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.
@rxjs-probe/core
Advanced tools
rxjs-probe provides an interface similar to Kubernetes probes using RxJS to detect service health.
rxjs-probe provides an interface similar to Kubernetes probes using RxJS to detect service health.
npm i rxjs @rxjs-probe/core
import { Probe, ProbePerformer } from '@rxjs-probe/core';
import axios from 'axios';
const probe = new Probe({
performer: new ProbePerformer(async timeoutSeconds => {
await axios({
url: 'https://github.com/a179346/rxjs-probe',
timeout: timeoutSeconds * 1000,
validateStatus: status => status === 200,
});
}),
initialDelaySeconds: 3,
periodSeconds: 2,
timeoutSeconds: 1,
successThreshold: 1,
failureThreshold: 3,
});
const probeObservable = probe.createObservable();
probeObservable is an RxJS Observable. You can subscribe to it to get the probe status.
Check the RxJS documentation - Observable for more information.
You can find more examples on how to use rxjs-probe in rxjs-probe-examples GitHub repository.
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
Give a ⭐️ if this project helped you!
Copyright © 2024 a179346.
This project is MIT licensed.
This README was generated with ❤️ by readme-md-generator
FAQs
rxjs-probe provides an interface similar to Kubernetes probes using RxJS to detect service health.
The npm package @rxjs-probe/core receives a total of 7 weekly downloads. As such, @rxjs-probe/core popularity was classified as not popular.
We found that @rxjs-probe/core 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.