danwent / Perspectives-Server

network notary implementation for the Perspectives project
http://perspectives-project.org
GNU General Public License v3.0
50 stars 13 forks source link

+caching #8

Closed Tie-fighter closed 11 years ago

daveschaefer commented 11 years ago

Hey @Tie-fighter,

Thanks for the patch! I'm taking on some of the Perspectives development so I wanted to reply to you about this.

I did a large refactoring of the Perspectives server codebase and added caching support for memcached, memcachier, and redis. Having caching in python would also be good in case the notary owner is unable to set up a separate caching system. The caching code I wrote is in util/cache.py - it uses an abstract base class. It should be pretty straightforward to covert/move your python caching code to a class there. Would you be interested? If not I can take a stab at it.

Did you happen to do any performance testing with your code? I would be interested to see how much of a boost we can get even with 'just' using python :)

Tie-fighter commented 11 years ago

It has been quite some time, but I am still interested. However I think that it is important to talk about our roadmap and focus. Now there is http://convergence.io/ around (which is also in python) which also features a FF plugin. Maybe focusing on Chrome or Android would be a good idea. Maybe work together with e.g. the TOR project. I think this project still has a lot of potential if handled correctly.

daveschaefer commented 11 years ago

I think releasing for Android would be great too - it's been on my TODO list but I have a few other client updates to finish first. Someone else also started a project that could be used to make Perspectives run on Chrome - https://github.com/von/PerProxy .

Tie-fighter commented 11 years ago

I just now took a look at Orbots sourcecode. They use iptables to redirect requests to their proxy service. I am unsure on what distributions this works though (iptables module, rooted, etc.) ...

I will migrate the code to util/cache.py soon.

https://gitweb.torproject.org/orbot.git/tree/HEAD:/src/org/torproject/android

Tie-fighter commented 11 years ago

Sorry, but I cannot see myself wrapping my head around this soon :/

Please feel free to migrate the code yourself.

daveschaefer commented 11 years ago

Okay, thanks! I will take a stab at this after I finish a couple of client-side features.

daveschaefer commented 11 years ago

In-memory caching has been added in #18 . I'm closing this issue.