@scalecube/routers
TypeScript icon, indicating that this package has built-in type declarations

0.2.11 • Public • Published

Join the chat at https://gitter.im/scalecube-js/Lobby

This is part of scalecube-js project, see more at https://github.com/scalecube/scalecube-js
Full documentation

Index

Index is responsible for picking the right Item from a Item[].

Default

Pick the first available item. This is very good option for monolith (When all the services are one the same microservice instance) applications built with scalecube

RetryRouter

Pick the first available item, Retry if service not found
period- interval between retry, maxRetry- how much retries before giving up
This is the prefer behavior for browsers

RoundRobin

Pick the next item from a list of available items.
This is very common router for servers

Readme

Keywords

none

Package Sidebar

Install

npm i @scalecube/routers

Weekly Downloads

131

Version

0.2.11

License

MIT

Unpacked Size

21 kB

Total Files

16

Last publish

Collaborators

  • ronen.nachmias
  • idanilt
  • scalecube-ci
  • skolomiiets
  • scalecube-js-user-developer
  • idokatz
  • viktor.pyshnenko