TomJoy
TomJoy

Reputation: 233

Django application in heroku

Can anyone knows how to use these technologies in social networking site?.i had referred a social networking site came to know that they have use these technologies.If you can prepare a flow and main purpose of using it.it will be helpful for me.The technologies iam planning to use are listed below Thanking you in advance.

Upvotes: 0

Views: 849

Answers (1)

Andrew Gorcester
Andrew Gorcester

Reputation: 19973

I think you are approaching this process backwards. While it's useful to have a general idea of what technologies you want to use for your application when you start, really what you need to do is design your application to fit your needs and your intended use cases and choose appropriate technologies to match. For that reason, it doesn't make much sense to ask someone to explain the purpose of a technology when you need to be choosing the technology to fit the purpose.

I can't comment on how appropriate these technologies are for your application because "social networking site" describes a huge domain of possible applications. You need a very specific idea of what you want to do before anyone can give you advice on how you want to do it.

In general Heroku is a fine platform for all manner of web applications, but some of these choices don't make sense for Heroku. For instance, it does not make sense to use Apache as a web server hooked up to Django in this case. Cedar, Heroku's new technology stack (and the only Heroku stack to support Django) will work much better with e.g. gunicorn. There is no technical reason why Apache plus for instance mod_wsgi couldn't possibly work, if you tinkered with the Heroku buildpack to set it up, but it's not the right choice here.

Heroku has very explicit documentation on how to set up Django with Cedar. This documentation presupposes you are using Postgres instead of MySQL, which in fact is usually a good idea, but you can easily configure it to use any MySQL service you prefer. There are affordable MySQL packages included as Heroku add-ons.

For email, by all means use Heroku add-ons. Do not try to deploy your own mail server on the Heroku stack (while it might technically be possible, again by tinkering with the buildpacks, it's not the point of Heroku).

Load balancing is done automatically by Heroku. If Heroku's load balancing is insufficient for any reason I recommend you contact support directly, because they have always shown interest in addressing any properly identified shortcomings in their service when I have interacted with them.

RabbitMQ is provided as an add-on for Heroku so you should have no trouble, if you are sure you need this service for your application.

Upvotes: 3

Related Questions