Skip to content

Capturing primes and a central server collecting them

Notifications You must be signed in to change notification settings

omersuve/go-parallel-sign

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Parallel Processing with Golang

A TCP server-client app where clients send signed prime numbers, and the server collects unique prime numbers.

Version used

  • Go 1.23.6

How to execute server

go run cmd/server/main.go -max=200

How to execute clients (from multiple terminals)

go run cmd/client/main.go  # Terminal 1
go run cmd/client/main.go  # Terminal 2
go run cmd/client/main.go  # Terminal 3
...

How to test

Test whole system

go test -v ./...

Test individual tests

go test -v ./cmd

go test -v ./pkg/primes
go test -v ./pkg/auth
go test -v ./pkg/pool

Compile binaries and execute (optional)

go build -o server cmd/server/main.go
go build -o client cmd/client/main.go

./server -max=20000

./client  # Terminal 1
./client  # Terminal 2
./client  # Terminal 3
...

About

Capturing primes and a central server collecting them

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages