Stratergies to stop CDN always hitting Heroku
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 request because the CDN wont have them cached. It would be easy to rapidly request a sequence of fake blog post urls that hit my little dynamos and also database. What are the strategies to deal with this?? Can the CDN impose rules? Can Heroku help in any way? cheers -- -- You received this message because you are subscribed to the Google Groups "Heroku" group. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/heroku?hl=en_US?hl=en --- You received this message because you are subscribed to the Google Groups "Heroku Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to heroku+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Cloudfront
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 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 email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
does varnish care about query strings?
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 the Google Groups "Heroku" group. To post to this group, send email to heroku@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
Re: Mobile strategy
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@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
Re: Mobile strategy
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 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 email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
Re: Mobile strategy
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 each URI needs to have different versions for mobile and desktop. unless you could somehow map or redirect to m.xxx.com and treat it entirely separately. 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 email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
Mobile strategy
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" or "desktop" (as opposed to detecting specific handsets). cheers -- 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 email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
Re: Appoxy SimpleWorker
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 email to heroku@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
Appoxy SimpleWorker
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 to the Google Groups "Heroku" group. To post to this group, send email to heroku@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
Re: Action Caching... force it to use Varnish not Memcache
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-caching That goes against expectation... hope it's an error :) -- 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 email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
Re: Can Redis2Go replace memcahe?
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 to this group, send email to heroku@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
Re: Action Caching... force it to use Varnish not Memcache
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 unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
Action Caching... force it to use Varnish not Memcache
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 a hack or a tweak, or any ideas, I'd be super happy! thanks -- 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 email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
Clearing a cached file in Varnish
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 email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
Re: Memcached or Redis-to-Go
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 this group, send email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
Can Redis2Go replace memcahe?
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 blazingly fast, particularly being memory based? cheers -- 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 this group at http://groups.google.com/group/heroku?hl=en.
HTML5 manifest caching on Heroku
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? The manifests seem to be set up ok from what I can see? The reason I am wondering is that other manifest examples, outside of heroku, do work eg: http://www.thecssninja.com/demo/offline_webapp/ -- 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 this group at http://groups.google.com/group/heroku?hl=en.
Re: DDOS attack alleviation?
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 for Redditing? I guess I'm asking this because I'm thinking one option is to make your site still accessible in a cached format when necessary if your backend/database overheats ... some sort of graceful fail -- 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 this group at http://groups.google.com/group/heroku?hl=en.
Image upload -> manipulation -> copy to S3
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 Delayed Job gets to it? 2) Does uploading a file completely lock a dyno? Or can a single dyno handle a few simultaneous uploads? cheers -- 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 this group at http://groups.google.com/group/heroku?hl=en.
Re: Heroku and large sites
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 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 this group at http://groups.google.com/group/heroku?hl=en.
Heroku and large sites
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=1664914 50GB is massive and I'm wondering what sort of site actually needs this? Would a popular forum require this much? It would have to be very, very popular? -- 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 this group at http://groups.google.com/group/heroku?hl=en.
using MongoHQ while keeping Postgres for some things... possible?
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 outside of ActiveRecord thanks -- 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 this group at http://groups.google.com/group/heroku?hl=en.
Re: Exclude certain gems from installing on Heroku
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 this group at http://groups.google.com/group/heroku?hl=en.
Re: RMagick on bamboo-ree-1.8.7
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 render :text=>img, :status=>200,:content_type=>'image/gif' end end -- 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 this group at http://groups.google.com/group/heroku?hl=en.
RMagick on bamboo-ree-1.8.7
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." Someone on IRC kindly suggested I install an RMagick 2.12.0 which is compatable with ImageMagick 6.3.7", which is on bamboo-ree-1.8.7 However putting this in my Gemfile... gem "rmagick", :version=>"2.12.0", :require=>"RMagick" ... does not work since the version parameter doesn't seem to get picked up? Has anyone got this to work? Or are there any plans to put RMagick on bamboo-ree-1.8.7 thanks :) -- 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 this group at http://groups.google.com/group/heroku?hl=en.
heroku db:seed
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...@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
bestbuyideax.com - ran on 8 dynamos?
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. Let's be kind and assume they chose the Crane database... with 8 dynamos thats $300 a month.(or a whopping $452/month in dedicated!!) Is that really necessary? I'm trying to get an idea of what a dynamo actually is capable of. -- 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 this group at http://groups.google.com/group/heroku?hl=en.