maxrohleder / AdvancedMI

Contains source code for the Advanced Medical Imaging Seminar in SS 2020. The goal is to conceptualize, prototype and pitch ideas related to clinical communications.
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

rethink design #20

Open maxrohleder opened 4 years ago

maxrohleder commented 4 years ago

Does the queue need to be stored on database or can it be handled by backend local storage?

--> Reduce the number of database read/writes drastically.

Karl-Heinrich commented 3 years ago

I am unsure as to what you mean by local storage. Local storage is implemented on the client side, by the browser. Do you mean something like a session cache? We then could either build our own or use something like redis.

maxrohleder commented 3 years ago

Sorry for the term local storage. I meant to store the queue only temporarily as a variable in the servers process memory. The positions change every couple of minutes and with the current implementation all changes are propagated into the db. There is no long-term storage needed for the queue.

One problem could be multiple instances of the backend service because google implements load balancing. Would have to put them onto a shared memory or something..