Hey Richard,

I think the way I'm going to solve it is to split the functionality across 
two heroku app instances.  I want request isolation between this sub-system 
(which should have lots of very fast, small requests) and the main website 
(which may have longer running requests until I chase down all the perf 
issues) anyway, so they can both rely on the normal rails cache.

Looks like sharing a db between two apps is an exotic-but-supported 
configuration for you guys now, right?

Cheers,
Carson

On Saturday, August 18, 2012 7:52:53 PM UTC-7, richard schneeman wrote:
>
> Honestly i've never seen this done before, so I can't be much help. Have 
> you tried asking on StackOverflow? It's an interesting idea, I would like 
> to hear how to do it, as well as if it was worth the time/effort in the 
> long run. If someone else on the list has tried and has suggestions, please 
> let us know. 
>
>
> Depending on your situation you might consider putting at TTL (expires in) 
> on your large data, so that it will expire by itself rather than relying on 
> memcache to reclaim memory, this might decrease the amount of items you 
> care about falling out of cache. 
>
> -- 
> Richard Schneeman
> http://heroku.com
> @schneems <http://twitter.com/schneems>
>
> On Saturday, August 18, 2012 at 11:52 AM, Carson Gross wrote:
>
> Hi,
>
> Googling around didn't turn up an answer I was 100% confident in, so I'm 
> hoping someone can help me out.
>
> I'd like to set up a few different caches in my app with different sizes. 
>  In particular I've got one stream of data that is fairly large and I want 
> to speculatively cache, but that becomes useless very quickly and so I want 
> to discard it quickly if it is not used.  I don't want this data polluting 
> the main Rails.cache.
>
> From googline, it looks like creating multiple 
> ActiveSupport::Cache::MemoryStore's 
> is what I want to do, but I want to make sure I do it in a way that uses 
> Dalli and the heroku memcache plugin properly, and ensure that I split and 
> isolate the memcaches from one another properly.
>
> Anyone done something like this before?
>
> Thanks,
> Carson 
>
> -- 
> You received this message because you are subscribed to the Google
> Groups "Heroku" group.
>  
> To unsubscribe from this group, send email to
> [email protected] <javascript:>
> 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" group.

To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/heroku?hl=en_US?hl=en

Reply via email to