0% found this document useful (0 votes)
4 views3 pages

Whiteboard project notes

Redis is an open-source in-memory data structure store used for databases, caching, and message brokering, known for its speed and efficiency. It is ideal for real-time applications like visitor tracking, caching, and analytics. Django Channels extends Django to support asynchronous protocols for real-time communication, useful in chat applications, live notifications, and collaborative tools.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views3 pages

Whiteboard project notes

Redis is an open-source in-memory data structure store used for databases, caching, and message brokering, known for its speed and efficiency. It is ideal for real-time applications like visitor tracking, caching, and analytics. Django Channels extends Django to support asynchronous protocols for real-time communication, useful in chat applications, live notifications, and collaborative tools.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Redis

Redis is an opensource in memory data structure store


which is generally used as database, caching or as
message-broker. It is known for its speed and efficiency
because it keeps data in memory which allows for very
fast read and write operations.

Simple Example
Imagine you have a website that displays the number of
visitors in real-time. Storing this data in a traditional
relational database might introduce latency. Instead, you
can use Redis to quickly read and write the number of
visitors, ensuring the data is always up-to-date.

Why Use Redis?


 Caching: Redis can cache frequently accessed data to reduce
the load on databases and improve performance.
 Message Brokering: Redis supports pub/sub messaging,
making it suitable for real-time communication applications.
 Session Storage: It can be used to store session information
for web applications.
 Queue Management: Redis can manage queues for tasks,
making it useful for asynchronous job processing.
 Real-time Analytics: Due to its fast read and write
capabilities, Redis is used for real-time analytics.
Django Channels
Django Channels is an extension of Django that allows handling
of asynchronous protocols like WebSockets, HTTP2, and more.
While Django traditionally handles HTTP requests and
responses, Django Channels enables real-time communication
by supporting WebSockets.

When is it Used in Django Projects?


Django Channels is used in scenarios where real-time or
asynchronous communication is required. Common use
cases include:

Chat applications: For real-time messaging.


Live notifications: For instant updates (e.g., social
media notifications).
Online multiplayer games: For real-time interaction
between players.
Collaborative tools: For real-time collaboration (e.g.,
document editing, whiteboard drawing).
Real-time data dashboards: For live data updates
(e.g., stock prices, IoT data).
Creating whiteboard app with Django

You might also like