wearefx / nestjs-leader-election Goto Github PK
View Code? Open in Web Editor NEWA quasi-Raft Consensus module for when running multiple instances of NestJs and a single instance is required to be elected as Leader. (NodeJs, TypeScript, Redis)
A quasi-Raft Consensus module for when running multiple instances of NestJs and a single instance is required to be elected as Leader. (NodeJs, TypeScript, Redis)
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
Warning
These dependencies are deprecated:
Datasource | Name | Replacement PR? |
---|---|---|
npm | @types/cron |
|
npm | @types/prettier |
|
npm | handy-redis |
These updates are currently rate-limited. Click on a checkbox below to force their creation now.
prettier
, @types/prettier
)@types/jest
, jest
, ts-jest
)node
, @types/node
)uuid
, @types/uuid
)These updates have been manually edited so Renovate will no longer make changes. To discard all commits and start over, click on a checkbox.
@commitlint/cli
, @commitlint/config-conventional
, @commitlint/prompt-cli
)@typescript-eslint/eslint-plugin
, @typescript-eslint/parser
)These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
prettier
, @types/prettier
)@types/jest
, jest
)@commitlint/cli
, @commitlint/config-conventional
, @commitlint/prompt-cli
)@typescript-eslint/eslint-plugin
, @typescript-eslint/parser
).gitlab-ci.yml
.yarn/sdks/eslint/package.json
.yarn/sdks/prettier/package.json
.yarn/sdks/typescript/package.json
package.json
@nestjs/common 8.0.6
@nestjs/config 1.0.1
@nestjs/schedule 1.0.1
handy-redis 2.2.2
rxjs 7.3.0
uuid 8.3.2
@commitlint/cli 13.1.0
@commitlint/config-conventional 13.1.0
@commitlint/prompt-cli 13.1.0
@fxd-dev-util/eslint-config-base 1.0.0
@types/cron 1.7.3
@types/jest 27.0.1
@types/node 16.3.3
@types/prettier 2.3.2
@types/uuid 8.3.1
@typescript-eslint/eslint-plugin 4.31.0
@typescript-eslint/parser 4.31.0
eslint 7.32.0
eslint-import-resolver-node 0.3.6
eslint-plugin-eslint-comments 3.2.0
eslint-plugin-import 2.24.2
eslint-plugin-promise 5.1.0
husky 4.3.8
jest 27.1.1
lint-staged 11.1.2
prettier 2.4.0
ts-jest 27.0.5
typescript 4.3.5
node ^14.0.0
I'd love to include this package in my project it looks great, could you add the license file to the repo so it's properly licensed for use?
There's been lots of activity since the initial release of this package. Most of which seems to be security updates, along with a node engine update.
Are there any plans to deploy a new version of this package?
https://git.fxdigital.uk/open-source/nestjs-leader-election/-/pipelines
Not that it's a huge issue, but CI runs twice for the same commit. For example, 0a6dbcdb
has two pipelines and 9b74b533
has two pipelines.
Currently, the heartbeat interval time is set as a constant at 500ms
but each implementation might be different.
The leader checking random interval could be configured in a custom way too, as having more nodes can mean a longer term per each node.
Currently when a new node comes online it calls an election and wins even if the existing leader is online.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.