Socket
Socket
Sign inDemoInstall

@scalecube/routers

Package Overview
Dependencies
4
Maintainers
7
Versions
152
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @scalecube/routers

[![Join the chat at https://gitter.im/scalecube-js/Lobby](https://badges.gitter.im/scalecube-js/Lobby.svg)](https://gitter.im/scalecube-js/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)


Version published
Weekly downloads
2
decreased by-84.62%
Maintainers
7
Created
Weekly downloads
 

Readme

Source

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

FAQs

Last updated on 11 Aug 2021

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc