Giter Club home page Giter Club logo

datasync-interview's Introduction

Luma Technical Interview

Problem Definition

Luma needs to regularly synchronize appointments from busy hospital to a local database. The hospital exposes an API (encoded in luma-mock.js) that providers data for appointment, providers, facilities and patients.

Interview Task

Create a one way sync engine in NodeJS that will regularly pulls data from the hospital and store it locally. How you sync, how you store date, etc, are all at your discretion.

Sync Engine Requirements

  • Must pull data from LumaMock class (luma-mock.js) at a frequently (every 10 seconds) for a date range
  • Data sync data must go from now to six months in the future
  • Data sync must follow the order - 1. facilities, 2. providers, 3. appointment, 4. patients
  • Data synchronized must be stored in memory and output logs to stdout
  • If data is already known, must provide a way to diff 2 versions where the Hospital version always wins

Dependencies

You’ll be give a started NodeJS project that contains the APIs to LumaMock and SyncEngine. LumaMock exposes the apis to pull data from the hospital.

  • getFacilities
  • getProviders
  • getAppointments(start, end)
  • getPatient (patientId, facilityId). (Args will be available from appointment data)

Deliverables

The code must expose an endpoint where we can start the sync engine and perform a sync.

Bonus

Think of a way to optimize the sync frequency and speed

datasync-interview's People

Contributors

marcelocoliveira avatar adityabansod avatar dependabot[bot] 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.