-
Notifications
You must be signed in to change notification settings - Fork 0
/
cache-service-local.yml
44 lines (40 loc) · 1.52 KB
/
cache-service-local.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Last update July 2023 (rlh)
server:
port: 8351
eureka:
instance:
preferIpAddress: true
instanceId: ${spring.application.name}:${random.int}
hostname: cache-service
client:
healthcheck:
enabled: true # this must be true because it is a service
serviceUrl:
defaultZone: http://eureka-service:8070/eureka/
registerWithEureka: true
fetchRegistry: false # this must be false because it is a service
spring:
cloud:
loadbalancer:
ribbon:
enabled: false
stream:
kafka:
binder:
brokers: http://kafka:9092
data:
redis: # Redis is used by storing in memory all the request per user and therefore
# limit to a maximum request per user per second(e.g., 10 request per second)
connect-timeout: 2s # time limit for a connection to be established
host: ailegorreta-redis # local default Redis host
port: 6379 # local default Redis port
timeout: 1s # Time limit for a response to be received
# Back-end microservices
microservice:
param:
provider-uri: http://gateway-service:8072/param # use the gateway
# provider-uri: http://param-service:8350 # no use gateway, because is backoffice microservice communication
# we prefer to skip the gateway. Depends on system security
# Testing what environment we are using
cache:
greeting: "Welcome to cache microservice from the config server, 'local configuration'."