occiware / OCCInterface

OCCI API developer online playground
MIT License
3 stars 1 forks source link

node (& heroku) deployment : support more than one proxied OCCI server simultaneously #2

Closed mdutoo closed 8 years ago

mdutoo commented 8 years ago

by managing a map of server proxies keyed by their URL (rather than a single proxy), saving in user session which one the user currently uses, and (in a perfect world) nicely deleting a proxy on session removal (timeout...) if nobody else still uses it.

(because for now, when one user changes the proxied OCCI server on ex. the heroku deployment, it changes for all other users)

Romathonat commented 8 years ago

Done. However it is not perfect because the storage mechanism for session is the default, which could leads to some memory leaks on the server. A redis storage would be better, unfortunately I am not sure that we can put one on Heroku, so for now it is ok to keep it that way.