> Why don't you just run a thesaurus app as a standalone ruby application
> which you connect to via tcp sockets?
> This way you only use the memory for the thesaurus once and use rails to
> send requests to your standalone server?
> And, if even necessary, you could look at making it multithreaded...
>
> Andrew

Well, before i didn't even have a thesaurus app. I just had 4 text
files and wrote some code to load them up in memory, creating the hash
maps with all the data. I put all of this in a facade/service that hid
it all away, and clients just called 1 simple method in order to get
the list of words that related.

So if I use memcached, the memory would be used up multiple times?

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to