Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content
This repository has been archived by the owner on Jul 6, 2024. It is now read-only.

bring-shrubbery/golang-rpc-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Golang RPC Example

🥑 Please star or fork this repository if you like it 👀

This is an example of how to setup/use golang's built-in RPC. This example contains a client, scheduler (for primitive load balancing) and two servers, which are contacted by only the scheduler via RPC.

How to run

To run the full example you will need to run 4 processes: client, scheduler and 2 servers. You can start all four processes by running following commands separately (in separate terminal windows) in order as they are presented below:

go run main.go -s1 -p 4001
go run main.go -s2 -p 4002
go run main.go -scheduler
go run main.go

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages