GithubHelp home page GithubHelp logo

duplicatefinderservice's Introduction

DuplicateFinderService

A spring boot microservice application that takes in large payload of JSON in the request of the form: [ {"productId": 1, "skuId": a10}, {"productId": 2, "skuId": a10}, {"productId": 3, "skuId": a11}, {"productId": 4, "skuId": a12} ] and find the duplicate products with same skuId. [ {"productId": 1, "skuId": a10}, {"productId": 2, "skuId": a10} ]

The services uses Java8 streaming and functional approach to map and combine the keys.

To run:

git clone https://github.com/ppartha2018/DuplicateFinderService.git cd DuplicateFinderService mvn install -DskipTests java -jar target/DuplicateFinder-0.0.1-SNAPSHOT.jar mvn test

Application available on: http://localhost:8080/DuplicateFinderService

Update: Docker Containerzation is achieved. I have push the container to my hub here: https://hub.docker.com/r/ppartha2018/homework

I also pulled the docker image in my aws ec2 instance and hosted here: http://ec2-54-91-42-115.compute-1.amazonaws.com:8080/DuplicateFinderService

Note:

  1. "skipTests" while mvn install since I have written all the unit test as part of web integration tests, I realize that it could be included in the regular build pipline by using @RestClient Integration test plugin with Spring Boot. For now, please invoke tests separately after starting the application.

duplicatefinderservice's People

Contributors

ppartha2018 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.