This is example used in my talk REST API vs gRPC. Simple example of Bank backend in gRPC with JavaFX notification client
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


This is example code used in my talk REST API vs gRPC.

This is just show case example to demonstrate gRPC and some of it's functionalities. This code shouldn't be used in real production systems.

How do I get set up?

  • Java 1.8 minimum
  • Maven or some IDE from which you can build code

After you download the code just build it and make sure it will compile with your setup

mvn clean install

How to start it?

This example consists of example gRPC Bank Server which expose multiple services and gRPC clients for calling those services.

To Start Bank server run this command

  mvn exec:java

Notifications Console Client

mvn exec:java -Dexec.args="1"
mvn exec:java -Dexec.args="2"

Notifications JavaFX client

mvn exec:java

Transfer money from account 1 to account 2

mvn exec:java

To request transfer run this command

mvn exec:java