9👍
Code with whatever framework you like best. Then pray your app is popular enough to cause memory problems. We should all be so lucky.
6👍
No, it will absolutely vary wildly from one framework to another.
That said, in most cases the memory footprint of the framework is not the determining factor in site performance nor in selection of a framework. It’s usually more a matter of using the right tool for the job, since each framework has its own strengths and weaknesses.
2👍
It is hard to efficiently say, I would say that PHP frameworks will have mostly a similar footprint, which is typically less than other frameworks such as Rails and Django. But it depends what you include as rails, such as mongrel (rails server proxy). Overall it depends on your code as well however PHP will most of the time give an easier time on the server. (Without any language Bias, I use both PHP and Rails)
- Using Django ORM in threads and avoiding "too many clients" exception by using BoundedSemaphore
- How to run multiple Django sites on Nginx and uWSGI?
- How can I use Django Social Auth to connect with Twitter?
- CSRF is only checked when authenticated in DRF?
- Django form field label translations
2👍
Just for getting some perspective let me report a real case memory consumption using a Smalltalk web framework AIDA/Web.
For running 40+ websites on a single Smalltalk image on a single server it currently consumes 330MB of memory.
- Django Heroku Server Error (500) when I set Debug – False on True it is working fine
- Django F expression on datetime objects
1👍
The only one of those frameworks I have used is CakePHP. I found that it’s not to bad footprint wise however it is a lot more heavy that normal PHP without using a framework obviously but can be a good trade off.
A good comparison of some of the most popular PHP frameworks can be found at http://www.avnetlabs.com/php/php-framework-comparison-benchmarks.
- SSH into Django Shell
- Django – automatically create a model instance when another model instance is created
- Django CMS – check if placeholder is empty
- Project management/build tools for a Django project?
- Editing response content in Django middleware
1👍
Memory is cheap these days. Go with what will make your development easiest (which is usually what your team knows best).
But… In my experience, Django isn’t terribly memory hungry. I’ve run it on my shared host with less than 100 MB of RAM. But my experience is sheerly anecdotal. YMMV. If you go with Django, here are some tips to keep memory usage down.
EDIT: And don’t go with zope if memory footprint is important to you.
- Downloading the files(which are uploaded) from media folder in django 1.4.3
- Django : Syncdb incorrectly warns that many-to-many field is stale
- Django – how can I access the form field from inside a custom widget
- Django – Objects for business hours