Friday, March 27, 2015

Re: Performance of file-based sessions vs database-backed sessions

From what I understand, using file based sessions will work with no problems in production environment. But, you will have a problem in case you need to horizontally scale (have multiple machines serving your app) your system. In this situation, since files from one machine wont be able to access from others, the session engine will not always work.
I'm not sure about performance [in a single machine] compared to database session though.

On Fri, Mar 27, 2015 at 12:14 PM, David Riddle <driddle@gmail.com> wrote:
I am using Django 1.7, and I have read the documentation on the SESSION_ENGINE setting. It is not clear to me what are the advantages and disadvantages of using file-based sessions. Do file-based sessions have better or worse performance than database-backed sessions? Are file-based sessions appropriate for production environments with large amounts of traffic?

Thank you,

David Riddle

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CABX-mpWYMZ9GQqTduk4RoJfagPAbQ9%3DnChkcu0znqQxtxMBoiQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.



--
  
Filipe Ximenes
+55 (81) 8245-9204
Vinta Software Studio
http://www.vinta.com.br

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAA-QWB2Y8YKcZ47M1s%3Dkv1%3Dw2_HHGYEA-tu3xGchS%3Do6gnow%3DQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment