All the services developed on top of Light-4J frameworks support client side service discovery, load balance, and cluster natively. So there is no need to put a reverse proxy instance in front of our services like other API frameworks that support only server side service discovery.
Also, light services embed a distributed gateway to address all the cross-cutting concerns in the request/response chain and work with the ecosystem that consists:
- light-oauth2 for security
- light-portal for API management and marketplace
- light-config-server for centralized configuration management
- light-eventuate-4j for eventual consistency based on event sourcing, CQRS and Kafka
- ELK for centralized logging with traceabilityId and correlationId
- Prometheus, InfluxDB and Grafana for metrics
- OpenTracing with Jaeger tracer for distributed tracing and observability
- Consul or Zookeeper for service registry
- Kubernetes for container orchestration
Currently, we only support Java language; however, we are planning to support Nodejs, Rust, and Go in the future if there are enough customer’s demands. For some of our customers, they have some existing RESTful APIs that built on top of other Java frameworks or other languages. We have frequently been asked on how to interact with these services to/from light services and how to enable security, metrics, logging, tracing, discovery, validation, sanitization, etc. on the existing services.
Our answer is to deploy a reverse proxy built on top of the light-4j framework that wraps the existing service.
The reverse proxy has the following features:
- High throughput, low latency, and small footprint.
- Integrate light-oauth2 to protect un-secured services
- Built-in load balancer with multiple data centers and clouds support
- Can be started with Docker or standalone
- Support HTTP 2.0 protocol on both in/out connections
- TLS termination
- Allow adding other handlers. For example, TableauAuthHandler.
- Support REST, GraphQL and RPC style of APIs
- Centralized logging with ELK, traceabilityId, and CorrelationId
- OpenTracing with Jaeger tracer integation
- Collect client and service metrics into InfluxDB or Prometheus and view the dashboard on Grafana
- Service registry and discovery with Consul or Zookeeper
- Manage configuration with light-config-server
To learn how to use this proxy, please refer to
- Getting Started to learn core concepts
- Tutorial with step by step guide for RESTful proxy
- Artifact find release artifacts and deploy options
- Configuration for different configurations based on your situations
- Body Validation skip the body validation on the proxy for better performance
- TableauAuthHandler to handle authentication and get token for Tableau server