Skip to content

Exercise to make use of read-through pattern by building cache on top of db in GO.

Notifications You must be signed in to change notification settings

kumamk/db-cache-wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Description

Exercise to make use of read-through pattern by building cache on top of db in GO. This is just mimicking of the real world application having persistance db and cache on top of it.

100 data items are populated in the db. 500 concurrent http requests are made. Only 100 db hit are made with rest served from cache.

Pre Requirements

  • GO installed in the system and any supported IDE

Test

# run test
$ go test

# test run data
db query count 100
cache hit count 400
PASS
ok  	db-cache-wrapper	0.986

About

Exercise to make use of read-through pattern by building cache on top of db in GO.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages