mongodb também no azure? sim! - devops summit 2017
TRANSCRIPT
![Page 1: MongoDB também no Azure? SIM! - DevOps Summit 2017](https://reader034.vdocuments.net/reader034/viewer/2022051521/58ee1e6d1a28aba9488b462b/html5/thumbnails/1.jpg)
MongoDB também no Azure? SIM!
Renato Groffe
TRILHA | TECNOLOGIAS NA NUVEM
@RenatoGroff | http://renatogroffe.net/ @renatogroffe
![Page 2: MongoDB também no Azure? SIM! - DevOps Summit 2017](https://reader034.vdocuments.net/reader034/viewer/2022051521/58ee1e6d1a28aba9488b462b/html5/thumbnails/2.jpg)
• NoSQL: motivações para adoção
• MongoDB: uma visão geral
• DocumentDB: API for MongoDB
• Exemplos práticos
Agenda
![Page 3: MongoDB também no Azure? SIM! - DevOps Summit 2017](https://reader034.vdocuments.net/reader034/viewer/2022051521/58ee1e6d1a28aba9488b462b/html5/thumbnails/3.jpg)
• Disponibilidade e escalabilidade em ambientes on-premise
• Dificuldades com agrupamentos de dados complexos
• Orientação a Objetos x Modelagem Relacional → Impedance Mismatch
Limitações do modelo relacional
![Page 4: MongoDB também no Azure? SIM! - DevOps Summit 2017](https://reader034.vdocuments.net/reader034/viewer/2022051521/58ee1e6d1a28aba9488b462b/html5/thumbnails/4.jpg)
• Alta disponibilidade, escalabilidade facilitada
• Flexibilidade na representação dos dados
• Diversos tipos de soluções, como bancos orientados a documentos
Que tal NoSQL?
![Page 5: MongoDB também no Azure? SIM! - DevOps Summit 2017](https://reader034.vdocuments.net/reader034/viewer/2022051521/58ee1e6d1a28aba9488b462b/html5/thumbnails/5.jpg)
Um exemplo de documento em um NoSQL
{
"Codigo": "PROD00001",
"Nome": "Detergente",
"Tipo": "Limpeza",
"Preco": 5.75,
"DadosFornecedor": {
"Codigo": "FORN00001",
"Nome": "EMPRESA XYZ"
}
}
![Page 6: MongoDB também no Azure? SIM! - DevOps Summit 2017](https://reader034.vdocuments.net/reader034/viewer/2022051521/58ee1e6d1a28aba9488b462b/html5/thumbnails/6.jpg)
Algumas soluções orientadas a documentos
DocumentDB
![Page 7: MongoDB também no Azure? SIM! - DevOps Summit 2017](https://reader034.vdocuments.net/reader034/viewer/2022051521/58ee1e6d1a28aba9488b462b/html5/thumbnails/7.jpg)
• Gratuito, open source e multiplataforma
• Representação de dados no padrão BSON (bynary JSON)
• Schemaless
• Dados geospaciais
• Índices para a otimização de consultas
MongoDB: uma visão geral
![Page 8: MongoDB também no Azure? SIM! - DevOps Summit 2017](https://reader034.vdocuments.net/reader034/viewer/2022051521/58ee1e6d1a28aba9488b462b/html5/thumbnails/8.jpg)
Estrutura de um banco de dados do MongoDB
Banco de Dados
Coleções
Documentos
![Page 9: MongoDB também no Azure? SIM! - DevOps Summit 2017](https://reader034.vdocuments.net/reader034/viewer/2022051521/58ee1e6d1a28aba9488b462b/html5/thumbnails/9.jpg)
• Soluções mobile
• Análises em tempo real
• Personalização em aplicações
• Catálogos
• Internet das Coisas (IoT)
MongoDB: alguns cenários de uso
![Page 10: MongoDB também no Azure? SIM! - DevOps Summit 2017](https://reader034.vdocuments.net/reader034/viewer/2022051521/58ee1e6d1a28aba9488b462b/html5/thumbnails/10.jpg)
Algumas plataformas que suportam o MongoDB
![Page 11: MongoDB também no Azure? SIM! - DevOps Summit 2017](https://reader034.vdocuments.net/reader034/viewer/2022051521/58ee1e6d1a28aba9488b462b/html5/thumbnails/11.jpg)
MongoDB e ferramentas de gerenciamento
Robomongo Studio 3T
(MongoChef)
![Page 12: MongoDB também no Azure? SIM! - DevOps Summit 2017](https://reader034.vdocuments.net/reader034/viewer/2022051521/58ee1e6d1a28aba9488b462b/html5/thumbnails/12.jpg)
Uma solução seria a utilização de máquinas virtuais
Que tal utilizar o MongoDB no Azure?
![Page 13: MongoDB também no Azure? SIM! - DevOps Summit 2017](https://reader034.vdocuments.net/reader034/viewer/2022051521/58ee1e6d1a28aba9488b462b/html5/thumbnails/13.jpg)
NoSQL as a Service→DocumentDB: API for MongoDB
Que tal algo mais fácil?
DocumentDB
+ =
![Page 14: MongoDB também no Azure? SIM! - DevOps Summit 2017](https://reader034.vdocuments.net/reader034/viewer/2022051521/58ee1e6d1a28aba9488b462b/html5/thumbnails/14.jpg)
• Protocolo de suporte ao MongoDB no Azure
• Bancos do DocumentDB como repositórios do MongoDB
DocumentDB: API for MongoDB
+
![Page 15: MongoDB também no Azure? SIM! - DevOps Summit 2017](https://reader034.vdocuments.net/reader034/viewer/2022051521/58ee1e6d1a28aba9488b462b/html5/thumbnails/15.jpg)
• Escalabilidade descomplicada
• Replicação
• Compatibilidade com aplicações que já utilizam o MongoDB
DocumentDB: API for MongoDB
+
![Page 16: MongoDB também no Azure? SIM! - DevOps Summit 2017](https://reader034.vdocuments.net/reader034/viewer/2022051521/58ee1e6d1a28aba9488b462b/html5/thumbnails/16.jpg)
Utilizando o MongoDB no Azure com .NET Full e .NET Core:
https://github.com/renatogroffe/MongoDB_NETCore_Full
Exemplos práticos
![Page 17: MongoDB também no Azure? SIM! - DevOps Summit 2017](https://reader034.vdocuments.net/reader034/viewer/2022051521/58ee1e6d1a28aba9488b462b/html5/thumbnails/17.jpg)
Obrigado!
fb.com/renatogroffe
@RenatoGroff
renatogroffe.net
![Page 18: MongoDB também no Azure? SIM! - DevOps Summit 2017](https://reader034.vdocuments.net/reader034/viewer/2022051521/58ee1e6d1a28aba9488b462b/html5/thumbnails/18.jpg)