An open API service indexing awesome lists of open source software.

https://github.com/arbitroy/grpc_fall


https://github.com/arbitroy/grpc_fall

Last synced: 11 months ago
JSON representation

Awesome Lists containing this project

README

          

# GRPC Services and Registry

The following folder contains a Registry.jar which includes a Registering service where Nodes can register to allow clients to find them and use their implemented GRPC services.

Some more detailed explanations will follow and please also check the build.gradle file

Before starting do a "gradle generateProto".

### gradle runRegistryServer
Will run the Registry node on localhost (arguments are possible see gradle). This node will run and allows nodes to register themselves.

The Server allows Protobuf, JSON and gRPC. We will only be using gRPC

### gradle runNode
Will run a node with an Echo and Joke service. The node registers itself on the Registry. You can change the host and port the node runs on and this will register accordingly with the Registry

### gradle runClient
Will run a client which will call the services from the node, it talks to the node directly not through the registry. At the end the client does some calls to the Registry to pull the services, this will be needed later.

### gradle runDiscovery
Will create a couple of threads with each running a node with services in JSON and Protobuf. This is just an example and not needed for assignment 6.

### gradle testProtobufRegistration
Registers the protobuf nodes from runDiscovery and do some calls.

### gradle testJSONRegistration
Registers the json nodes from runDiscovery and do some calls.