SlideShare uma empresa Scribd logo
1 de 25
Baixar para ler offline
Creating MongoDB Based Logging System
                    in Webservice Heavy Environment
                               Arkadiusz Goralski
                             @MongoDB London 2013




piątek, 29 marca 13
Web service Heavy Environment
                             Web Application

                                Web
                              Server 1
                                             Web
                                           Server 2   ...     Web
                                                            Server n




piątek, 29 marca 13
Web service Heavy Environment
                                             Web Application

                                                Web
                                              Server 1
                                                             Web
                                                           Server 2   ...     Web
                                                                            Server n




               Gaming Providers

                 Sportsbook       Slots


                       Live       Mini
                      betting    games


                      Casino      Poker


                       Live       Account
                      dealer    Management




piątek, 29 marca 13
Web service Heavy Environment
                                             Web Application

                                                Web
                                              Server 1
                                                                 Web
                                                               Server 2      ...       Web
                                                                                     Server n




               Gaming Providers                  Payment Providers

                 Sportsbook       Slots             Skrill         Ukash        Ecocard


                       Live       Mini
                                                   Neteller        Paysafe     Instadebit
                      betting    games


                                                                                 Bank
                      Casino      Poker             Visa           Ecocard
                                                                               transfers


                       Live       Account
                                                  Mastercard       Envoy       Webmoney
                      dealer    Management




piątek, 29 marca 13
Web service Heavy Environment
                                             Web Application

                                                Web
                                              Server 1
                                                                 Web
                                                               Server 2      ...       Web
                                                                                     Server n




               Gaming Providers                  Payment Providers                              Other Subsystems

                                                                                                  Bonus       Common
                 Sportsbook       Slots             Skrill         Ukash        Ecocard           engine       Wallet


                       Live       Mini
                                                   Neteller        Paysafe     Instadebit       Price feeds   Mobile API
                      betting    games


                                                                                 Bank
                      Casino      Poker             Visa           Ecocard                       Anti fraud    Geo IP
                                                                               transfers


                       Live       Account
                                                  Mastercard       Envoy       Webmoney
                      dealer    Management




piątek, 29 marca 13
Different dialects

                          SOAP                    JSON RPC




                                       Web
                        REST JSON                 XML RPC
                                    Application




                         REST XML                 HTTP Calls




piątek, 29 marca 13
How to keep sanity?
              • why the deposit failed for user ... ?
              • user ... claims he didn’t place this bet?
              • can you give me a number of users that ... ?
              • can you tell me what user ... was doing on ... ?
              • why user ... couldn’t log in?
              • why customer ... couldn’t open an account?
piątek, 29 marca 13
Why MongoDB
                             is a good fit
                      • schemaless
                      • fire and forget
                      • scalable and easy to replicate
                      • capped collections & tailable cursor
                      • centralized
                      • easy remote access
piątek, 29 marca 13
MongoDB deployment
                          Web Application

                             Web
                           Server 1
                                          Web
                                        Server 2   ...     Web
                                                         Server n




piątek, 29 marca 13
MongoDB deployment
                          Web Application

                             Web
                           Server 1
                                          Web
                                        Server 2        ...          Web
                                                                   Server n




                          Replica Set

                             Payment Providers
                          MongoDB    MongoDB           MongoDB     MongoDB
                            (host 1)        (host 2)    (host 3)    (hidden)




piątek, 29 marca 13
MongoDB deployment
                                     Web Application

                                        Web
                                      Server 1
                                                     Web
                                                   Server 2          ...         Web
                                                                               Server n




                                     Replica Set

                                         Payment Providers
                                      MongoDB    MongoDB           MongoDB     MongoDB
                                       (host 1)        (host 2)     (host 3)    (hidden)




                       Log Viewer

                        RealPayment Providers
                             time    Simple        Simple         Real time
                       log viewer    queries       reports         alerts



                                    Secondary preferred


piątek, 29 marca 13
MongoDB deployment
                                     Web Application

                                        Web
                                      Server 1
                                                     Web
                                                   Server 2          ...         Web
                                                                               Server n




                                     Replica Set

                                         Payment Providers
                                      MongoDB    MongoDB           MongoDB     MongoDB
                                       (host 1)        (host 2)     (host 3)    (hidden)




                       Log Viewer                                                 Data mining

                        RealPayment Providers
                             time    Simple        Simple         Real time                Payment Providers
                                                                                                    Heavy
                                                                                    Analytics
                       log viewer    queries       reports         alerts                           queries



                                    Secondary preferred                             Hidden node only


piątek, 29 marca 13
Log entry schema




piątek, 29 marca 13
Log entry schema
                                     Prepare web
                                    service request




piątek, 29 marca 13
Log entry schema
                                            Prepare web
                                           service request


                                JSON-ize       Send it




