8000 GitHub - jonathanmdr/resilience-http-client: Sample project to explain about resilient patterns for integration distributed services
[go: up one dir, main page]

Skip to content

Sample project to explain about resilient patterns for integration distributed services

Notifications You must be signed in to change notification settings

jonathanmdr/resilience-http-client

Repository files navigation

Sample of Resilience Patterns for Services Integration

Explanations about patterns applied on API, HTTP Client, and Pub/Sub integrations.


Project Structure

example of structure

Upping The Development Environment

# With docker-compose
docker-compose up -d
# With Make
make up

Restarting The Development Environment

# With docker-compose
docker-compose restart
# With Make
make restart

Downing The Development Environment

# With docker-compose
docker-compose down --remove-orphans --volumes
# With Make
make down

Downloading The OpenTelemetry Agent

make otel-agent

ℹ️ Use the OTEL agent passing the java agent to the VM arguments: -javaagent:.otel-dev/otel.jar

Open Telemetry Environment Variables Configuration

order-api

OTEL_METRICS_EXPORTER=otlp
OTEL_EXPORTER_OTLP_METRICS_COMPRESSION=gzip
OTEL_EXPORTER_OTLP_METRICS_ENDPOINT=http://localhost:4318/v1/metrics
OTEL_TRACES_EXPORTER=otlp
OTEL_EXPORTER_OTLP_TRACES_COMPRESSION=gzip
OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=http://localhost:4318/v1/traces
OTEL_LOGS_EXPORTER=none
OTEL_SERVICE_NAME=order-api

authorization-api

OTEL_METRICS_EXPORTER=otlp
OTEL_EXPORTER_OTLP_METRICS_COMPRESSION=gzip
OTEL_EXPORTER_OTLP_METRICS_ENDPOINT=http://localhost:4318/v1/metrics
OTEL_TRACES_EXPORTER=otlp
OTEL_EXPORTER_OTLP_TRACES_COMPRESSION=gzip
OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=http://localhost:4318/v1/traces
OTEL_LOGS_EXPORTER=none
OTEL_SERVICE_NAME=authorization-api

order-worker

OTEL_METRICS_EXPORTER=otlp
OTEL_EXPORTER_OTLP_METRICS_COMPRESSION=gzip
OTEL_EXPORTER_OTLP_METRICS_ENDPOINT=http://localhost:4318/v1/metrics
OTEL_TRACES_EXPORTER=otlp
OTEL_EXPORTER_OTLP_TRACES_COMPRESSION=gzip
OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=http://localhost:4318/v1/traces
OTEL_LOGS_EXPORTER=none
OTEL_SERVICE_NAME=order-worker

Hosts Dev

Host Description
http://localhost:8080 OpenAPI Order API
http://localhost:8081 OpenAPI Authorization API
http://localhost:8580 Kafka UI
http://localhost:4317 OpenTelemetry GRPC Collector Port
http://localhost:4318 OpenTelemetry HTTP Collector Port
http://localhost:16666 Jaeger
http://localhost:9090 Prometheus
http://localhost:3000 Grafana

Releases

No releases published

Packages

No packages published

Languages

0