Skip to content

Latest commit

 

History

History
49 lines (35 loc) · 1.25 KB

File metadata and controls

49 lines (35 loc) · 1.25 KB

API Gateway

This service acts as an API Gateway using YARP (Yet Another Reverse Proxy) to route traffic to various microservices.

Features

  • Routing API requests to appropriate microservices
  • Distributed tracing with OpenTelemetry
  • Metrics collection with OpenTelemetry
  • Integration with Jaeger for visualizing traces

Configuration

OpenTelemetry

The application is configured to export telemetry data to Jaeger. The configuration is managed through:

  1. Environment variables:

  2. Application settings (appsettings.json):

    "OpenTelemetry": {
      "ServiceName": "ApiGateway",
      "EnableConsoleExporter": false,
      "OtlpExporter": {
        "Endpoint": "http://localhost:4317",
        "Protocol": "Grpc"
      }
    }

Running the Application

Docker Compose

cd ApiGatewayApp
docker-compose up

After starting, you can:

Production Deployment with Render.com

This application includes a render.yaml Blueprint file for easy deployment to Render.com.