piątek, 29 marca 13
Log entry schema
                                            Prepare web
                                           service request


                                JSON-ize       Send it



                                JSON-ize   Get the result




piątek, 29 marca 13
Log entry schema
                                            Prepare web
                                           service request


                                JSON-ize       Send it



                                JSON-ize   Get the result


                                               Was is
                                             successful




piątek, 29 marca 13
Log entry schema
                                            Prepare web
                                           service request


                                JSON-ize       Send it



                                JSON-ize   Get the result


                                               Was is
                                             successful


                                           Proceed with
                                 Save it     execution




piątek, 29 marca 13
So you're logging data to
                          MongoDB, now what?

                      • all data is searchable (including web service
                        specific data)
                      • you can use the aggregation framework
                      • trace user sessions across different web
                        services
                      • just sit and watch the logs

piątek, 29 marca 13
Detect anomalies
                             in the data
                      • realtime issue analysis
                      • subsystem failures
                      • fraud
                      • traffic anomalies

piątek, 29 marca 13
Data mining
                      • create a replica for analytics
                      • analyze customer behaviour
                      • spot fraudulent activity
                      • create reports
                      • proactive support
                      • deployment analytics
                      • police enquiries
piątek, 29 marca 13
Share the logs
                      • don’t be a human interface to MongoDB
                      • the more you share the more time is
                        saved, your time
                      • just a simple query interface is enough
                      • give separate node to marketing people


piątek, 29 marca 13
Push notifications
                                             When something goes really bad




                      Alert Scenarios
                                                                                Email



                                   Tailable cursor
                                                     Node.js      Severity     Text
                      MongoDB
                                                      app          rating     message



                                                                              Call people,
                                                                              it's serious!




piątek, 29 marca 13
Open Source
                              Alternatives

                      • GrayLog (uses MongoDB)
                      • LogStash (MongoDB output plugins)
                      • Fluent (MongoDB storage)


piątek, 29 marca 13
Thank you
                      Have fun with MongoDB




piątek, 29 marca 13

Mais conteúdo relacionado

Destaque

An Introduction to Cassandra - Oracle User Group
An Introduction to Cassandra - Oracle User GroupAn Introduction to Cassandra - Oracle User Group
An Introduction to Cassandra - Oracle User GroupCarlos Juzarte Rolo
 
OVERVIEW OF FACEBOOK SCALABLE ARCHITECTURE.
OVERVIEW  OF FACEBOOK SCALABLE ARCHITECTURE.OVERVIEW  OF FACEBOOK SCALABLE ARCHITECTURE.
OVERVIEW OF FACEBOOK SCALABLE ARCHITECTURE.Rishikese MR
 
Raising the Tides: Open Source Analytics for Data Science
Raising the Tides: Open Source Analytics for Data ScienceRaising the Tides: Open Source Analytics for Data Science
Raising the Tides: Open Source Analytics for Data ScienceWes McKinney
 
Web 2.0 Is the Future of Education
Web 2.0 Is the Future of EducationWeb 2.0 Is the Future of Education
Web 2.0 Is the Future of EducationSteve Hargadon
 
Facebook Architecture - Breaking it Open
Facebook Architecture - Breaking it OpenFacebook Architecture - Breaking it Open
Facebook Architecture - Breaking it OpenHARMAN Services
 
Digital Marketing for the Travel Industry in the Web 2.0. Scenario
Digital Marketing for the Travel Industry in the Web 2.0. ScenarioDigital Marketing for the Travel Industry in the Web 2.0. Scenario
Digital Marketing for the Travel Industry in the Web 2.0. Scenariodelhibloggers
 
Big Data - O que é o hadoop, map reduce, hdfs e hive
Big Data - O que é o hadoop, map reduce, hdfs e hiveBig Data - O que é o hadoop, map reduce, hdfs e hive
Big Data - O que é o hadoop, map reduce, hdfs e hiveFlavio Fonte, PMP, ITIL
 
Intro To MongoDB
Intro To MongoDBIntro To MongoDB
Intro To MongoDBAlex Sharp
 
Introduction to MongoDB
Introduction to MongoDBIntroduction to MongoDB
Introduction to MongoDBRavi Teja
 
Benchmarking Top NoSQL Databases: Apache Cassandra, Apache HBase and MongoDB
Benchmarking Top NoSQL Databases: Apache Cassandra, Apache HBase and MongoDBBenchmarking Top NoSQL Databases: Apache Cassandra, Apache HBase and MongoDB
Benchmarking Top NoSQL Databases: Apache Cassandra, Apache HBase and MongoDBAthiq Ahamed
 
Introduction to NoSQL Databases
Introduction to NoSQL DatabasesIntroduction to NoSQL Databases
Introduction to NoSQL DatabasesDerek Stainer
 
A Beginners Guide to noSQL
A Beginners Guide to noSQLA Beginners Guide to noSQL
A Beginners Guide to noSQLMike Crabb
 

