Giter Club home page Giter Club logo

grpc_todo_app's Introduction

grpc_todo_app

Same old todo app but with shiny new GRPC

My attempt to learn gRPC. This project uses gRPC-Java as backend and React + TypeScript as frontend while using Envoy proxy for interacting with backend. I tried using grpc-web but I could not make it work with TypeScript ¯\_(ツ)_/¯ hence using one from https://github.com/improbable-eng/grpc-web.

CI

Requirements:

  • JDK >=11
  • Maven >=3.6.x
  • Docker and docker-compose
  • Node and yarn

Running:

First build java package from grpc-todo directory:

$ mvn package

This will create a local docker image of the backend app tagged as localhost/grpc-todo-app.

Then, from root directory, run docker-compose:

$ docker-compose up

This will start gRPC web proxy and java backend server.

Now, from client directory, start webpack server:

$ yarn install && yarn start

If everything is working as expected, yarn should start a browser window @ http://localhost:3000/ and you should see the app.

Current issues:

  • There's a weird bug while deleting a todo item. I think it's related to how protobuf message is serialized and React's diff algorithm deals with it. Probably, better to create non protobuf object for states and props.
  • Need to write tests both on server and client sides
  • Figure out how gRPC-java handles backpressure
  • Instrumentation and observability are missing :|
  • Retryable errors in client side. As of right now, only gRPC-java has experimental support for retries via service config. Check this thread for more information.

grpc_todo_app's People

Contributors

dependabot[bot] avatar infynyxx avatar

Stargazers

 avatar

Watchers

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