Code Monkey home page Code Monkey logo

sales-listener's Introduction

Doubts:

  1. Pausing after 50 messages, does it have to re-trigger itself? Because #2 requirement says, all messages should be processed.
  2. Requirement #5, Do we need to log adjustments applied or also the amount of adjustment for a product type as well?

Stories created:

  1. Record sales in the system.
  2. Log Aggregated report of product and it's value.
  3. Apply adjustments to sales
  4. Pause org.jpchase.codingtest.listener after receiving 50 messages
  5. Log report of Adjustment Operators applied

Assumptions:

  1. Aggregated report of products should be for all the sales received till now.
  2. Adjustment Operators needs to be applied to all the recorded sales.
  3. Aggregated report of Adjustment Operators will be for the current set of 50 messages.
  4. All sales messages are in same currency denomination. Here they are p.
  5. For Doubt #1,Assuming Application will only process 50 messages.
  6. For Doubt #2, Assuming only the Adjustments applied need to be logged, not the price that got adjusted.

Prerequisites

  1. Java 8
  2. Gradle 2.12

Build and Test

  1. For building gradle clean build
  2. For running unit tests gradle clean test
  3. For running simulator gradle simulate OR Run SalesNotificationSimulation

sales-listener's People

Contributors

gautampunhani avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.