Destaque (15)

Cv orlan
Cv orlanCv orlan
Cv orlan
 
An Introduction to Cassandra - Oracle User Group
An Introduction to Cassandra - Oracle User GroupAn Introduction to Cassandra - Oracle User Group
An Introduction to Cassandra - Oracle User Group
 
NoSQL?? (marc)
NoSQL?? (marc)NoSQL?? (marc)
NoSQL?? (marc)
 
OVERVIEW OF FACEBOOK SCALABLE ARCHITECTURE.
OVERVIEW  OF FACEBOOK SCALABLE ARCHITECTURE.OVERVIEW  OF FACEBOOK SCALABLE ARCHITECTURE.
OVERVIEW OF FACEBOOK SCALABLE ARCHITECTURE.
 
Raising the Tides: Open Source Analytics for Data Science
Raising the Tides: Open Source Analytics for Data ScienceRaising the Tides: Open Source Analytics for Data Science
Raising the Tides: Open Source Analytics for Data Science
 
NOSQL vs SQL
NOSQL vs SQLNOSQL vs SQL
NOSQL vs SQL
 
Web 2.0 Is the Future of Education
Web 2.0 Is the Future of EducationWeb 2.0 Is the Future of Education
Web 2.0 Is the Future of Education
 
Facebook Architecture - Breaking it Open
Facebook Architecture - Breaking it OpenFacebook Architecture - Breaking it Open
Facebook Architecture - Breaking it Open
 
Digital Marketing for the Travel Industry in the Web 2.0. Scenario
Digital Marketing for the Travel Industry in the Web 2.0. ScenarioDigital Marketing for the Travel Industry in the Web 2.0. Scenario
Digital Marketing for the Travel Industry in the Web 2.0. Scenario
 
Big Data - O que é o hadoop, map reduce, hdfs e hive
Big Data - O que é o hadoop, map reduce, hdfs e hiveBig Data - O que é o hadoop, map reduce, hdfs e hive
Big Data - O que é o hadoop, map reduce, hdfs e hive
 
Intro To MongoDB
Intro To MongoDBIntro To MongoDB
Intro To MongoDB
 
Introduction to MongoDB
Introduction to MongoDBIntroduction to MongoDB
Introduction to MongoDB
 
Benchmarking Top NoSQL Databases: Apache Cassandra, Apache HBase and MongoDB
Benchmarking Top NoSQL Databases: Apache Cassandra, Apache HBase and MongoDBBenchmarking Top NoSQL Databases: Apache Cassandra, Apache HBase and MongoDB
Benchmarking Top NoSQL Databases: Apache Cassandra, Apache HBase and MongoDB
 
Introduction to NoSQL Databases
Introduction to NoSQL DatabasesIntroduction to NoSQL Databases
Introduction to NoSQL Databases
 
A Beginners Guide to noSQL
A Beginners Guide to noSQLA Beginners Guide to noSQL
A Beginners Guide to noSQL
 

Semelhante a Creating a MongoDB Based Logging System in a Webservice Heavy Environment

Startups Media Release Nsiapay
Startups Media Release NsiapayStartups Media Release Nsiapay
Startups Media Release NsiapayHadi Gunawan
 
Angular JS and Magento
Angular JS and MagentoAngular JS and Magento
Angular JS and MagentoVinci Rufus
 
Virtual Data Centers with OpenStack Quantum
Virtual Data Centers with OpenStack QuantumVirtual Data Centers with OpenStack Quantum
Virtual Data Centers with OpenStack Quantumlaurabeckcahoon
 
Virtual data centers with OpenStack Quantum
Virtual data centers with OpenStack QuantumVirtual data centers with OpenStack Quantum
Virtual data centers with OpenStack QuantumLew Tucker
 
Erlang factory slides
Erlang factory slidesErlang factory slides
Erlang factory slidesNoah Linden
 
Shreeraj-Hacking_Web_2
Shreeraj-Hacking_Web_2Shreeraj-Hacking_Web_2
Shreeraj-Hacking_Web_2guest66dc5f
 
J-Spring 2018 - A journey from Java EE to Cloud Native microservices
J-Spring 2018 - A journey from Java EE to Cloud Native microservicesJ-Spring 2018 - A journey from Java EE to Cloud Native microservices
J-Spring 2018 - A journey from Java EE to Cloud Native microservicesVincent Oostindie
 
SproutCore GTUG
SproutCore GTUGSproutCore GTUG
SproutCore GTUGsproutit
 
[WSO2Con EU 2017] Microservice Architecture (MSA) and Integration Microservices
[WSO2Con EU 2017] Microservice Architecture (MSA) and Integration Microservices[WSO2Con EU 2017] Microservice Architecture (MSA) and Integration Microservices
[WSO2Con EU 2017] Microservice Architecture (MSA) and Integration MicroservicesWSO2
 
