Skip to content

AdamLuptak/user-crd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Simple User CRD application

Architecture

It is console multithread application which can read user input from cli and execute commands in FIFO order There is readWrite lock system which take care of synchronization of critical section. System Allow multiple Readers but when Writer is writing other need to waits. Classic readers writers problem


                                                                                            
                                          Each consumer on separate thread                  
                                                                                            
                                                                                            
                                                +------------+                              
                                                |            |                              
                          +-------+             | Consumer 1 |                              
                          |       |        ---  |            |                              
                          |       |    ---/     +------------+                              
                          |       | --/               .                                     
+--------------+          |       |                   .                                     
|              |          | Queue |                   .                                     
|   Producer   | -------- |       |                   .                                     
|              |          |       |                   .                                     
+--------------+          |       |--\                                                      
                          |       |   ---\      +------------+            -                 
                          |       |       ---   |            |                              
                          |       |             | Consumer n |                              
                          +-------+             |            |                              
                                                +------------+                              
                                                                                            
                                                                                            
                                                                                            

Commands

ADD Command will add new user Constrants: Id and Name muset but unique in table CLI Constrants Every parameter is mandatory

add -name=UserName -id=1 -guid=someGuide 

DELETE ALL Command will delete user table

deleteAll

PRINT ALL Will print table

printAll

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages