Skip to content

PawelK2012/simple-cache-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple cache server

Go

Small library for caching user information to increase databse throughput and availability.

Run it

Simple exec test by typing make test into terminal. This will exec test that is simulating hitting API 1000 times.

The goal is to retrive only 10% of traffic from DB and other 90% from cache. From test logs you can see this is a case and program hits DB only 100 times.

To start server simply type make run and make GET request to http://localhost:3000/user?id=9

Exec code coverage with make coverage command

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors