Code Monkey home page Code Monkey logo

demo-grpc-locations's Introduction

gRPC Locations

Example implementation of a location reporting system based on gRPC and protocol buffers. Clients send diff based location data in binary streams. The server lists them and marks the stalled ones.

Part of an interview proces with Balena (2020).

Building

yarn install
yarn build

Testing

yarn test

Debugging

DEBUG=drones:*

Docker

docker build -t tob/grpc-drones .
docker run tob/grpc-drones

CLI

Server

$ DEBUG=drones:* node build/server.js

Client

$ DEBUG=drones:* node build/client-cli.js

Config

There's no config file, but the following can be adjusted:

  • Server.pruneLocationsAfterSec
  • Client.updateDiffIntervalSec
  • Client.updateFullIntervalSec
  • defaultRpcUrl
  • defaultHttpPort

demo-grpc-locations's People

Contributors

tobiaszcudnik avatar

Watchers

 avatar  avatar  avatar

demo-grpc-locations's Issues

Upgrade to @carnesen/[email protected]

Hi @TobiaszCudnik . Thank you so much for being an early adopter of @carnesen/cli. We just put out a huge new release, v0.5.0. On the plus side, the library is now thoroughly documented online and in the source code, and we made an online examples page too. Unfortunately for this project though, 0.5.0 has a lot of breaking changes in the API versus your version 0.3.0. We really appreciate you taking a chance on our relatively-obscure library and would like to reward that by offering our assistance in performing the 0.3.0--> 0.5.0 upgrade. Just say the word and we'll submit a pull request for it. It would be a good chance to learn about grpc too! If we don't hear from you on this issue, we'll close it in a few weeks.

Cheers,
Chris Arnesen for the @carnesen/cli team

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.