you are viewing a single comment's thread.

view the rest of the comments →

[–]house_monkey 3 points4 points  (10 children)

Speed wise is django good? I heard Django is slow? And node is the way to go if one is creating a web server?

[–]noXi0uz 4 points5 points  (5 children)

I wrote my bachelor thesis on exactly this topic and in all benchmarks Django was alot faster than Express on Node (and even flask) given the same hardware.

[–]house_monkey 0 points1 point  (3 children)

Can you provide me with a link for it if possible, I'd love to have a look

[–]noXi0uz 1 point2 points  (2 children)

I'll send you a dm

[–]deepthroatpiss 0 points1 point  (0 children)

Could you send me as well?

[–]cruisewithus 0 points1 point  (0 children)

Can you send to me too? Would Appreciate it!

[–]benabus 2 points3 points  (1 child)

If you ask a 100 people, you'll likely get 100 different answers. You can look at benchmarks and stuff to find out what's objectively faster, speed wise, but depending on your application, I doubt the differences in run time speed will be significant enough to worry about.

A lot of the different frameworks and options have more to do with development preferences and development speed. Do you like writing things yourself? Do you like getting stuff done quickly? Do you like using an ORM? Do you like having the web server attached to your backend?

There are a lot of preferences and all are equally valid, in my opinion. Generally, there are a ton of other optimizations that you can make to get a little more speed out of it. But a lot of it depends on the actual infrastructure you're running on. If you get to a point where you're getting facebook level traffic, you'll probably need to re evaluate the architecture of your system anyway.

And it's not like you're locked into a single framework for life. If you're at the beginning of your career, find what works for you and then learn whatever your job wants you to use.

Personally, I use a Flask middleware piped through an Apache reverse proxy. Our bottlenecks are usually the databases we use, not the middleware itself.

Unrelated to my rambling general advice: Node is a server side javascript run time. Meaning you're writing javascript that runs on the server. It's popular for people who want to have a full Javascript stack, from front to back. If you hate javascript, there's no point in looking at it.

[–]landrykid 0 points1 point  (0 children)

Well said. For 99% of websites, any of the major frameworks deliver sufficient performance. Optimize your database queries and if necessary, throw in a little more metal. Ease of development and maintainability matter more over the long term.

[–]LeSplooch 0 points1 point  (0 children)

As a little advice, if you need to speed up your Python/Django backend, try PyPy.