GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - SupermanScott/redis-activity-example: An example of an Aggregated Activity Feed using Redis

BranchesTags
Open more actions menu

Latest commit

 

History

7 Commits
7 Commits

Folders and files

NameName
Last commit message
Last commit date
.gitignore
.gitignore
 
 
README.rst
README.rst
 
 
__init__.py
__init__.py
 
 
celeryconfig.py
celeryconfig.py
 
 
requirements.txt
requirements.txt
 
 
tasks.py
tasks.py
 
 

Repository files navigation

Activity Redis Example

Overview

Redis powered activity feed with Aggregation on user_id, activity_type and day. Setup as 4 Celeryd tasks new_activity, delete_activity, follow and unfollow.

Install

Download, install and run Redis::
http://redis.io/download
pip install -r requirements.txt
celeryd

Execute some tasks:

Python 2.7.3 (default, Apr 20 2012, 22:39:59)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import time
>>> import tasks
>>> tasks.new_activity.delay(1, time.time(), 'picture')
<AsyncResult: 1cffc586-0442-4824-8c8f-7fc2c72de1ff>
>>> tasks.new_activity.delay(1, time.time(), 'like')
<AsyncResult: 20683c9f-676d-4f52-a911-b561f651bb0b>
>>> tasks.new_activity.delay(1, time.time(), 'picture')
<AsyncResult: 4e19bdc3-2c19-442a-93f9-065d22bdcdc9>
>>> tasks.follow_user.delay(1, 2)
<AsyncResult: c570c9c3-13d8-4688-ae41-0ebbdc337f45>

About

An example of an Aggregated Activity Feed using Redis

supermanscott.com/redis-powered-activity-with-aggregation

Resources

Readme
Activity

Stars

21 stars

Watchers

1 watching

Forks

3 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.