Code Monkey home page Code Monkey logo

csv-crm-upload's People

Contributors

dbyington avatar

Stargazers

 avatar

Watchers

 avatar  avatar

csv-crm-upload's Issues

postgresql database

The CSV-CRM uploader needs a Postgresql database to save customer data that is to be sent to the CRM Service.

Acceptance Criteria

  • Able to bring up a docker container to start a Postgres DB
  • The docker container will be initialized with the basic database needed to run the uploader service

RPC signaling of new rows

The CSV streamer needs a method to signal the CRM integrator when it has successfully inserted new customer data into the database.

AC:

  • RPC Server that provides a new data signal method
  • RPC Client to call the new data signal method

CSV streamer

To send customer data to the CRM Service the data needs to be read from CSV files.

AC:

  • read CSV records from file
  • read header row from CSV file
  • read records in such a way that the whole file does not need to be loaded into memory

database access layer

The service needs to be able to insert, query, and update data in the database.

AC:

  • Provide an INSERT method for inserting new rows
  • Provide a SELECT method for retrieving rows now sent to the CRM Service
  • Provide an UPDATE method to update rows successfully sent to the CRM Service

CRM integrator service

Once inserted into the database, customer data will need to be sent to the CRM Service, once.

AC:

  • Accept signal to get newly inserted customer data
  • POST customer data to the CRM Service
  • Update customer data when successfully sent to CRM Service
  • Querying for customer data should not be more frequent that every (configurable) milliseconds
  • Querying for customer data maximum frequency should be 1 second and increase from last empty result set

mock CRM Service

To complete the data pipeline a mock CRM Service REST API will need to accept and respond to POST requests for new data.

AC:

  • Accept POST with a JSON body

Optional:

  • Respond on a random interval
  • Randomly return a 500, after a minimum response time threshold
  • Respond with a 400 if the data has already been sent

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.