GSMA HongKong presentation by Mr. Neel Chowdhury, CMO, Obopay
GSMA  HongKong presentation by Mr. Neel Chowdhury, CMO, ObopayGSMA  HongKong presentation by Mr. Neel Chowdhury, CMO, Obopay
GSMA HongKong presentation by Mr. Neel Chowdhury, CMO, ObopayObopay
 
Getting Enough REST? Understanding the SharePoint 2013 REST / ODATA Services
Getting Enough REST? Understanding the SharePoint 2013 REST / ODATA ServicesGetting Enough REST? Understanding the SharePoint 2013 REST / ODATA Services
Getting Enough REST? Understanding the SharePoint 2013 REST / ODATA ServicesHilton Giesenow
 
Shaping your career for Cloud
Shaping your career for CloudShaping your career for Cloud
Shaping your career for Cloudcloudstoryin
 
Windows Azure and the Hybrid Cloud
Windows Azure and the Hybrid CloudWindows Azure and the Hybrid Cloud
Windows Azure and the Hybrid CloudWindows Azure
 

Semelhante a Creating a MongoDB Based Logging System in a Webservice Heavy Environment (20)

Startups Media Release Nsiapay
Startups Media Release NsiapayStartups Media Release Nsiapay
Startups Media Release Nsiapay
 
MOINC Server
MOINC ServerMOINC Server
MOINC Server
 
MOINC Server
MOINC ServerMOINC Server
MOINC Server
 
Angular JS and Magento
Angular JS and MagentoAngular JS and Magento
Angular JS and Magento
 
Virtual Data Centers with OpenStack Quantum
Virtual Data Centers with OpenStack QuantumVirtual Data Centers with OpenStack Quantum
Virtual Data Centers with OpenStack Quantum
 
Virtual data centers with OpenStack Quantum
Virtual data centers with OpenStack QuantumVirtual data centers with OpenStack Quantum
Virtual data centers with OpenStack Quantum
 
Erlang factory slides
Erlang factory slidesErlang factory slides
Erlang factory slides
 
Erlang factory slides
Erlang factory slidesErlang factory slides
Erlang factory slides
 
Shreeraj-Hacking_Web_2
Shreeraj-Hacking_Web_2Shreeraj-Hacking_Web_2
Shreeraj-Hacking_Web_2
 
J-Spring 2018 - A journey from Java EE to Cloud Native microservices
J-Spring 2018 - A journey from Java EE to Cloud Native microservicesJ-Spring 2018 - A journey from Java EE to Cloud Native microservices
J-Spring 2018 - A journey from Java EE to Cloud Native microservices
 
Internship
InternshipInternship
Internship
 
SproutCore GTUG
SproutCore GTUGSproutCore GTUG
SproutCore GTUG
 
E-Wallet Platform 2017
E-Wallet Platform 2017E-Wallet Platform 2017
E-Wallet Platform 2017
 
MOINC Server Manager
MOINC Server ManagerMOINC Server Manager
MOINC Server Manager
 
[WSO2Con EU 2017] Microservice Architecture (MSA) and Integration Microservices
[WSO2Con EU 2017] Microservice Architecture (MSA) and Integration Microservices[WSO2Con EU 2017] Microservice Architecture (MSA) and Integration Microservices
[WSO2Con EU 2017] Microservice Architecture (MSA) and Integration Microservices
 
Web 2.0 Futures
Web 2.0 FuturesWeb 2.0 Futures
Web 2.0 Futures
 
GSMA HongKong presentation by Mr. Neel Chowdhury, CMO, Obopay
GSMA  HongKong presentation by Mr. Neel Chowdhury, CMO, ObopayGSMA  HongKong presentation by Mr. Neel Chowdhury, CMO, Obopay
GSMA HongKong presentation by Mr. Neel Chowdhury, CMO, Obopay
 
Getting Enough REST? Understanding the SharePoint 2013 REST / ODATA Services
Getting Enough REST? Understanding the SharePoint 2013 REST / ODATA ServicesGetting Enough REST? Understanding the SharePoint 2013 REST / ODATA Services
Getting Enough REST? Understanding the SharePoint 2013 REST / ODATA Services
 
Shaping your career for Cloud
Shaping your career for CloudShaping your career for Cloud
Shaping your career for Cloud
 
Windows Azure and the Hybrid Cloud
Windows Azure and the Hybrid CloudWindows Azure and the Hybrid Cloud
Windows Azure and the Hybrid Cloud
 

Mais de MongoDB

MongoDB SoCal 2020: Migrate Anything* to MongoDB Atlas
MongoDB SoCal 2020: Migrate Anything* to MongoDB AtlasMongoDB SoCal 2020: Migrate Anything* to MongoDB Atlas
MongoDB SoCal 2020: Migrate Anything* to MongoDB AtlasMongoDB
 
