CodeCamp Iasi 10 March 2012 - Gabriel Enea - ASP.NET Web API
Codecamp Iasi 7 mai 2011 Exception tail.com
-
Upload
codecampiasi -
Category
Technology
-
view
806 -
download
4
description
Transcript of Codecamp Iasi 7 mai 2011 Exception tail.com
![Page 1: Codecamp Iasi 7 mai 2011 Exception tail.com](https://reader035.fdocuments.in/reader035/viewer/2022062514/558b5428d8b42a124c8b4614/html5/thumbnails/1.jpg)
ExceptionTail.com - MongoDB and RabbitMQ in actionVlad Bălan, Sorin OboroceanuTwitter: @cybyvlad, @sorinoboroceanuRomSoft, www.rms.rowww.exceptiontail.com, @exceptiontail
Iași, 7th of May 2011
![Page 2: Codecamp Iasi 7 mai 2011 Exception tail.com](https://reader035.fdocuments.in/reader035/viewer/2022062514/558b5428d8b42a124c8b4614/html5/thumbnails/2.jpg)
Agenda
How we started Demo Architecture Demo
![Page 3: Codecamp Iasi 7 mai 2011 Exception tail.com](https://reader035.fdocuments.in/reader035/viewer/2022062514/558b5428d8b42a124c8b4614/html5/thumbnails/3.jpg)
How we startedLife and the way it works…
![Page 4: Codecamp Iasi 7 mai 2011 Exception tail.com](https://reader035.fdocuments.in/reader035/viewer/2022062514/558b5428d8b42a124c8b4614/html5/thumbnails/4.jpg)
How we startedWhat we usually work with @work
We needed to look on the dark side(Linux stuff) NOSQL? ASP.NET MVC 3 ThreadTail - analytics engine Smaller events-based project
![Page 5: Codecamp Iasi 7 mai 2011 Exception tail.com](https://reader035.fdocuments.in/reader035/viewer/2022062514/558b5428d8b42a124c8b4614/html5/thumbnails/5.jpg)
The Microsoft stack
![Page 6: Codecamp Iasi 7 mai 2011 Exception tail.com](https://reader035.fdocuments.in/reader035/viewer/2022062514/558b5428d8b42a124c8b4614/html5/thumbnails/6.jpg)
How we started What we usually work with @work
We wanted to look on the dark side(Linux stuff)
NOSQL? ThreadTail - analytics engine Smaller events-based project
![Page 7: Codecamp Iasi 7 mai 2011 Exception tail.com](https://reader035.fdocuments.in/reader035/viewer/2022062514/558b5428d8b42a124c8b4614/html5/thumbnails/7.jpg)
NOSQL CouchDB Hadoop RavenDB Cassandra MongoDB etc.
![Page 8: Codecamp Iasi 7 mai 2011 Exception tail.com](https://reader035.fdocuments.in/reader035/viewer/2022062514/558b5428d8b42a124c8b4614/html5/thumbnails/8.jpg)
How we started What we usually work with @work We wanted to look on the dark side(Linux stuff) NOSQL?
ThreadTail - analytics engine Smaller events-based project
![Page 9: Codecamp Iasi 7 mai 2011 Exception tail.com](https://reader035.fdocuments.in/reader035/viewer/2022062514/558b5428d8b42a124c8b4614/html5/thumbnails/9.jpg)
github.com/cybyvlad
![Page 10: Codecamp Iasi 7 mai 2011 Exception tail.com](https://reader035.fdocuments.in/reader035/viewer/2022062514/558b5428d8b42a124c8b4614/html5/thumbnails/10.jpg)
How we started What we usually work with @work We wanted to look on the dark side(Linux stuff) NOSQL? ThreadTail - analytics engine
Smaller events-based project
![Page 11: Codecamp Iasi 7 mai 2011 Exception tail.com](https://reader035.fdocuments.in/reader035/viewer/2022062514/558b5428d8b42a124c8b4614/html5/thumbnails/11.jpg)
Error reporting at its best
![Page 12: Codecamp Iasi 7 mai 2011 Exception tail.com](https://reader035.fdocuments.in/reader035/viewer/2022062514/558b5428d8b42a124c8b4614/html5/thumbnails/12.jpg)
![Page 13: Codecamp Iasi 7 mai 2011 Exception tail.com](https://reader035.fdocuments.in/reader035/viewer/2022062514/558b5428d8b42a124c8b4614/html5/thumbnails/13.jpg)
Exception flow
App
oops
User
![Page 14: Codecamp Iasi 7 mai 2011 Exception tail.com](https://reader035.fdocuments.in/reader035/viewer/2022062514/558b5428d8b42a124c8b4614/html5/thumbnails/14.jpg)
Demo
![Page 15: Codecamp Iasi 7 mai 2011 Exception tail.com](https://reader035.fdocuments.in/reader035/viewer/2022062514/558b5428d8b42a124c8b4614/html5/thumbnails/15.jpg)
Architecture of ExceptionTail.com
When simple doesn't cut it
![Page 16: Codecamp Iasi 7 mai 2011 Exception tail.com](https://reader035.fdocuments.in/reader035/viewer/2022062514/558b5428d8b42a124c8b4614/html5/thumbnails/16.jpg)
Default architecture of an web application
App
App
App
Web Server SQL Server
Performance Bottleneck: Too much load!
…
![Page 17: Codecamp Iasi 7 mai 2011 Exception tail.com](https://reader035.fdocuments.in/reader035/viewer/2022062514/558b5428d8b42a124c8b4614/html5/thumbnails/17.jpg)
App
App
App Web Server SQL Server…Performance Bottleneck:
Too much load!
RabbitMQ
Message Processor
Less load!
Report
Architecture using queuing
![Page 18: Codecamp Iasi 7 mai 2011 Exception tail.com](https://reader035.fdocuments.in/reader035/viewer/2022062514/558b5428d8b42a124c8b4614/html5/thumbnails/18.jpg)
Architecture using replication
App
Collection Server
SQL Server Master
Performance Bottleneck: Writes can’t scale!
Reporting Server
SQL Server SlaveSQL Server
SlaveSQL Server Slave
Replication
Scalable Reads!
Queue
Message Processor
SQL Server
![Page 19: Codecamp Iasi 7 mai 2011 Exception tail.com](https://reader035.fdocuments.in/reader035/viewer/2022062514/558b5428d8b42a124c8b4614/html5/thumbnails/19.jpg)
Reporting Server
Architecture using sharding
App SQL Server Master
Performance Bottleneck: Writes can’t scale!
SQL Server SlaveSQL Server
SlaveSQL Server Slave
Replication
Scalable Reads!
SQL Server MasterSQL Server
MasterS
hard
ing
Scalable Writes!
Development Bottleneck: Need to write custom code!
Collection Server
Queue
Message Processor
Sha
rdin
g
![Page 20: Codecamp Iasi 7 mai 2011 Exception tail.com](https://reader035.fdocuments.in/reader035/viewer/2022062514/558b5428d8b42a124c8b4614/html5/thumbnails/20.jpg)
Architecture using MongoDB!
App
Reporting Server
MongoDB
Scalable Writes!
Scalable Reads!
SQL Server Master
SQL Server MasterSQL Server
Master
Collection Server
Queue
Message Processor
![Page 21: Codecamp Iasi 7 mai 2011 Exception tail.com](https://reader035.fdocuments.in/reader035/viewer/2022062514/558b5428d8b42a124c8b4614/html5/thumbnails/21.jpg)
ExceptionTail.com - Final architecture
App
ASP.NET MVC 3
MongoDB
WCF
RabbitMQ
Message Processor
![Page 22: Codecamp Iasi 7 mai 2011 Exception tail.com](https://reader035.fdocuments.in/reader035/viewer/2022062514/558b5428d8b42a124c8b4614/html5/thumbnails/22.jpg)
Architecture of ExceptionTail.com
Default architecture of an web app
Architecture using queuing (RabbitMQ)
Architecture using replication
Architecture using sharding
Final architecture using MongoDB & RabbitMQ
![Page 23: Codecamp Iasi 7 mai 2011 Exception tail.com](https://reader035.fdocuments.in/reader035/viewer/2022062514/558b5428d8b42a124c8b4614/html5/thumbnails/23.jpg)
MongoDB
Demo
![Page 24: Codecamp Iasi 7 mai 2011 Exception tail.com](https://reader035.fdocuments.in/reader035/viewer/2022062514/558b5428d8b42a124c8b4614/html5/thumbnails/24.jpg)
Resources http://www.mongodb.org/ http://www.10gen.com/ http://www.mongovue.com/ http://www.rabbitmq.com/ http://highscalability.com/
![Page 25: Codecamp Iasi 7 mai 2011 Exception tail.com](https://reader035.fdocuments.in/reader035/viewer/2022062514/558b5428d8b42a124c8b4614/html5/thumbnails/25.jpg)
Q&A
![Page 26: Codecamp Iasi 7 mai 2011 Exception tail.com](https://reader035.fdocuments.in/reader035/viewer/2022062514/558b5428d8b42a124c8b4614/html5/thumbnails/26.jpg)
Please fill the evaluation form
Thank you very much!Vlad Bălan, Sorin OboroceanuTwitter: @cybyvlad, @sorinoboroceanuRomSoft, www.rms.rowww.exceptiontail.com, @exceptiontail
Iași, 7th of May 2011