Giter Club home page Giter Club logo

kx-problemsolving-balazs's Introduction

KX Problem solving exercise

Problem

We would like you to implement a distributed Service Assembly with a gateway component.

Description

The service assembly will have the following components:

  1. Storage Service - stores in-memory, dummy data that can be accessed through a REST GET call in JSON format
  2. Gateway Service - main process that serves data to clients and tracks the availability of the Storage Services (there could be 0 to 3 available) and has the following REST endpoints
    • /status - returns the status of each Storage Service
    • /data - fetches the dummy data from a Storage Service (eg. with round robin) and returns the data in JSON format

We would like the services to be containerised and run with docker-compose. The services can be implemented using any programming language.

Architecture

Acceptance criteria

  • Please fork this git repository and work inside your own
  • Provide a solution for the described problem and give us the instructions necessary to execute it
  • We would like to have your solution in form of a Pull Request into the main repository
  • What should the Gateway do if no Storage Services are running?

Solution

To start, just us one of the start scripts. It is way over-engineered and at the same time I haven't had too much time to work on it. Thats why the long delay. There are things that could be way more sophisticated. Like the IDE integration and up-to-date checks in gradle. Also the the roundrobin is is bit simpler than it should be.

kx-problemsolving-balazs's People

Contributors

balihb avatar vzsoot 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.