Loading [MathJax]/jax/output/HTML-CSS/jax.js
First time here? Check out the FAQ!
2

Would it be possible to port askbot to Google App Engine?
 

I would like to run askbot on GAE. How much work would it be to port it across?

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
updated 14 years ago
bogorman's avatar
21
bogorman
asked 14 years ago

Comments

see more comments

1 Answer

1

Hi there, this will take a while (at least if I start working on it - I've never touched app engine yet).

The main issue is adaptation of code from using Django ORM to GAE datastore. There is something called "django-nonrel" adapter that is in development out there. This may help. Last time I read about it "nonrel" could not "translate" all django orm queries to datastore but could handle the most frequently used queries.

I am gradually removing ORM calls from the application code so that eventually one might re-implement the model layer to work on the engine. IMO the best way to proceed it to first isolate application code (the view functions, templates etc.) from the direct model lookups, rather than just rewrite everything specifically for GAE (because in this case you will end up with two incompatible applications).

If you are interested to run a site - you will not suffer in any way by using old school SQL-based database for quite a while. With careful caching in the application you can sustain very high traffic (~1000-3000 views per second and dozens of posts per second). Most forums, including the best ones are much slower.

non-technical consideration:

App engine is free to the entry level users, which is maybe part of the appeal. Traditional hosting of decent quality costs ~ 10amonth(extracheapofferingsusuallybringmorepainthansavings).sure10 a month will eventually add up, however that expense will be minor compared to the effort maintaining the forum.

The bottom line is that eventually the app will be portable to GAE, but after other important issues are solved and the application is prepared to porting to other data backends.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
updated 14 years ago, answered 14 years ago
link

Comments

Thanks for the info. What hosting site would you recommend? I hear webfaction is good. I am fairly new to this but i have written some small GAE sites before and found it really easy. The read/writes sound good to me this will last me for a long time.
bogorman's avatar bogorman (14 years ago)
Great, that sounds encouraging. Webfaction is a good host, there are quite few others listed on http://djangofriendly.com . An important part is that host supports mod_wsgi and apache. There are other ways to run python webapps, but this one is the best tested for askbot. Thanks!
Evgeny's avatar Evgeny (14 years ago)
see more comments