Skip to content

Latest commit

 

History

History
40 lines (33 loc) · 1.23 KB

README.md

File metadata and controls

40 lines (33 loc) · 1.23 KB

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