GSoC Rails Thread-Safety

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    2 Favorites

    GSoC Rails Thread-Safety - Presentation Transcript

    1. Google Summer of Code Rails Thread Safety Joshua Peek
    2. Multi-core Erlang Motivations Neverblock Ruby 1.9 JRuby
    3. Writing thread-safe is hard
    4. Shared Memory
    5. Common Pitfalls
    6. Request Specific Globals TimeZone.current I18n.locale
    7. Modifying classes in a thread
    8. Caches!
    9. @@cache @@file_exist_cache @@computed_public_paths @@all_javascript_sources @@all_stylesheet_sources @@processed_view_paths @@file_extension_cache
    10. ActionPack
    11. ActionView rendering logic rewritten
    12. View paths are indexed and all templates are “compiled” at boot
    13. Dependency Loading
    14. Do nothing
    15. Connection Pool
    16. Previous Implementation Technically Thread-Safe ActiveRecord::Base.allow_concurreny = true One connection per thread ERROR: Too many connections
    17. Connection Pool Grows as more connections are needed Old connections are recycled
    18. Big Thanks to Nick Sieger!
    19. Rails 2.2 Threadsafe! (for the most part)

    + Joshua PeekJoshua Peek, 2 years ago

    custom

    1183 views, 2 favs, 3 embeds more stats

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 1183
      • 1178 on SlideShare
      • 5 from embeds
    • Comments 0
    • Favorites 2
    • Downloads 46
    Most viewed embeds
    • 3 views on http://localhost:1986
    • 1 views on http://mld1
    • 1 views on http://localhost:1412

    more

    All embeds
    • 3 views on http://localhost:1986
    • 1 views on http://mld1
    • 1 views on http://localhost:1412

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories