Giter VIP home page Giter VIP logo

devops-test's Introduction

Orbital Witness DevOps Interview Test

Background

Orbital Witness is a building a document ordering and processing system using software-oriented architecture principles.

As a DevOps engineer, you are tasked with improving the engineering efficiency by producing automation tools that provision services in an efficient, predictable and reproducible way.

We use HTTPie in our examples for clarity.

Architecture Overview

                      +-----------------------------------+
                      |                                   |
                      |         Redis Message Queue       |
                      |                                   |
                      +--------^------------------+-------+
                               |                  |
                              (4)                (6)
                               |                  |
+------------+       +---------+---+      +-------v------+
|            |       |             |      |              |
|  Auth API  |       |  Order API  |      |  OCR Worker  | (*n)
|            |       |             |      |              |
+--^------+--+       +--^-------+--+      +--------------+
   |      |             |       |
  (1)    (2)           (3)     (5)
   |      |             |       |
+--+------v-------------+-------v---+
|                                   |
|              Customer             |
|                                   |
+-----------------------------------+

There are 3 distinct services:

  • Auth API - Creates authentication tokens to valid users.
  • Order API - Processes document orders.
  • OCR Worker - Performs Optical Character Recognition (OCR) against documents.

A document order flow is as follows:

  1. A customer authenticates with the Auth API by providing a valid username and password.
  2. An authentication token that is valid for 30 seconds is returned.
  3. Use this authentication token to make a document order request to the Order API.
  4. The Order API submits the order to a message queue for further background processing.
  5. A successful response is returned.
  6. Meanwhile, a OCR Worker processes the order from the message queue by performing OCR against the document.

We use environment variables to configure a service.

Your task

  • Read the documentation for each service. Run and test them to make sure they work as expected.
  • Once you're familiar with the services, use your preferred tools to automate provisioning of a local development environment.
  • Be sure to include external dependencies like Redis and configuration management.
  • In order for a microservices-based architecture to work best, implement a HTTP router in front of the services that routes requests to the correct service. A popular solution is path-based routing:
  • Make your automation available on a public GitHub repository with a README on how to get things started.

Don't worry too much about making this production ready. We may discuss production considerations with you later on.

Bonus (Optional)

devops-test's People

Contributors

jianyuan avatar

Watchers

Andrew Thompson avatar  avatar Matt Westcott 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.