Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple Backends #15

Open
8 tasks
daknob opened this issue Sep 26, 2016 · 2 comments
Open
8 tasks

Multiple Backends #15

daknob opened this issue Sep 26, 2016 · 2 comments

Comments

@daknob
Copy link
Owner

daknob commented Sep 26, 2016

Currently TorPaste supports a single backend, and that is the local (or mounted) filesystem. Alternatives can include (Document) Databases, Object Stores, etc.

Currently TorPaste can be easily set up in a HA Environment since it does not rely on a single component and more web servers can be started at will. In addition to that, a distributed filesystem can solve the backend problem.

Therefore, ideally, we'd want to implement HA-ready solutions first.

Ideas for backends

  • MySQL
  • PostgreSQL
  • Google Cloud Storage
  • Amazon S3
  • Apache Cassandra
  • Google Cloud Datastore
  • Azure Table Storage
  • MongoDB
@daknob
Copy link
Owner Author

daknob commented Sep 28, 2016

I just pushed some code that makes it very easy to add new backends. In the folder /backends there's an example.py file which you can start editing to create the backend of your choosing. The filesystem.py backend is already implemented and you can use it as an example. I will be updating the main issue here with some suggestions, however feel free to add your own.

@daknob
Copy link
Owner Author

daknob commented Sep 28, 2016

Please note: currently only the filesystem backend is active since this is the only one. As soon as more are available, and hopefully after Issue #10 has been closed, I will add some code to allow the user to select the backend they want.

@j11e j11e mentioned this issue Sep 30, 2016
laura-barluzzi added a commit to laura-barluzzi/TorPaste that referenced this issue Oct 16, 2017
This was referenced Oct 16, 2017
This was referenced Oct 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant