Skip to content

Vojtone/med-rabbit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

med-rabbit

RabbitMQ university task written with Node.js. App serves a hospital orthopedic ward.

Roles in app:

  • Doctor - delegates tasks, receive results
  • Technician - makes med examination, sends results
  • Admin - logs whole activity, sends messages to everybody

The hospital accepts patients with hip, elbow, or knee injury.

Doctor delegates task to any technician who can make examination. Doctor sends information about kind of injury (knee / elbow / hip) and surname of patient (e.g. hip Doe). Results are received asynchronously.

Every Technician can make two kinds of examination (e.g. hip and elbow). Technicians skills are given as arguments. Technician receives task, make examination and sends back results to Doctor. Every task is done by exactly one technician, but not always by the same one.

Admin gets copy of every message and can send info to every doctor and technician.

Communication scheme

Communication scheme

Example test

Run npm install and make sure RabbitMQ server is running.

$ ./admin
$ ./doctor
$ ./doctor
$ ./technician hip elbow
$ ./technician hip knee

Now you can try to send some messages as admin or delegate some tasks as one of doctors.

Error handling was not provided.

About

RabbitMQ app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published