Doc.networknt.com

Light Proxy Health

WEBFor an API built with light-4j frameworks, it has a health check endpoint exposed for third-party monitoring systems and Kubernetes probes. If http-sidecar is used, we can use the LightProxyHandler for the health check, and it has the option to collect the health status from the backend API. Both HealthGetHandler and ProxyHealthGetHandler share the …

Actived: 7 days ago

URL: https://doc.networknt.com/concern/proxy-health/

Light Health Check

WEBThis is a server health check handler that outputs OK or a JSON object to indicate the server is alive. Normally, it will be used by F5/light-gateway/http-sidecar to

Category:  Health Go Health

Light Consul HTTP Health Check

WEBEvery 10 seconds, # TCP or HTTP check request will be sent. Or if there is no heart beat request from service after 10 seconds, # then mark the service is critical. checkInterval: 10s. # One of the following health check approach will be selected. Two passive (TCP and HTTP) and one active (TTL) # enable health check TCP.

Category:  Health Go Health

Light Health Check

WEBWhen deploying the http-sidecar along with a backend API in the same pod in a Kubernetes cluster, we need to have two health check endpoints injected into the OpenAPI specification on the sidecar. And a special health check handler will be used instead of the standard health check handler in light-4j. /health/${server.serviceId}: get: description: …

Category:  Health Go Health

Light HTTP Sidecar

WEBThe http-sidecar is a combination of light-proxy and light-router to manage the cross-cutting concerns for the incoming and outgoing traffic of backend API in the same pod in a Kubernetes cluster. Package and deployed as a separate module to handle Cross-Cutting Concerns for the main container/service in the same pod.

Category:  Health Go Health

Light Light Portal Authenticator

WEBOne of the essential features of light-oauth2 is its extensibility. When a bank is using an OAuth 2.0 server to authenticate users, it needs to integrate with several user management databases or services. For example, employees will be authenticated with Active Directory via LDAP or SPENGO single sign-on. For retail customers, they will be authenticated …

Category:  Health Go Health

Light Quick Start

WEBThis is the Quick Start tutorial that utilizes the pre-built repository to provide an introduction to MS Chain Services. If you prefer to do a step-by-step setup of MS Chain Services please visit the MS Chain Services Home You will need the following dependencies before starting this tutorial: Java JDK 11 (I prefer OpenJDK but Oracle JDK will do) Maven Git Docker …

Category:  Health Go Health

Light Portal Registry

WEBMost of our users are using Consul for the service registry and discovery in large scale microservices deployment. However, we found several issues with Consul and finally released our light-portal controller to replace Consul as a centralized control panel. The first issue with Consul is the local agent resource utilization and extra setup. If all services …

Category:  Health Go Health

Light Health Check

WEBOnce a service is registered to the controller in the service post endpoint, the controller will allocate a task to send health check requests to the service instance periodically. Depending on the running mode, the health check task will be executed differently. Demo Mode Cluster Mode Register In this mode, once a service is registered, a TaskDefinition …

Category:  Health Go Health

Light Build Systems and Dependency Management

WEBDependency Management. Each release of Light-4j provides a list of dependencies that it supports. In practice, you do not need to provide a version for any of these dependencies in your build configuration but only light-4j version. When you upgrade Light-4j itself, these dependencies are upgraded as well in a consistent way.

Category:  Health Go Health

Light OpenAPI Generator

WEBThis generator is based on the OpenAPI 3.0 specification, and it is a very new specification that is supposed to replace Swagger 2.0 specification. It has some significant changes to enhance the spec definition and simply the validate with only JSON schema. In my opinion, it is much easier to use, and the implementation is much simpler than Swagger 2.0.

Category:  Health Go Health

Light Eco System

WEBLight is an eco-system that support microservices on the cloud. There are several types of the components as part of the platform. Cross-cutting concerns Audit Balance Body parser Client Cluster Config Consul Correlation Cors Dump Exception Handler Header Health Info Limit Mask Metrics Registry Sanitizer Security Server Service Status Switcher …

Category:  Health Go Health

Light Light OAuth 2.0 Services

WEBIn the previous step, we have started the consul server locally, now let’s start the light-oauth2 services as they are part of the portal. We will start more services later on, but here we use the light-oauth2 services to demo the process. We cannot use the docker-compose-oauth2-mysql.yml in light-docker as the configuration there is not using the consul registry.

Category:  Health Go Health

Light Multi Static Handler Chains

WEBIn this case, our microservice is supporting two request paths; one is a GET call at the /test endpoint and the other a post call on the /v2/health endpoint.. To expand on the execution that will occur when calling the /test endpoint, we can see that it first references the secondBeforeFirst chain, followed by the handler named third.So ultimately the call will be:

Category:  Health Go Health

Light Consul Client

WEBConsul is a service registry implementation that uses HashiCorp Consul as a registry and discovery server. It implements both registry and discovery in the same module for Consul communication. The server module is responsible for registering itself during startup and deregistering during shut down. In some cases, if the server crashes, there is no chance …

Category:  Health Go Health

Light Specification Endpoint

WEBThe OpenAPI 3.0 specification can be found in the resources/config folder in the light-controller repository. Get All Services paths: '/services': get: summary: Query

Category:  Health Go Health

Light Test Cloud OAuth 2.0 Provider Deployment

WEBIn the previous form authentication local tutorial, we have deployed the light-oauth2 services on the local Ubuntu desktop along with light-router to serve the lightapi.net and signin.lighapi.net single-page applications. In this tutorial, we are going to deploy the same configuration to the test cloud so that our developers can utilize the instance for …

Category:  Health Go Health

Light High Availability

WEBRegister and deregister We are using Kafka streams for the high availability implementation. It is recommended that we have 3 or 5 instances running so that workload can be migrated within them if one or two instances are not available. It is very easy to sync the register and deregister info between instances. Any node that receives a register request will send a …

Category:  Health Go Health

Light Local Cluster

WEBIn most situations, the light-scheduler will be running in a cluster mode. For developers, chances are you need to run the local application in cluster mode to test some use cases. To do that, we will give you the option to start three nodes from a docker-compose in the command line. Note: we cannot run multiple instances of the light-scheduler in the …

Category:  Health Go Health