syeedalireza/service-mesh-bundle

gRPC-based service mesh for Symfony microservices with service discovery, circuit breaker, and load balancing

Installs: 0

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

Type:symfony-bundle

pkg:composer/syeedalireza/service-mesh-bundle

dev-main 2026-01-31 07:43 UTC

This package is not auto-updated.

Last update: 2026-02-04 05:29:21 UTC


README

gRPC-based service mesh for Symfony microservices with service discovery, circuit breaker, and load balancing.

Features

  • gRPC client/server integration
  • Service discovery (Consul)
  • Circuit breaker pattern
  • Retry with exponential backoff
  • Request timeout management
  • Health check endpoints
  • Load balancing strategies
  • Service registry

Installation

composer require syeedalireza/service-mesh-bundle

Configuration

service_mesh:
    grpc:
        enabled: true
        port: 50051
    discovery:
        provider: consul
        consul:
            host: consul
            port: 8500
    resilience:
        circuit_breaker:
            threshold: 5
            timeout: 60

Usage

// Register service
$serviceRegistry->register('user-service', 'localhost:50051');

// Call remote service with circuit breaker
$response = $grpcClient->call('user-service', 'GetUser', $request);