Skip to content

A simple service to map microservices and API endpoints to create a dependency graph, can be used to detect Cascading failure in the application. Built over Express.js and utilizes express middlewares/request API.

Notifications You must be signed in to change notification settings

cyboholics/watchmap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

watchmap

A simple service to map microservices and API endpoints to create a dependency graph. Built over Express.js and utilizes express middlewares/request API.

The High Level Design

  1. Middleware (implimented as an sdk) acts as live watcher for the incoming request to an API of a particular microservice from the concerned macroservice.
  2. The watchmap server runs as a next.js application which recieves anlytics logs from middleware to process the API dependency graph.
  3. The analytics dashboard and watchmap server make up as next app, the analytics dashboard provide visual presentation of API dependency graph.

Expressjs SDK

In your server, add these lines

$ npm i @cyboholics/watchmap-js-sdk
import express from 'express';
import watchmap from '@cyboholics/watchmap-js-sdk';
...
const app = express();
app.use(await watchmap())
...

Django SDK

$ pip install watchmap-django-sdk
MIDDLEWARE = [
     ...
    'watchmap-django-sdk.watchmap_sdk.WatchmapMiddleware'
     ...
]

monitor snapshots

image image

About

A simple service to map microservices and API endpoints to create a dependency graph, can be used to detect Cascading failure in the application. Built over Express.js and utilizes express middlewares/request API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published