saguziel / Kryptose

A password manager
2 stars 0 forks source link

Server architecture #9

Closed jnshi closed 9 years ago

jnshi commented 9 years ago

For @AMarcedone, following up on conversations from earlier today: http://berb.github.io/diploma-thesis/original/042_serverarch.html

Right now our server looks kind of like a Staged Event-driven Architecture with one thread-based stage (the one responsible for reading and parsing Requests) and one event-based stage (the one responsible for actioning those Requests).

AMarcedone commented 9 years ago

Thanks =)

jnshi commented 9 years ago

On second thought, the event-based architecture is maybe not such a good idea. It relies on non-blocking IO to work, with events that fire upon completion of reads/writes. Java does have a non-blocking IO library, but the library is more complicated.

jnshi commented 9 years ago

Decided to revert to simple thread-based.