Skip to content

Commit

Permalink
Added concurency to all services.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmad45123 committed May 19, 2024
1 parent 17d0e6d commit b93b12f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 2 additions & 0 deletions services/contracts/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ spring.rabbitmq.host=${CONTRACTS_MQ_URL}
spring.rabbitmq.port=5672
spring.rabbitmq.username=guest
spring.rabbitmq.password=guest
spring.rabbitmq.listener.simple.concurrency=1
spring.rabbitmq.listener.simple.max-concurrency=10

spring.cassandra.local-datacenter=datacenter1
spring.cassandra.keyspace-name=contracts_data
Expand Down
3 changes: 3 additions & 0 deletions services/jobs/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ spring.rabbitmq.host=${JOBS_MQ_URL}
spring.rabbitmq.port=5672
spring.rabbitmq.username=guest
spring.rabbitmq.password=guest
spring.rabbitmq.listener.simple.concurrency=1
spring.rabbitmq.listener.simple.max-concurrency=10

spring.cassandra.local-datacenter=datacenter1
spring.cassandra.keyspace-name=jobs_data
spring.cassandra.contact-points=${JOBS_DB_URL}
Expand Down
2 changes: 2 additions & 0 deletions services/payments/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ spring.rabbitmq.host=${PAYMENTS_MQ_URL}
spring.rabbitmq.port=5672
spring.rabbitmq.username=guest
spring.rabbitmq.password=guest
spring.rabbitmq.listener.simple.concurrency=1
spring.rabbitmq.listener.simple.max-concurrency=10

logging.level.root=INFO

Expand Down
4 changes: 1 addition & 3 deletions services/users/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@ spring.rabbitmq.host=${USERS_MQ_HOST}
spring.rabbitmq.port=5672
spring.rabbitmq.username=guest
spring.rabbitmq.password=guest
spring.rabbitmq.listener.simple.concurrency=5
spring.rabbitmq.listener.simple.concurrency=1
spring.rabbitmq.listener.simple.max-concurrency=10
spring.rabbitmq.listener.simple.prefetch=100
spring.rabbitmq.listener.direct.prefetch=200
SECRET_KEY=${USERS_SECRET_KEY}

spring.cache.type=redis
Expand Down

0 comments on commit b93b12f

Please sign in to comment.