Reference implementation of my article demonstrating how to implement REST client using Spring Rest Template and Apache HTTP Client which is :
- Optimized in terms of connection pool management along with its externalized configurability
- Resilient to handle errors along with configurable retries
- Easy to monitor Connection Pool as a resource by capturing required connection pool metrics
- Having capability to conditionally access secured REST endpoints
Bootstrapping downstream system a.k.a 'alias-service-api' which is invoked by Spring Rest Template
- Go to
bin
directory of Go - Run this command -
go run <Full Path>\alias-service-api.go