Skip to content

ilia-tsyplenkov/word-of-wisdom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Requirements

Design and implement "Word of Wisdom" tcp server:

  • TCP server should be protected from DDOS attacks with the Prof of Work (https://en.wikipedia.org/wiki/Proof_of_work), the challenge-response protocol should be used.
  • The choice of the POW algorithm should be explained.
  • After Prof Of Work verification, server should send one of the quotes from “word of wisdom” book or any other collection of the quotes.
  • Docker file should be provided both for the server and for the client that solves the POW challenge.

Proof of work algorithm

For DDOS protection Hashcash were choosen, since it's complexity can be easiely managed and it requires just one pair of requiest interchange so the overhead is acceptable. This algorithm is also well known in a Go community so many packages implement it.

Launch

## Run the solution in docker-compose environment
make compose-run

## Other commands description
make help

About

Implementation of tcp server with proof DDOS protection

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published