richard-webb-dev / werewolves-site

Small early stages project of a simple part game
0 stars 0 forks source link

Convert to multi threaded application: Convert from WGSI APACHE, lose Django/swampdragon? #23

Open richard-webb-dev opened 8 years ago

richard-webb-dev commented 8 years ago

Currently only using Django due to Swampdragon, but Swampdragon is only useful because of Django models.

It's tempting to scrap all of it and just go Tornado. Otherwise I need to start looking at using the models with push updates.

richard-webb-dev commented 8 years ago

Single threaded application evidently horrible when requesting update during game loop being busy - it completely locks out for many seconds if in the middle of an operation.

Not sure why the webserver is particularly slow for its execution though, might just be its limitations. This means losing swampdragon.

Multi-threading would be a headache for atomicity/consistency of the data. Linked issues:

24

26

richard-webb-dev commented 8 years ago

~11 hours 2 hours investigation 3 hour understanding 6 hour implementation