[Django Channels] Can I use the same redis server as message backend and cache backend the same time?

30 views
Skip to first unread message

CrazyNPC

unread,
Aug 5, 2017, 7:35:16 AM8/5/17
to Django users
I have 2 questions.
1.Can I use the same redis server as message backend and cache backend the same time?
2.Can  I use the same redis server as message backend for different website they both serve by channels ?

Andrew Godwin

unread,
Aug 5, 2017, 8:07:41 AM8/5/17
to django...@googlegroups.com
1. You can - Channels namespaces itself away from most keys you might use (and you add a custom prefix with the "prefix" option).

2. Yes, as long as both sites have a different prefix setting

In both cases I would recommend using separate Redis servers though. They have very low RAM usage and it's good practice to run them separately.

Andrew

--
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...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/b566ca1c-6955-4b0f-825d-bdabaf78572b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

CrazyNPC

unread,
Sep 21, 2017, 3:04:09 AM9/21/17
to Django users
Thank you! And your channels! Excellent project!


On Saturday, August 5, 2017 at 8:07:41 PM UTC+8, Andrew Godwin wrote:
1. You can - Channels namespaces itself away from most keys you might use (and you add a custom prefix with the "prefix" option).

2. Yes, as long as both sites have a different prefix setting

In both cases I would recommend using separate Redis servers though. They have very low RAM usage and it's good practice to run them separately.

Andrew
On Sat, Aug 5, 2017 at 9:35 PM, CrazyNPC <nianpe...@126.com> wrote:
I have 2 questions.
1.Can I use the same redis server as message backend and cache backend the same time?
2.Can  I use the same redis server as message backend for different website they both serve by channels ?

--
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...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages