Your SlideShare is downloading. ×
MongoDb and Windows Azure
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Saving this for later?

Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime - even offline.

Text the download link to your phone

Standard text messaging rates apply

MongoDb and Windows Azure

225
views

Published on

Published in: Technology

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
225
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
2
Comments
0
Likes
1
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide
  • Inserite l’eventuale vostro logo in basso a destra
  • Slide da mostrare prima di iniziare la sessione – non rimuovere!
  • Embedding provides the following benefits: - generally better performance for read operations. - the ability to request and retrieve related data in a single database operation. Embedding related data in documents, can lead to situations where documents grow after creation. Document growth can impact write performance and lead to data fragmentation. MongoDB only provides atomic operations on the level of a single document. As a result needs for atomic operations influence decisions to use embedded or referenced relationships when modeling data for MongoDB. Embed fields that need to be modified together atomically in the same document.
  • Ultima slide, obbligatoria
  • Transcript

    • 1. Grazie a Sponsor
    • 2. About me{ "firstName": "Alessandro", "lastName": "Melchiori", "role": "software architect @ codiceplastico", "contacts": [ { "type": "email", "value": "alessandro@codiceplastico.com" }, { "type": "twitter", "value": "@amelchiori" }, { "type": "blog", "value": "http://blog.codiceplastico.com/melkio" } ]}
    • 3. What is #mongodb? MongoDB isa scalable, high-performance,open source, NoSQL database, written in C++
    • 4. SetupDEMO
    • 5. Data modeling• Embedding – you have “contains” relationships between entities – you have one-to-many relationships where the “many” objects always appear with or are viewed in the context of their parent documents
    • 6. Data modeling• Referencing – when embedding would result in duplication of data but would not provide sufficient read performance advantages to outweigh the implications of the duplication – to represent more complex many-to-many relationships – to model large hierarchical data sets
    • 7. Queries and indexesDEMO
    • 8. Replication• Database replication ensures redundancy, backup, and automatic failover
    • 9. Replication Member 1 Member 2RECOVERINGSECONDARY DOWN PRIMARY PRIMARY SECONDARY Member 3 SECONDARY
    • 10. Replica setDEMO
    • 11. Sharding• Sharding automatically balances data and load across machines. Sharding provides additional write capacity by distributing the write load over a number of mongod instances.
    • 12. ShardingDEMO
    • 13. Sharding client mongos mongos mongos shard 01 shard 02 shard 03Config 01Config 02Config 03
    • 14. …and Windows Azure?• Virtual machine (IaaS)• Worker role (PaaS)• MongoLab (SaaS)
    • 15. Windows AzureDEMO
    • 16. Q&ATutto il materiale di questa sessione su http://www.communitydays.it/ #CDays13