MongoDB SoCal 2020: Go on a Data Safari with MongoDB Charts!
MongoDB SoCal 2020: Go on a Data Safari with MongoDB Charts!MongoDB SoCal 2020: Go on a Data Safari with MongoDB Charts!
MongoDB SoCal 2020: Go on a Data Safari with MongoDB Charts!MongoDB
 
MongoDB SoCal 2020: Using MongoDB Services in Kubernetes: Any Platform, Devel...
MongoDB SoCal 2020: Using MongoDB Services in Kubernetes: Any Platform, Devel...MongoDB SoCal 2020: Using MongoDB Services in Kubernetes: Any Platform, Devel...
MongoDB SoCal 2020: Using MongoDB Services in Kubernetes: Any Platform, Devel...MongoDB
 
MongoDB SoCal 2020: A Complete Methodology of Data Modeling for MongoDB
MongoDB SoCal 2020: A Complete Methodology of Data Modeling for MongoDBMongoDB SoCal 2020: A Complete Methodology of Data Modeling for MongoDB
MongoDB SoCal 2020: A Complete Methodology of Data Modeling for MongoDBMongoDB
 
MongoDB SoCal 2020: From Pharmacist to Analyst: Leveraging MongoDB for Real-T...
MongoDB SoCal 2020: From Pharmacist to Analyst: Leveraging MongoDB for Real-T...MongoDB SoCal 2020: From Pharmacist to Analyst: Leveraging MongoDB for Real-T...
MongoDB SoCal 2020: From Pharmacist to Analyst: Leveraging MongoDB for Real-T...MongoDB
 
MongoDB SoCal 2020: Best Practices for Working with IoT and Time-series Data
MongoDB SoCal 2020: Best Practices for Working with IoT and Time-series DataMongoDB SoCal 2020: Best Practices for Working with IoT and Time-series Data
MongoDB SoCal 2020: Best Practices for Working with IoT and Time-series DataMongoDB
 
MongoDB SoCal 2020: MongoDB Atlas Jump Start
 MongoDB SoCal 2020: MongoDB Atlas Jump Start MongoDB SoCal 2020: MongoDB Atlas Jump Start
MongoDB SoCal 2020: MongoDB Atlas Jump StartMongoDB
 
MongoDB .local San Francisco 2020: Powering the new age data demands [Infosys]
MongoDB .local San Francisco 2020: Powering the new age data demands [Infosys]MongoDB .local San Francisco 2020: Powering the new age data demands [Infosys]
MongoDB .local San Francisco 2020: Powering the new age data demands [Infosys]MongoDB
 
MongoDB .local San Francisco 2020: Using Client Side Encryption in MongoDB 4.2
MongoDB .local San Francisco 2020: Using Client Side Encryption in MongoDB 4.2MongoDB .local San Francisco 2020: Using Client Side Encryption in MongoDB 4.2
MongoDB .local San Francisco 2020: Using Client Side Encryption in MongoDB 4.2MongoDB
 
MongoDB .local San Francisco 2020: Using MongoDB Services in Kubernetes: any ...
MongoDB .local San Francisco 2020: Using MongoDB Services in Kubernetes: any ...MongoDB .local San Francisco 2020: Using MongoDB Services in Kubernetes: any ...
MongoDB .local San Francisco 2020: Using MongoDB Services in Kubernetes: any ...MongoDB
 
MongoDB .local San Francisco 2020: Go on a Data Safari with MongoDB Charts!
MongoDB .local San Francisco 2020: Go on a Data Safari with MongoDB Charts!MongoDB .local San Francisco 2020: Go on a Data Safari with MongoDB Charts!
MongoDB .local San Francisco 2020: Go on a Data Safari with MongoDB Charts!MongoDB
 
MongoDB .local San Francisco 2020: From SQL to NoSQL -- Changing Your Mindset
MongoDB .local San Francisco 2020: From SQL to NoSQL -- Changing Your MindsetMongoDB .local San Francisco 2020: From SQL to NoSQL -- Changing Your Mindset
MongoDB .local San Francisco 2020: From SQL to NoSQL -- Changing Your MindsetMongoDB
 
MongoDB .local San Francisco 2020: MongoDB Atlas Jumpstart
MongoDB .local San Francisco 2020: MongoDB Atlas JumpstartMongoDB .local San Francisco 2020: MongoDB Atlas Jumpstart
MongoDB .local San Francisco 2020: MongoDB Atlas JumpstartMongoDB
 
MongoDB .local San Francisco 2020: Tips and Tricks++ for Querying and Indexin...
MongoDB .local San Francisco 2020: Tips and Tricks++ for Querying and Indexin...MongoDB .local San Francisco 2020: Tips and Tricks++ for Querying and Indexin...
MongoDB .local San Francisco 2020: Tips and Tricks++ for Querying and Indexin...MongoDB
 
MongoDB .local San Francisco 2020: Aggregation Pipeline Power++
MongoDB .local San Francisco 2020: Aggregation Pipeline Power++MongoDB .local San Francisco 2020: Aggregation Pipeline Power++
MongoDB .local San Francisco 2020: Aggregation Pipeline Power++MongoDB
 
MongoDB .local San Francisco 2020: A Complete Methodology of Data Modeling fo...
MongoDB .local San Francisco 2020: A Complete Methodology of Data Modeling fo...MongoDB .local San Francisco 2020: A Complete Methodology of Data Modeling fo...
MongoDB .local San Francisco 2020: A Complete Methodology of Data Modeling fo...MongoDB
 
MongoDB .local San Francisco 2020: MongoDB Atlas Data Lake Technical Deep Dive
MongoDB .local San Francisco 2020: MongoDB Atlas Data Lake Technical Deep DiveMongoDB .local San Francisco 2020: MongoDB Atlas Data Lake Technical Deep Dive
MongoDB .local San Francisco 2020: MongoDB Atlas Data Lake Technical Deep DiveMongoDB
 
MongoDB .local San Francisco 2020: Developing Alexa Skills with MongoDB & Golang
MongoDB .local San Francisco 2020: Developing Alexa Skills with MongoDB & GolangMongoDB .local San Francisco 2020: Developing Alexa Skills with MongoDB & Golang
MongoDB .local San Francisco 2020: Developing Alexa Skills with MongoDB & GolangMongoDB
 
MongoDB .local Paris 2020: Realm : l'ingrédient secret pour de meilleures app...
MongoDB .local Paris 2020: Realm : l'ingrédient secret pour de meilleures app...MongoDB .local Paris 2020: Realm : l'ingrédient secret pour de meilleures app...
MongoDB .local Paris 2020: Realm : l'ingrédient secret pour de meilleures app...MongoDB
 
MongoDB .local Paris 2020: Upply @MongoDB : Upply : Quand le Machine Learning...
MongoDB .local Paris 2020: Upply @MongoDB : Upply : Quand le Machine Learning...MongoDB .local Paris 2020: Upply @MongoDB : Upply : Quand le Machine Learning...
MongoDB .local Paris 2020: Upply @MongoDB : Upply : Quand le Machine Learning...MongoDB
 

Mais de MongoDB (20)

MongoDB SoCal 2020: Migrate Anything* to MongoDB Atlas
MongoDB SoCal 2020: Migrate Anything* to MongoDB AtlasMongoDB SoCal 2020: Migrate Anything* to MongoDB Atlas
MongoDB SoCal 2020: Migrate Anything* to MongoDB Atlas
 
MongoDB SoCal 2020: Go on a Data Safari with MongoDB Charts!
MongoDB SoCal 2020: Go on a Data Safari with MongoDB Charts!MongoDB SoCal 2020: Go on a Data Safari with MongoDB Charts!
MongoDB SoCal 2020: Go on a Data Safari with MongoDB Charts!
 
MongoDB SoCal 2020: Using MongoDB Services in Kubernetes: Any Platform, Devel...
MongoDB SoCal 2020: Using MongoDB Services in Kubernetes: Any Platform, Devel...MongoDB SoCal 2020: Using MongoDB Services in Kubernetes: Any Platform, Devel...
MongoDB SoCal 2020: Using MongoDB Services in Kubernetes: Any Platform, Devel...
 
MongoDB SoCal 2020: A Complete Methodology of Data Modeling for MongoDB
MongoDB SoCal 2020: A Complete Methodology of Data Modeling for MongoDBMongoDB SoCal 2020: A Complete Methodology of Data Modeling for MongoDB
MongoDB SoCal 2020: A Complete Methodology of Data Modeling for MongoDB
 
MongoDB SoCal 2020: From Pharmacist to Analyst: Leveraging MongoDB for Real-T...
MongoDB SoCal 2020: From Pharmacist to Analyst: Leveraging MongoDB for Real-T...MongoDB SoCal 2020: From Pharmacist to Analyst: Leveraging MongoDB for Real-T...
MongoDB SoCal 2020: From Pharmacist to Analyst: Leveraging MongoDB for Real-T...
 
MongoDB SoCal 2020: Best Practices for Working with IoT and Time-series Data
MongoDB SoCal 2020: Best Practices for Working with IoT and Time-series DataMongoDB SoCal 2020: Best Practices for Working with IoT and Time-series Data
MongoDB SoCal 2020: Best Practices for Working with IoT and Time-series Data
 
MongoDB SoCal 2020: MongoDB Atlas Jump Start
 MongoDB SoCal 2020: MongoDB Atlas Jump Start MongoDB SoCal 2020: MongoDB Atlas Jump Start
MongoDB SoCal 2020: MongoDB Atlas Jump Start
 
MongoDB .local San Francisco 2020: Powering the new age data demands [Infosys]
MongoDB .local San Francisco 2020: Powering the new age data demands [Infosys]MongoDB .local San Francisco 2020: Powering the new age data demands [Infosys]
MongoDB .local San Francisco 2020: Powering the new age data demands [Infosys]
 
MongoDB .local San Francisco 2020: Using Client Side Encryption in MongoDB 4.2
MongoDB .local San Francisco 2020: Using Client Side Encryption in MongoDB 4.2MongoDB .local San Francisco 2020: Using Client Side Encryption in MongoDB 4.2
MongoDB .local San Francisco 2020: Using Client Side Encryption in MongoDB 4.2
 
MongoDB .local San Francisco 2020: Using MongoDB Services in Kubernetes: any ...
MongoDB .local San Francisco 2020: Using MongoDB Services in Kubernetes: any ...MongoDB .local San Francisco 2020: Using MongoDB Services in Kubernetes: any ...
MongoDB .local San Francisco 2020: Using MongoDB Services in Kubernetes: any ...
 
MongoDB .local San Francisco 2020: Go on a Data Safari with MongoDB Charts!
MongoDB .local San Francisco 2020: Go on a Data Safari with MongoDB Charts!MongoDB .local San Francisco 2020: Go on a Data Safari with MongoDB Charts!
MongoDB .local San Francisco 2020: Go on a Data Safari with MongoDB Charts!
 
MongoDB .local San Francisco 2020: From SQL to NoSQL -- Changing Your Mindset
MongoDB .local San Francisco 2020: From SQL to NoSQL -- Changing Your MindsetMongoDB .local San Francisco 2020: From SQL to NoSQL -- Changing Your Mindset
MongoDB .local San Francisco 2020: From SQL to NoSQL -- Changing Your Mindset
 
MongoDB .local San Francisco 2020: MongoDB Atlas Jumpstart
MongoDB .local San Francisco 2020: MongoDB Atlas JumpstartMongoDB .local San Francisco 2020: MongoDB Atlas Jumpstart
MongoDB .local San Francisco 2020: MongoDB Atlas Jumpstart
 
MongoDB .local San Francisco 2020: Tips and Tricks++ for Querying and Indexin...
MongoDB .local San Francisco 2020: Tips and Tricks++ for Querying and Indexin...MongoDB .local San Francisco 2020: Tips and Tricks++ for Querying and Indexin...
MongoDB .local San Francisco 2020: Tips and Tricks++ for Querying and Indexin...
 
MongoDB .local San Francisco 2020: Aggregation Pipeline Power++
MongoDB .local San Francisco 2020: Aggregation Pipeline Power++MongoDB .local San Francisco 2020: Aggregation Pipeline Power++
MongoDB .local San Francisco 2020: Aggregation Pipeline Power++
 
MongoDB .local San Francisco 2020: A Complete Methodology of Data Modeling fo...
MongoDB .local San Francisco 2020: A Complete Methodology of Data Modeling fo...MongoDB .local San Francisco 2020: A Complete Methodology of Data Modeling fo...
MongoDB .local San Francisco 2020: A Complete Methodology of Data Modeling fo...
 
MongoDB .local San Francisco 2020: MongoDB Atlas Data Lake Technical Deep Dive
MongoDB .local San Francisco 2020: MongoDB Atlas Data Lake Technical Deep DiveMongoDB .local San Francisco 2020: MongoDB Atlas Data Lake Technical Deep Dive
MongoDB .local San Francisco 2020: MongoDB Atlas Data Lake Technical Deep Dive
 
MongoDB .local San Francisco 2020: Developing Alexa Skills with MongoDB & Golang
MongoDB .local San Francisco 2020: Developing Alexa Skills with MongoDB & GolangMongoDB .local San Francisco 2020: Developing Alexa Skills with MongoDB & Golang
MongoDB .local San Francisco 2020: Developing Alexa Skills with MongoDB & Golang
 
MongoDB .local Paris 2020: Realm : l'ingrédient secret pour de meilleures app...
MongoDB .local Paris 2020: Realm : l'ingrédient secret pour de meilleures app...MongoDB .local Paris 2020: Realm : l'ingrédient secret pour de meilleures app...
MongoDB .local Paris 2020: Realm : l'ingrédient secret pour de meilleures app...
 
MongoDB .local Paris 2020: Upply @MongoDB : Upply : Quand le Machine Learning...
MongoDB .local Paris 2020: Upply @MongoDB : Upply : Quand le Machine Learning...MongoDB .local Paris 2020: Upply @MongoDB : Upply : Quand le Machine Learning...
MongoDB .local Paris 2020: Upply @MongoDB : Upply : Quand le Machine Learning...
 

Último

How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfhans926745
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 

Último (20)

How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 

