Start each of the modules starting with kraker-info-eureka
which is registry for all the services.
http://localhost:9093/users/yogen
Client
-> kraker-info-gateway
-> kraker-info-user-svc
-> kraker-info-bookmark-svc
Start kraker-info-zipkin
modules and tracing information will be at endpoint:
http://localhost:9411/zipkin/
-
Create a .yml file in
kraker-info-config
directory with application name. For example:kraker-info-config/kraker-info-user-svc.yml
-
Update corresponding component using that property with
@RefreshScope
annotation which indicates that the property value injected needs to be fetched for new request. For example:
@RefreshScope
@RestController
public class UserController {
@Value("${env.current:local}")
private String currentEnv;
//...
}
- Once you change the value at
.yml
file, makePOST
request to the endpoint
http://localhost:${port}/refresh
to make sure those values are refreshed for the context.
Redis is being used for caching with client Jedis.
brew install redis
Start Redis-server with:
brew services start redis
If you do not want to start with brew, then you can start Redis server as:
redis-server /usr/local/etc/redis.conf
Check if redis is running:
redis-cli ping
Stop Redis-server:
brew services stop redis
Download and start server to enable caching.
All endpoints are exposed via gateway service. So, swagger-ui for endpoints is at:
http://localhost:9093/swagger-ui.html