A fast, lightweight and more productive microservices framework
APACHE-2.0 License
Bot releases are hidden (Show)
Published by stevehu almost 7 years ago
Published by stevehu almost 7 years ago
Published by stevehu almost 7 years ago
This is a minor release to add several enhancements required by different customers. If you are on 1.5.0 release, you don't need to upgrade to this one unless you need features provided by this release. To upgrade from 1.5.0 to 1.5.1, there is one more property added to security.yml
# Enable JWT token cache to speed up verification. This will only verify expired time
# and skip the signature verification as it takes more CPU power and long time.
enableJwtCache: true
With the above config change, you can just change the light-*-4j framework version from 1.5.0 to 1.5.1 in pom.xml of you project.
If you are in version 1.4.x, then it is recommended to regenerate the project or upgrade to 1.5.0 first then upgrade to 1.5.1
Published by stevehu almost 7 years ago
There are several changes in the configuration files and API.
# environment tag that will be registered on consul to support multiple instances per env for testing.
# https://github.com/networknt/light-doc/blob/master/docs/content/design/env-segregation.md
# This tag should only be set for testing env, not production. The production certification process will enforce it.
# environment: test1
# Consul service registry and discovery and default is disable.
# Consul Token for service registry and discovery
# consulToken: the_one_ring
public interface Cluster {
/**
* give a service name and return a url with http or https url
* the result is has been gone through the load balance with request key
*
* requestKey is used to control the behavior of load balance except
* round robin and local first which this value is null. For consistent hash
* load balance, normally client_id or user_id from JWT token should be passed
* in to route the same client to the same server all the time or the same user
* to the same server all the time
*
* @param protocol either http or https
* @param serviceId unique service identifier
* @param tag an environment tag use along with serviceId for discovery
* @param requestKey load balancer key
* @return String url
*/
String serviceToUrl(String protocol, String serviceId, String tag, String requestKey);
}
The dependencies tree can be found here
Published by stevehu about 7 years ago
Published by stevehu about 7 years ago
Published by stevehu about 7 years ago
Published by stevehu about 7 years ago
Published by stevehu about 7 years ago
Published by stevehu about 7 years ago
Published by stevehu about 7 years ago
Published by stevehu about 7 years ago
Published by stevehu over 7 years ago
Published by stevehu over 7 years ago
Published by stevehu over 7 years ago
Published by stevehu over 7 years ago
Published by stevehu over 7 years ago
Published by stevehu over 7 years ago
Published by stevehu over 7 years ago
Published by stevehu over 7 years ago