Skip to content

GitShaffi/Amazing_Hack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 

Repository files navigation

Dynamic Scheduling Microservice

We have designed a distributing system which transfers batch request to downstream systems based on priority with several constraints like Item is being unique along with merchant id, market place id and data type being other fields for streamlining. Batches are created in a way like it will be containing only a maximum of 10 requests of merchant id per hour.

###Instructions to run:

Execute the files in the following order

  1. ItemBeanListener.java
  2. DownStreamListener.java
  3. App.java
  • App.java is the main application that polls for the changes in the input directory.
  • ItemBeanListener.java is a rabbitMQ in which the processed files are pushed and data will be picked from this queue where its processed based on the target system criteria.
  • DownStreamListener.java is a rabbitMQ for the target system into which the processed data will be pushed.

###Input: Dummy input data is mocked internally in the filepoller.

###TODO: In order to override the constraint of maximum 10 merchant ids per hour, items of the merchants who have exhausted there limit can be swapped with other merchants who have the same item and also have the bandwidth to process the request. This swap is to done with the merchants who have the same item id and belong to the same market place.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages