Stratergies to stop CDN always hitting Heroku

2014-04-29 Thread railsnerd
Hi If I have a blog url structure, something like www.blog.com/12343/Hello-World I'm happy to cache that page entirely at the CDN But concerned that my low-dynamo app might be easily exposed to attackers by simply making many calls to blog posts that don't exist that always make a Heroku req

Cloudfront

2012-04-04 Thread railsnerd
Hi there My site has a lot of static pages, and I'm hoping I can use Cloudfront to host them and stop requests hitting Heroku. (Yes I know there are other possibilities like memcached and varnish) Does anyone know of a good guide in setting this up? It's not very clear to me. thanks -- You r

does varnish care about query strings?

2011-04-24 Thread railsnerd
Hi have to URLs which are identical except for a differing query string I was expecting them to be cached differently but they are not :( Is this because varnish ignores query strings? . or do I have a bug in my app? thanks :) -- You received this message because you are subscribed to

Re: Mobile strategy

2011-03-18 Thread railsnerd
Some Content Delivery Networks offer device detection and ESI based on this. This is the ideal solution, but too far outside of the Heroku sandbox - maybe? -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to heroku@go

Re: Mobile strategy

2011-03-18 Thread railsnerd
Yes, I was about to say all these techniques (other than the css media queries) require a hit to the backend. Ideally there would be detection on the edge/cloud, so varnish cache can kick in where possible without hitting a rails stack or sinatra. Still, good ideas in this thread. -- You re

Re: Mobile strategy

2011-03-18 Thread railsnerd
You are doing this in the backend? Some people are checking the user agent in the front end... but that seems too late (if u can help it) What are your differences in what is delivered? Do you have different markup and content for mobile? If so I guess caching your URIs might be difficult if ea

Mobile strategy

2011-03-18 Thread railsnerd
Hi there Is anyone using Heroku to serve a mobile and desktop version of their site? How to handle device detection? Particularly when using the some URLs to deliver different markup/content to the two different platforms. Any ideas of a device detection strategy? Even if it was just "mobile"

Re: Appoxy SimpleWorker

2011-02-28 Thread railsnerd
Ah thanks for that Not clear it is suitable for image manipulation... as that kind of task is quite beefy, requiring memory, grunt and awkward libraries like imagemagick -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send emai

Appoxy SimpleWorker

2011-02-28 Thread railsnerd
This has appeared on the Add-Ons page But a google search reveals nothing Anyone know who provides this service? Would be good to know more details. I'm looking for a cost effecting way to manage image resizing, and this could be ideal. -- You received this message because you are subscribed t

Re: Action Caching... force it to use Varnish not Memcache

2011-02-20 Thread railsnerd
Thanks for the reply Chris Can I just confirm that Varnish persists regardless of user page refreshing. The documentation says: "Pressing shift-reload in the browser will cue the browser and Varnish to regenerate the page, regardless of the cache state." http://devcenter.heroku.com/articles/http-

Re: Can Redis2Go replace memcahe?

2011-02-20 Thread railsnerd
According to this, Redis is too slow for caching Can anyone confirm that experience? http://stackoverflow.com/questions/4221735/rails-and-caching-is-it-easy-to-switch-between-memcache-and-redis -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post

Re: Action Caching... force it to use Varnish not Memcache

2011-02-19 Thread railsnerd
Yes I understand that and am OK with the consequences I just want to force Action Cache to force a Page Cache on certain occasions -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to heroku@googlegroups.com. To unsubs

Action Caching... force it to use Varnish not Memcache

2011-02-19 Thread railsnerd
Hi everyone Is there a way to force Action Caching to cache to Varnish and not use Memcache? Yes I fully realise this might cause (?) the next request to hit Varnish and not my app, which defeats the purpose of Action Caching and I should use Page Caching... but I have my reasons :) If there was

Clearing a cached file in Varnish

2011-02-18 Thread railsnerd
Is this possible? Any hacks, atleast? Does the Lacquer gem work with Heroku? Thanks for any tips :) -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to heroku@googlegroups.com. To unsubscribe from this group, send e

Re: Memcached or Redis-to-Go

2011-02-17 Thread railsnerd
So I assume the latency is low? I guess I was more interested in the suitability of Redis as a Memcached replacement -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to heroku@googlegroups.com. To unsubscribe from thi

Can Redis2Go replace memcahe?

2011-01-07 Thread railsnerd
Hey The price difference for 100mb Redis or Memcache is only $5 I may have it wrong, but thought Redis provides very similar functionality, with extra useful functionality Why or when would someone chose Memcache over Redis? Redis is promoted as a way to store sessions, so I assume it is blazin

HTML5 manifest caching on Heroku

2010-11-29 Thread railsnerd
Adam Wiggins kindly put up a cache manifest example: http://cachemanifest.heroku.com/clock.html I notice that this does work when I reload the page that is already open in iPhone Safari However if I load the clock url on a fresh safari page, the cache does not kick in. Is this a heroku issue?

Re: DDOS attack alleviation?

2010-09-30 Thread railsnerd
Just as an aside Does Varnishing as much content as you can protect you from DDOS? It would cover your app backend but is Varnished content on Heroku so heavily cached that it is impenitrable? I assume it must be, since a Reddit attack is as bad as DDOS, and Vanish is what people recommend f

Image upload -> manipulation -> copy to S3

2010-09-27 Thread railsnerd
Hi First of all, I realise Heroku encourages us to upload directly to S3. However I'd like to manage that upload via Heroku first. Two questions: 1) With Heroku I understand your request can have some temporary space for file uploads. Can I rely on that space to exist for a few minutes while a

Re: Heroku and large sites

2010-09-21 Thread railsnerd
This is not a critisism of Heroku If I was faced with a 50GB memcache, the first thing I would do is attempt to cache more content into Varnish and rely less on the backend to make my pages dynamic. -- You received this message because you are subscribed to the Google Groups "Heroku" group. To

Heroku and large sites

2010-09-21 Thread railsnerd
This comment on Hacker News got me thinking: "And with hilarious I mean really hilarious, as in the $3500 price point for a 50G memcached instance. For that money you can also buy a physical server with 64G RAM every month, fresh from the factory..." --- http://news.ycombinator.com/item?id=166491

using MongoHQ while keeping Postgres for some things... possible?

2010-05-02 Thread railsnerd
Hi So there are a few things that I would prefer not to move onto MongoHQ User accounts and Geo-IP tables, for example Is it possible to keep my Postgres DB for some Models, but use MongoHQ for others? Maybe not specifically for Models maybe I could just have a module that accesses the DB o

Re: Exclude certain gems from installing on Heroku

2010-04-13 Thread railsnerd
RUBY_PLATFORM works for me, fyi -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to her...@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com. For more options, visit t

Re: RMagick on bamboo-ree-1.8.7

2010-04-13 Thread railsnerd
Thanks Oren that worked Anyone interested can simply test by hitting the index on this controller class ThingsController < ApplicationController require 'rubygems' require 'RMagick' def index img = Magick::Image.read("#{RAILS_ROOT}/public/images/ rails.png").first.scale(5).to_blob

RMagick on bamboo-ree-1.8.7

2010-04-11 Thread railsnerd
Hi there RMagick does not seem to be installed on bamboo-ree-1.8.7 If I do "require 'RMagick'" at the console it is not found. Are there plans to install it? I tried including it in my Gemfile but it gives the error Can't install RMagick 2.13.1. You must have ImageMagick 6.4.9 or later." So

heroku db:seed

2010-03-22 Thread railsnerd
Hi My db:seed works locally, but only gets half way on Heroku. --verbose does not work on this as it does locally? Are there log files somewhere? thanks! -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to her...@g

bestbuyideax.com - ran on 8 dynamos?

2009-11-25 Thread railsnerd
Saw this on heroku's twitter: "http://bestbuyideax.com is now blazing along on 8 dynos at @heroku." Really? Seems to me that site has the same level of dynamic content as a quiet discussion forum. (a few topics a day, a few replies a day, a few "i like this" actions). Correct me if I'm wrong.