Weitere ähnliche Inhalte Ähnlich wie Couchbase Meetup - "Supportare Milioni di Utenti con NoSQL" (20) Kürzlich hochgeladen (10) Couchbase Meetup - "Supportare Milioni di Utenti con NoSQL"5. I)da0)crescono)in)modo)non)lineare…)
19#17#15#13#11#9#7#5#3#3/1#28#26#24#22#20#18#16#14#12#10#8#2/6#
Daily&Ac)ve&Users&(millions)&
21#
2#
4#
6#
8#
10#
12#
14#
16#
In)un)mese)30,000,000)di)downloads#della#app,#
oltre#5,000)disegni)al#secondo,#
oltre#2,200,000,000)disegni)immagazzina=,#
oltre#105,000#operazioni#al#secondo,#
e#oltre#3.3)terabytes#di#da=#in#totale.#
#
13. Architettura moderna di un’applicazione web
Application Scales Out
Just add more commodity web servers
Database Scales Up
Get a bigger, more complex server
Nota#–#I#database#relazionali#sono#una#tecnologia#eccellente#ma#non#per#questo#uso.#
14. I database NoSQL utilizzano la stessa logica
dell’applicazione
Application Scales Out
Just add more commodity web servers
Database Scales Out
Just add more commodity data servers
Scalando orizzontalmente si riducono I costi e aumentano
le performance
NoSQL#Database#Servers#
17. Database)a)Documento)
• Ogni#record#e’#un#documento#a#se’#
stante#
• Ogni#documento#ha#una#struBura#
indipendente#
• I#documen=#possono#essere#complessi#
• Richiedono#una#chiave#unica#
• I#da=#sono#immagazzina=#in#formato#
JSON,#XML#o#simili#
• Il#contenuto#puo’#essere#indicizzato#e#
interrogato#
• Offrono#sharding#automa=co#e#
repliche#
{"
“UUID”:"“21f7f8de0805105b89086
“Time”:" “2011004001T13:01:02.42
“Server”:" “A2223E”,
“Calling"Server”:" “A2213W”,
“Type”:"“E100”,
“Initiating" User”:"“dsallings@spy.net”,
“Details”:"
{
“IP”:"“10.1.1.22”,
“API”:"“InsertDVDQueueItem”,
“Trace”:" “cleansed”,
“Tags”:"
[
“SERVER”,"
“US0West”,"
“API”
]
}
}
21. Esempio)Blog))
Diviso)su)piu’)Documen0)
{"
“UUID”:"“21f7f8de0805105b89086
“Time”:" “2011004001T13:01:02.42
“Server”:" “A2223E”,
“Calling" Server”:" “A2213W”,
“Type”:" “E100”,
“Initiating" User”:" “dsallings@spy.net”,
“Details”:"
{
“IP”:"“10.1.1.22”,
“API”:" “InsertDVDQueueItem”,
“Trace”:" “cleansed”,
“Tags”:"
[
“SERVER”,"
“US0West”,"
“API”
]
}
}
{ !
“_id”: “Coucbase_Hello_World”,!
“author”: “dborkar”, !
“type”: “post”!
“title”: “Hello World”,!
“format”: “markdown”, !
“body”: “Hello from [Couchbase](
http://couchbase.com).”, !
“html”: “<p>Hello from <a href=“http: …!
“comments”:[!
! “comment1_Couchbase_Hello_world”!
! ]!
}!
{"
“UUID ”:"“2 1 f7 f8 de08 0 5 1 05 b89 08 6
“Time”:" “2 0 1 1 00 4 00 1 T1 3 :0 1 :0 2.4 2
“Server”:" “A2 2 2 3 E”,
“Calling" Server”:" “A2 2 1 3 W”,
“Type”:" “E1 0 0 ”,
“Initiating" Us er”:" “ds allings @s py.net”,
“D etails ”:"
{
“IP”:"“1 0 .1 .1 .2 2 ”,
“API”:" “Ins ertD VD QueueItem”,
“Trace”:" “cleans ed”,
“Tags ”:"
[
“SERVER”,"
“US0Wes t”,"
“API”
]
}
}
{!
“_id”: “comment1_Couchbase_Hello_World”,!
“format”: “markdown”, !
“body”:”Awesome post!” !
})
BLOG)
COMMENTI)
24. User)ID) Nome) Cognome) CAP)
1) Dip0) Borkar) 94040)
2) Joe) Smith) 94040)
3) Ali) Dodson) 94040)
4) Sarah) Gorin) NW1)
5) Bob) Young) 30303)
6) Nancy) Baker) 10010)
7) Ray) Jones) 31311)
8) Lee) Chen)
V5V3
M)
• ))
• ))
• ))
50000) Doug) Moore) 04252)
50001) Mary) White) SW195)
50002) Lisa) Clark) 12425)
ID)Paese)
TEL
3)
)001)
ID)Paese) Nome)Paese)
001) USA)
002) UK)
003) Argen0na)
004) Australia)
005) Aruba)
006) Austria)
007) Brazil)
008) Canada)
009) Chile)
• ))
• ))
• ))
130) Portugal)
131) Romania)
132) Russia)
133) Spain)
134) Sweden)
User)ID) Foto)ID) Commento)
2) d043) NYC)
2) b054) Bday)
5) c036) Miami)
7) d072) Sunset)
5002) e086) Spain)
Tabella)Foto)
))001)
))007)
))001)
))133)
))133)
User)ID) Status)ID) Text)
1) a42) At)conf)
4) b26) excited)
5) c32) hockey)
12) d83) Go)A’s)
5000) e34) sailing)
Tabella)Status)
))134)
007)
))008)
))001)
))005)
Tabella)Paese)
User)ID) Affl)ID) Affl)Name)
2) a42) Cal)
4) b96) USC)
7) c14) UW)
8) e22) Oxford)
Tabella)Affiliazioni)
ID)Paese)
))001)
))001)
))001)
))002)
ID)Paese)
ID)Paese)
001)
001)
002)
001)
001)
001)
008)
001)
002)
001)
Tabella)Utente)
.)
.)
.)
Effe`uare)una)Modifica)su)RDBMS)
44. Applicazioni)Comuni)
Social)Gaming)
)
• Couchbase#
con=ene#I#da=#sugli#
uten=#e#I#giochi#
• Esempi#clien=:#
Zynga,#Tapjoy,#
Ubison,#Tencent#
)
)
Apps)Mobili)
)
• Couchbase#con=ene#da=#
su#uten=#e#contenu=#
• Esempi#clien=:#Kobo,#
Play=ka##
)
)
Pubblicita’)Online)
)
• Couchbase#con=ene#
info#sugli#uten=#per#
un#accesso#veloce#
• Esempi#clien=:#AOL,#
Mediamind,#
Convertro##
)
Informazioni)di)Sessione)
)
• Couchbase#come#database#
chiaveJvalore#
• Esempi#clien=:#Concur,#Sabre#
)
Profili)Uten0)
)
• Couchbase#come#database#
chiaveJvalore#
• Esempi#clien=:#Tunewiki#
)
Cache)ad)Alta)Disponibilita’)
)
• Couchbase#u=lizzato#come#livello#di#cache#
• Esempi#clien=:#Orbitz#
Metadata)e)Contenu0)
• Couchbase#insieme#ad#
Elas=csearch#
• Esempi#clien=:#McGraw#Hill#
)
)
Aggregazione)Da0)
)
• Couchbase#aggrega#I#da=#dai#social#
media#
• Esempi#clien=:#Sambacloud#
)
Hinweis der Redaktion Partial listing of companies with paid production deploymentsThousands more using open source