Um pouco sobre CouchDB

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

    5 Favorites

    Um pouco sobre CouchDB - Presentation Transcript

    1. Marcos Tapajós http://tapajos.me marcos@tapajos.me
    2. passado X presente Múltiplos usuários Um usuário simultâneos Uma instância Múltiplas instâncias Processamento em Uma operação por vez paralelo
    3. Cassandra
    4. http://www.flickr.com/photos/daveaustria/2653377265/
    5. Damien Katz • IBM • CouchDB em 2005 • Lotus Notes, MySQL
    6. http://www.stilo.com
    7. No mundo real • Boletos • Cartas • Currículos
    8. JavaScript Object Notation http://www.myspace.com/jsonsb
    9. { "name": "Carol", "type": "beatiful_person", "profession": "Model", "_attachments": { "morena.jpg": { "stub": true, "content_type":"image/jpeg", "length": 74635 } } }
    10. mesmo tipo != mesma estrutura http://www.iconarchive.com/icons/icons-land/sport/Football-Ball-256x256.png http://pt.wikipedia.org/wiki/Ficheiro:Soccer_ball.svg
    11. http://www.hss.state.ak.us
    12. HTTP REST API
    13. HTTP REST API • Create: POST /database • Create: PUT /database/document_id • Read: GET /database/document_id • Update: PUT /database/document_id • Delete: DELETE /database/document_id
    14. ACID t o m o n s s o l u r a i b i s a i c t t l i e i i t n o t y c n y y
    15. MVCC u l e r o n c o n t s u t i i r r o r o n e l n c y
    16. http://catcubed.com
    17. http://www.vend123.com
    18. http://shineanthology.files.wordpress.com/2009/06/optimism_yellow.jpg
    19. VIEWS
    20. http://www.gridgainsystems.com
    21. MAP
    22. MAP/REDUCE
    23. used with autorization of Chris Anderson and Jan Lehnardt
    24. curl -X POST http://127.0.0.1:5984/_replicate -d '{ "source": "http://couch.example.com:5984/remote-db", "target": "local-db" }' used with autorization of Chris Anderson and Jan Lehnardt
    25. used with autorization of Chris Anderson and Jan Lehnardt
    26. used with autorization of Chris Anderson and Jan Lehnardt
    27. used with autorization of Chris Anderson and Jan Lehnardt
    28. used with autorization of Chris Anderson and Jan Lehnardt
    29. http://eustaquiorangel.com/images/git-logo.png http://www.sdtimes.com/blog/image.axd?picture=2009%2F3%2Fsubversion_logo-384x332.png
    30. http://submitwebsiteurl.com/girl-beach-computer.jpg
    31. CouchFoo RelaxDB ActiveCouch CouchREST Coach Potato CouchObject http://www.flickr.com/photos/daveaustria/2592202290/in/set-72157605553323697/
    32. CouchFoo RelaxDB ActiveCouch CouchREST Coach Potato CouchObject http://www.flickr.com/photos/daveaustria/2592202290/in/set-72157605553323697/
    33. LEGAL CouchFoo RelaxDB ActiveCouch CouchREST Coach Potato CouchObject http://www.flickr.com/photos/daveaustria/2592202290/in/set-72157605553323697/
    34. NÃO TÃO LEGAL LEGAL CouchFoo RelaxDB ActiveCouch CouchREST Coach Potato CouchObject http://www.flickr.com/photos/daveaustria/2592202290/in/set-72157605553323697/
    35. NÃO TÃO LEGAL LEGAL ActiveRecord CouchFoo RelaxDB ActiveCouch CouchREST Coach Potato CouchObject http://www.flickr.com/photos/daveaustria/2592202290/in/set-72157605553323697/
    36. CouchRest
    37. @db = CouchRest.database!("http://127.0.0.1:5984/couchrest- test") response = @db.save_doc({:key => 'value', 'another key' => 'another value'}) doc = @db.get(response['id']) @db.bulk_save([ {"wild" => "and random"}, {"mild" => "yet local"}, {"another" => ["set","of","keys"]} ]) @db.save_doc({ "_id" => "_design/first", :views => { :test => { :map => "function(doc){for(var w in doc){ if(!w.match(/ ^_/))emit(w,doc[w])}}" } } })
    38. class Article < CouchRest::ExtendedDocument include CouchRest::Validation property :date, :cast => “Date”, :send => “parse” property :title property :slug view_by :slug validates_present :title timestamps! save_callback :before, :generate_slug_from_title def generate_slug_from_title self.slug = title.downcase.gsub(/[^a-z0-9]/,'-'). squeeze('-').gsub(/^-|-$/,'') if new? end end
    39. used with autorization of Chris Anderson and Jan Lehnardt
    40. + used with autorization of Chris Anderson and Jan Lehnardt
    41. + used with autorization of Chris Anderson and Jan Lehnardt
    42. http://www.flickr.com/photos/cbcastro/294210692/sizes/l/
    43. RELAX
    44. RELAX
    45. OBRIGADO

    + Marcos TapajósMarcos Tapajós, 3 months ago

    custom

    890 views, 5 favs, 2 embeds more stats

    My Rails Summit 2009 presentation. Enjoy!

    More info about this presentation

    © All Rights Reserved

    • Total Views 890
      • 541 on SlideShare
      • 349 from embeds
    • Comments 0
    • Favorites 5
    • Downloads 41
    Most viewed embeds
    • 347 views on http://tapajos.me
    • 2 views on http://www.tapajos.me

    more

    All embeds
    • 347 views on http://tapajos.me
    • 2 views on http://www.tapajos.me

    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