Giter Club home page Giter Club logo

code-challenge's Introduction

Code challenge

This repo contains 2 entry points.

1. GRPC Server (cmd/grpcserver/main.go)

The grpc server exposes two rpcs:

rpc SaveVLAN (VLAN) returns (SaveVLANResponse) {}
rpc GetVLANs (google.protobuf.Empty) returns (GetVLANsResponse) {}

The first stores the given VLAN in memory in an alphabetically ordered array (by id). The second retrieves the aforementioned array.

2. REST Server (cmd/restserver/main.go)

The REST server exposes a simple gateway to the GRPC server.

Task

The code to achieve the above is intentionally written impractically.

  1. Find and refactor any areas that could be improved.
  2. Add an rpc to the proto definition that allows the retrieval of a single VLAN by id.
  3. Implement the above rpc in our grpc handler & create a gateway REST handler that makes a call to this new rpc (in a similar fashion to the other gateway handlers).
  4. Dockerise and make these services configurable (e.g. ports/addresses/timeouts).
  5. Create kubernetes config to allow this to be deployed to a cluster.
  6. Ensure reasonably production ready (e.g. unit tests).
  7. Document how to run the services.

code-challenge's People

Contributors

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