Skip to content

Latest commit

 

History

History

9.setting-up-and-using-partitions_working

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Setting Up and using Partitions

  • Execute Each Request

http://localhost:8080/customerdetails?fastpassid=800 http://localhost:8080/customerdetails?fastpassid=801 http://localhost:8080/customerdetails?fastpassid=802

Docker for RabbitMQ

docker run -d --hostname local-rabbit --name pluralsight-rmq -p 15672:15672 -p 5672:5672 rabbitmq:3.9.9-management

  • Services

  • Start the fastpass-service, then fastpass-ui and toll-rate

  • For Partition-1 mvn spring-boot:run -Dspring-boot.run.arguments=--spring.cloud.stream.instanceIndex=0

  • For Partition-2 mvn spring-boot:run -Dspring-boot.run.arguments=--spring.cloud.stream.instanceIndex=1

  • For Partition-3 mvn spring-boot:run -Dspring-boot.run.arguments=--spring.cloud.stream.instanceIndex=2

Screenshot 2022-06-09 at 10 31 24 PM

Screenshot 2022-06-09 at 10 31 11 PM

Screenshot 2022-06-09 at 10 29 50 PM


Screenshot 2022-06-09 at 10 33 48 PM

Screenshot 2022-06-09 at 10 33 32 PM

Screenshot 2022-06-09 at 10 33 57 PM