Coder Social home page Coder Social logo

nakkayev1707 / servicegraph Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 1.69 MB

ServiceGraph is a versatile C# library designed to visualize and analyze service dependencies in both monolithic and microservices architectures. It provides tools to create graphical representations of service interactions, identify circular dependencies, and visualize injected service dependencies.

License: MIT License

C# 78.90% HTML 21.10%
architecture-analysis circular-dependencies dependency-graph microservices recursive-dependencies

servicegraph's Introduction

ServiceGraph

ServiceGraph is a C# library designed to visualize and manage the dependencies between services in a microservices architecture. This tool helps developers and system administrators understand and maintain the complex web of interdependencies in modern software systems.

Features

  • Dependency Visualization: Displays a graphical representation of service dependencies.
  • Circular Dependency Detection: Identify and highlight circular dependencies to prevent potential issues in your microservices architecture.
  • Interactive Graph: Nodes and edges are clickable, providing detailed information about each service and its dependencies.
  • Scalability: Efficiently handles large numbers of services and dependencies.
  • Customizable Views: Filter and organize the graph to focus on specific aspects of the system.

Installation

To set up and run ServiceGraph locally, follow these steps:

  1. Clone the repository:
    git clone https://github.com/nakkayev1707/ServiceGraph.git
    cd ServiceGraph

Usage

Web Applications:

builder.Services.AddScoped<IYourService, YourService>();
...

// make sure that you are in dev. environment
app.UseServiceGraphUI(builder.Services, new ServiceGraphOption
{
   Namespaces = new []
   {
      "Your.Custom.Namespaces"
   }
});

// or * to include all namespaces 

app.UseServiceGraphUI(builder.Services, new ServiceGraphOption
{
  Namespaces = new []
  {
      "*"
  }
});

UI:

img.png

Contributing

Contributions are welcome! If you have ideas for improvements or find any issues, please clone the repository and submit a pull request. Follow these steps to contribute:

  1. clone the repository.
  2. Create a new branch (git checkout -b feature/your-feature) from master branch.
  3. Make your changes.
  4. Commit your changes (git commit -m 'Add some feature').
  5. Push to the branch (git push origin feature/your-feature).
  6. Open a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contact

For any issues or inquiries, please contact the project maintainer at [email protected].

Topics

C#, Microservices, Dependency Management, Visualization, Interactive Graph

servicegraph's People

Contributors

nakkayev1707 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.