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
- Middleware (implimented as an sdk) acts as live watcher for the incoming request to an API of a particular microservice from the concerned macroservice.
- The watchmap server runs as a next.js application which recieves anlytics logs from middleware to process the API dependency graph.
- The analytics dashboard and watchmap server make up as next app, the analytics dashboard provide visual presentation of API dependency graph.
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())
...
$ pip install watchmap-django-sdk
MIDDLEWARE = [
...
'watchmap-django-sdk.watchmap_sdk.WatchmapMiddleware'
...
]