Camping and Threads!
Jonas Pfenniger
zimbatm at oree.ch
Thu May 10 17:02:26 EDT 2007
2007/5/10, Ryan Allen <ryan at yeahnah.org>:
> Hey Everybody!
>
> I was wondering if/how Camping can process more than one request at
> once (i.e. not what Rails does). I'm fairly new to threads, and I
> bought a book, and read some of it, and dived into the Camping source...
>
> I found some thread stuff but I'm not... entirely sure. So I thought
> I would ask!
Hi,
Camping is green-thread-safe on the requests. At every requests,
YourApp.run is called and an instance of your routed controller is
created. You just need a web server that allows concurrency, like
mongrel. Just don't use ActiveRecord for your data backend because I
don't believe it's green-thread-safe.
--
Cheers,
zimbatm
More information about the Camping-list
mailing list