couchdb ve django



couchdb ve django

0 0


couchdb-presentation

Slides of my presentation about CouchDB at Metglobal's labsessions event

On Github zekzekus / couchdb-presentation

couchdb ve django

Kanepeye Uzanın ve Gevşeyin!

Nedİr?

  • Belge deposu
  • Şema yok
  • ACID 
  • Map/Reduce 
  • Replikasyon
  • REST API
  • Er ya da geç tutarlı

Ne Değİldİr?

  • İlişkisel veritabanı
  • Nesne Veritabanı
  • Gümüş kurşun

tarİhçe

  • Damien Katz
  • IBM - Lotus Notes Geliştiricisi
  • Evi arabayı satıp kanepeye yatırıyor
  • Evini satıyor, pılı pırtıyı toplayıp taşınıyor
  • 2 yıl boyunca CouchDB üzerinde çalışıyor
  • Proje Apache projeleri arasına giriyor
  • Tekrar IBM (CouchDB'yi geliştirmek için)
  • Projeyi topluluğa bırakıp kendi yoluna gidiyor

gİzlİ sİlah: erlang

  • Testler hariç <12k LOC
  • 20 yıllık oturmuş bir platform
  • Concurrent
  • Fault tolerant
  • Functional

Cap teoremİ

  • Eventually Consistent

Döküman

  • JSON

arayüz

  • HTTP 
  • REST
Django may be built for the Web, but CouchDB is built of the Web. I’ve never seen software that so completely embraces the philosophies behind HTTP. CouchDB makes Django look old-school in the same way that Django makes ASP look outdated.

yüzeyİn bİraz Altı

  • B-Tree
  • MVCC
  • Compaction

replİkasyon

  • Local data is the king
  • Çift yönlü replikasyon

ekler

  • Attachments

couchapp

  • Futon
  • HTML5
  • Javascript
  • Mobile
  • Replikasyon!

not only sql

  • Design document
  • Views
  • Map
  • Reduce
  • Farklı diller ile view server

sorgularLa şekİl yapmak

  • List
  • Show
  • Filter
  • Validate

canlıya geel!

  • _changes
  • feed
  • longpoll
  • continuous
  • filtered

Kİm kullanıyor?

  • Ubuntu (One)
  • BBC
  • Credit Suisse
  • Meebo

ve django...

  • Çok temel bir tasarım kararı
  • Tamamen ilişkisel veritabanları
  • Mysql, Postgresql, Sqlite vb.
  • Şema kritik

couchdbkit

  • Full istemci
  • HTTP backend (curl, httplib)
  • Threadsafe
  • Design dökümanları

client library

django extension

  • Document
  • DocumentForm
  • View sorgulama
  • Custom istekler (get_db)

teşekkürler ve tebrİkler

  • Teşekkürler
  • Sabrınız için...
  • @zekzekus
  • @MetGlobalLabs