Giter Club home page Giter Club logo

rust-challenge's Introduction

Challenge:


The Technical challenge.

Using Python 3, Go or Rust (unstable), create a process supervisor daemon, that receives JSON commands over HTTP protocol, which control the state of each running application. The following command structures should be handled:

{ 
  command: ["/path/to/executable", "argument1", "argument2"],
  cwd: "/path/to/workdir",
  state: "running"
}
{ 
  command: ["/path/to/executable", "argument1", "argument2"],
  state: "stopped"
}

The supervisor daemon should restart applications when they quit, disregarding the exit code until a "stopped" command is received. There's no expectation that multiple instances of the same command will need to be managed.

It would help us if you could upload your solution to GitHub or Bitbucket, and use git to commit your work in logical pieces as you work through the problem, along with a short message explaining what each change does.

For info the output of the technical challenge will be assessed based on the quality of your solution and use of git to show history of the solution as you evolve through the code to the final solution. We will focus less on the number of features you cover.

Because Rust has quite a steep learning curve, we don't expect you to provide a fully working solution if you choose that language. You should look at the following libraries to get started: https://crates.io/crates/rocket https://crates.io/crates/tokio-process and in particular https://tokio.rs/ . Good introductions to the language can be found at https://doc.rust-lang.org/book/second-edition/ (the official book) and https://github.com/nrc/r4cppp (Rust for C++ programmers).

Go and Python will have all the necessary utilities included in the standard library. Use the latest stable version. If you decide that a working solution in Go is easier after attempting one in Rust, please submit both so we can discuss your approach and the challenges.

rust-challenge's People

Contributors

gary-mansell avatar masangin 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.