Creating a MongoDB Based Logging System in a Webservice Heavy Environment

  • 1. Creating MongoDB Based Logging System in Webservice Heavy Environment Arkadiusz Goralski @MongoDB London 2013 piątek, 29 marca 13
  • 2. Web service Heavy Environment Web Application Web Server 1 Web Server 2 ... Web Server n piątek, 29 marca 13
  • 3. Web service Heavy Environment Web Application Web Server 1 Web Server 2 ... Web Server n Gaming Providers Sportsbook Slots Live Mini betting games Casino Poker Live Account dealer Management piątek, 29 marca 13
  • 4. Web service Heavy Environment Web Application Web Server 1 Web Server 2 ... Web Server n Gaming Providers Payment Providers Sportsbook Slots Skrill Ukash Ecocard Live Mini Neteller Paysafe Instadebit betting games Bank Casino Poker Visa Ecocard transfers Live Account Mastercard Envoy Webmoney dealer Management piątek, 29 marca 13
  • 5. Web service Heavy Environment Web Application Web Server 1 Web Server 2 ... Web Server n Gaming Providers Payment Providers Other Subsystems Bonus Common Sportsbook Slots Skrill Ukash Ecocard engine Wallet Live Mini Neteller Paysafe Instadebit Price feeds Mobile API betting games Bank Casino Poker Visa Ecocard Anti fraud Geo IP transfers Live Account Mastercard Envoy Webmoney dealer Management piątek, 29 marca 13
  • 6. Different dialects SOAP JSON RPC Web REST JSON XML RPC Application REST XML HTTP Calls piątek, 29 marca 13
  • 7. How to keep sanity? • why the deposit failed for user ... ? • user ... claims he didn’t place this bet? • can you give me a number of users that ... ? • can you tell me what user ... was doing on ... ? • why user ... couldn’t log in? • why customer ... couldn’t open an account? piątek, 29 marca 13
  • 8. Why MongoDB is a good fit • schemaless • fire and forget • scalable and easy to replicate • capped collections & tailable cursor • centralized • easy remote access piątek, 29 marca 13
  • 9. MongoDB deployment Web Application Web Server 1 Web Server 2 ... Web Server n piątek, 29 marca 13
  • 10. MongoDB deployment Web Application Web Server 1 Web Server 2 ... Web Server n Replica Set Payment Providers MongoDB MongoDB MongoDB MongoDB (host 1) (host 2) (host 3) (hidden) piątek, 29 marca 13
  • 11. MongoDB deployment Web Application Web Server 1 Web Server 2 ... Web Server n Replica Set Payment Providers MongoDB MongoDB MongoDB MongoDB (host 1) (host 2) (host 3) (hidden) Log Viewer RealPayment Providers time Simple Simple Real time log viewer queries reports alerts Secondary preferred piątek, 29 marca 13
  • 12. MongoDB deployment Web Application Web Server 1 Web Server 2 ... Web Server n Replica Set Payment Providers MongoDB MongoDB MongoDB MongoDB (host 1) (host 2) (host 3) (hidden) Log Viewer Data mining RealPayment Providers time Simple Simple Real time Payment Providers Heavy Analytics log viewer queries reports alerts queries Secondary preferred Hidden node only piątek, 29 marca 13
  • 14. Log entry schema Prepare web service request piątek, 29 marca 13
  • 15. Log entry schema Prepare web service request JSON-ize Send it piątek, 29 marca 13
  • 16. Log entry schema Prepare web service request JSON-ize Send it JSON-ize Get the result piątek, 29 marca 13
  • 17. Log entry schema Prepare web service request JSON-ize Send it JSON-ize Get the result Was is successful piątek, 29 marca 13
  • 18. Log entry schema Prepare web service request JSON-ize Send it JSON-ize Get the result Was is successful Proceed with Save it execution piątek, 29 marca 13
  • 19. So you're logging data to MongoDB, now what? • all data is searchable (including web service specific data) • you can use the aggregation framework • trace user sessions across different web services • just sit and watch the logs piątek, 29 marca 13
  • 20. Detect anomalies in the data • realtime issue analysis • subsystem failures • fraud • traffic anomalies piątek, 29 marca 13
  • 21. Data mining • create a replica for analytics • analyze customer behaviour • spot fraudulent activity • create reports • proactive support • deployment analytics • police enquiries piątek, 29 marca 13
  • 22. Share the logs • don’t be a human interface to MongoDB • the more you share the more time is saved, your time • just a simple query interface is enough • give separate node to marketing people piątek, 29 marca 13
  • 23. Push notifications When something goes really bad Alert Scenarios Email Tailable cursor Node.js Severity Text MongoDB app rating message Call people, it's serious! piątek, 29 marca 13
  • 24. Open Source Alternatives • GrayLog (uses MongoDB) • LogStash (MongoDB output plugins) • Fluent (MongoDB storage) piątek, 29 marca 13
  • 25. Thank you Have fun with MongoDB piątek, 29 marca 13