Skip to content

Latest commit

 

History

History
41 lines (30 loc) · 1.68 KB

README.md

File metadata and controls

41 lines (30 loc) · 1.68 KB

Task AWS:JMS + SQS, SNS

Create demo applications that implement the following order processing flow.

  1. First application (OrderSender) reads the following order details from console and sends it to the order queue (orders):
  • The user who makes the order;
  • Type of goods for the order – liquids or countable item;
  • The volume of order for liquids;
  • Number of items for countable items;
  • Order total.
  1. Second application(OrderHandler) processes orders with the following rules:
  • If order total greater than some threshold – order should be rejected;
  • Summary information for accepted and rejected logs should be passed to other queues or topics.
  1. Third application(OrderLogger) logs summary about accepted and rejected orders into file.

Used message selectors to split orders for liquids and countable items. Used topics to implement message exchange. Added trigger to S3 bucket that will send message to SQS that file was changed.

ActiveMQ start server: go to the activeMQ folder, then find and go to the bin folder, and then use command:./activemq start

localhost:8161/admin by default credentials are username admin password admin

to stop server use command ./activemq stop

Sources: