Skip to content

SemyonL95/prometheus-test-task

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TASK

https://dev.azure.com/DataHow/DataHow%20Challenges/_wiki/wikis/Challenges.wiki/1/Backend-challenge

Deploy

  1. Pull project
  2. Run command "make app-server"

Testing

  1. Run command "make run-tests"
  2. After tests, run command "app-down" for stop docker

Additional description

I made in memory storage (set type) to collect ip adresses, i decide to not use external dependecies, because it's little overhead, we can count memory usage per record 4byte + ~3byte(overhead for map is not constant but i found that it take ~3bytes over, based benchamrks in this one topic https://stackoverflow.com/questions/15313105/memory-overhead-of-maps-in-go) = 7; 1073741824(1GB) / 7 = 153391689.143

About

Test task

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 83.1%
  • Dockerfile 12.9%
  • Makefile 4.0%