Coding a Facebook canvas app in rails – my struggles
Back in October 2014 i had an interesting project. My task was to build a canvas facebook app for an existing web app called wishlist. My first thought was, how hard could it be? You just do what you do every day, coding a rails app. It could be very hard. I had some struggles […]
How to upgrade a very old restful_authentication to devise
Recently i had to upgrade a rails 2 app to rails 3.2. It wasn’t as difficult as i thought first, but i struggled with one task: authentication. The old app used a very old, not anymore supported version of restful_authentication. Restful_authentication was the then standard plugin for authentication, but is now out-dated. So i decided […]
periodic cache regeneration with rails redis and a spider
today i want to continue my little series about how to use redis as rails cache. i will show you how to build a caching system that does not rely on cache invalidation and is able to constantly deliver up to date cached results.
revealing module pattern in coffeescript
if none of the two terms in the title tell you anything, you have some serious reading todo. first off learn and love coffeescript. second of all get to know some javascript design patterns. why? because it helps you to write a lot better clearer code in a very weird language. so my design pattern […]
rails caching with redis – invalidation done right
in my last article about using redis as rails cache i used the redis ‘keys’ function to invalidate cache. as my readers noted, and i experienced myself, this is not a good idea if you plan on storing a few million keys in your redis-db. so today we’ll look at how to do this invalidation […]
some postgresql advice for rails programmers
postgresql has grown to the most beloved database in the rails community. so as more and more rails developers start using it the more common mistakes get made. today i want to give some general advice to follow when using postgresql in a rails app.
using redis to track and uniquify impressions with rails
as redis has become the number one contender for memcaches throne of key-value storage engines. it deserves a closer look why so many rails developers are flocking to it. redis has a set of commands and functions that enable endless possibilities to those creative enough to use them in a new way. today i want […]
high performance rails caching with redis and nginx
here at rapidrabbit we deliver many 1,000 requests per second. doing this while only using a handful of servers and ruby on rails we employ very clever caching using redis and nginx. once the cache is written, it is directly accessed by nginx via a module, which makes it around 500-2,000 times faster than any […]