Skip to content

lam843/TP3_GRPC

Repository files navigation

Activité Pratique N°3 : Systèmes Distribués avec GRPC

Objective:

  • First part : We want to create a client-server application based on GRPC which exposes a service which makes it possible to consultbank accounts.

  • Second part : Create a GRPC chat server:

      1. Test the Chat server with a GRPC client like BloomRPC 
      2. Create Java GRPC Client 
      3. Create a Python GRPC Client 
    
  • Third part : Create a GRPC GAME server : At startup the server chooses a random number between 1 and 1000 Then the GRPC clients must guess the secret number in competition and the server responds each time with the following eventualities:

      1. Your number is greater
      2. Your number is smaller
      3. BRAVO you won and send the winner to customers
      4. Game over, the winner is ""Winner's number" 
    

===========================================================================

First part:

1 ---> Test the Unary Model using BloomRPC:

image

---> Test With client using blockingStub (mode synchrone):

image

2 ---> Test the Streaming Model using BloomRPC(count to 21):

image

--->The client number 3 got an item every second (Server Streaming) :

image

3 ---> Streaming request from client and got response based on streamed requests (perform stream):

image

---> Perform stream:

image

4 ---> Bi-Directional (fullcurrencystream) send un recive a stream:

image

=======================================================================
Second part:

1 --> Create a GRPC Chat server and Test the Chat server with a GRPC client like BloomRPC :

Typing user name BloomRPC:

image

Display who is on chat (Server) :

image

Sending a message :

image

Display who sent a message (server) :

image

display messages BloomRPC :

image

2 -->Create Java GRPC Client :

Java Client :

image

Server displaying:

image

3. Create a Python GRPC Client :

The Server:

image

java client:

image

Python Client:

image

=======================================================================

Third part:
Test with BloomRPC (who wins):

image image

About

Systèmes Distribués avec GRPC

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published