Skip to content

adntgv/kv-storage-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

To run:

docker-compose up -d
make build
./bin/server
./bin/client [cmd] -key=aString -value=aString


// example

./bin/client create -key=name -value=aid

Possible cmds:

  • test

  • create -key=[] -value=[]

  • update -key=[] -value=[]

  • get -key=[]

  • delete -key=[]

  • getHistory -key=[]

  • clear (clear tables)

  • How would you support multiple users?

    • add user.id as foreign key
  • How would you support answers with types other than string?

    • use interfaces and maps
  • What are the main bottlenecks of your solution?

    • single connection to DB, without pool
  • How would you scale the service to cope with thousands of requests?

    • multiple instances with load balancer or queues

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published