Introduction to MongoDB with Sitecore

24
Introduction to Mongo DB with Sitecore | March 26, 2017 Sitecore User Group Bangalore ANKIT JOSHI

Transcript of Introduction to MongoDB with Sitecore

Page 1: Introduction to MongoDB with Sitecore

Introduction to Mongo DB with Sitecore | March 26, 2017Sitecore User Group Bangalore ANKIT JOSHI

Page 2: Introduction to MongoDB with Sitecore

COPYRIGHT 2017

AGENDA 1. Why to use2. When to use3. Who is using 4. MongoDB Architecture5. Connection strings6. Analytics Database

THEME: MongoDB in Sitecore

SUG Bangalore

Page 3: Introduction to MongoDB with Sitecore

COPYRIGHT 2017

Introduction

SUG Bangalore

Page 4: Introduction to MongoDB with Sitecore

COPYRIGHT 2017

Sitecore’s Experience Database (xDB) was introduced in Sitecore 7.5 to solve the problem of scaling analytics.

Experience Marketing is the new name for DMS.

MongoDB:

Open source NoSQL Document-oriented database. Primarily used for collecting data and Information about visitors (for

analytics). Visitors and their interactions are written to MongoDB in JSON format,

which is then processed by an aggregation pipeline into a format that is used for reporting.

SUG Bangalore

Page 5: Introduction to MongoDB with Sitecore

COPYRIGHT 2017

Why Sitecore xDB using MongoDB

SUG Bangalore

Page 6: Introduction to MongoDB with Sitecore

COPYRIGHT 2017

Scalability

Standalone environment Vertical Scaling Horizontal Scaling

Performance Flexibility Unstructured data and Schemas

https://doc.sitecore.net/sitecore_experience_platform/setting_up_and_maintaining/xdb/platform/scalability_options

SUG Bangalore

Page 7: Introduction to MongoDB with Sitecore

COPYRIGHT 2017

Scalability:a. Standalone environment

SUG Bangalore

Page 8: Introduction to MongoDB with Sitecore

COPYRIGHT 2017

Scalability:

b.Vertical Scaling

SUG Bangalore

Page 9: Introduction to MongoDB with Sitecore

COPYRIGHT 2017

Scalability:

c. Horizontal Scaling

SUG Bangalore

Page 10: Introduction to MongoDB with Sitecore

COPYRIGHT 2017

When we should use MongoDB

SUG Bangalore

Page 11: Introduction to MongoDB with Sitecore

COPYRIGHT 2017

We should think about using MongoDB when our content and business are based more into:

Behaviours Traffic Inputs Audience

Above points makes MongoDB as a best candidate for Sitecore xDB implementation.

SUG Bangalore

Page 12: Introduction to MongoDB with Sitecore

COPYRIGHT 2017

Who is using MongoDB

SUG Bangalore

Page 13: Introduction to MongoDB with Sitecore

COPYRIGHT 2017

Source- https://www.mongodb.com/ SUG Bangalore

Page 14: Introduction to MongoDB with Sitecore

COPYRIGHT 2017

Architecture of MongoDB

SUG Bangalore

Page 15: Introduction to MongoDB with Sitecore

COPYRIGHT 2017

SUG Bangalore

Page 16: Introduction to MongoDB with Sitecore

COPYRIGHT 2017

Replication- Availability MongoDB provides high data

availability with replica sets. A replica set consists of two or

more copies of the data.

Sharding Performance

SUG Bangalore

Page 17: Introduction to MongoDB with Sitecore

COPYRIGHT 2017

Connection Strings

SUG Bangalore

Page 18: Introduction to MongoDB with Sitecore

COPYRIGHT 2017

Inference:

name – analytics,tracking.live, tracking.history and tracking.contact. mongodb prefix servername- in case of local, it’s default to localhost Mongo database(collection name)

Note:This is for replicate set.

<add name=“analytics" connectionString="mongodb://localhost:27017/sample_sitecore_analytics" /><add name=“tracking.live" connectionString="mongodb://localhost:27017/sample_sitecore_tracking_live" /><add name=“tracking.history" connectionString="mongodb://localhost:27017/sample_sitecore_tracking_history" /><add name=“tracking.contact" connectionString="mongodb://localhost:27017/sample_sitecore_tracking_contact" />

<add name="session" connectionString="mongodb://server1,server2,server3/sample_sitecore_session?replicaSet=rs_sample_sitecore" />

SUG Bangalore

Page 19: Introduction to MongoDB with Sitecore

COPYRIGHT 2017

SUG Bangalore

Page 20: Introduction to MongoDB with Sitecore

COPYRIGHT 2017

SUG Bangalore

Page 21: Introduction to MongoDB with Sitecore

COPYRIGHT 2017

xDB Deployment

SUG Bangalore

Page 22: Introduction to MongoDB with Sitecore

COPYRIGHT 2017

On-Premise Control over your implementation Hardware, network, security Availability

Cloud Powerful, scalable, and fully managed Low cost. Globally available at several Azure locations Recovery

SUG Bangalore

Page 23: Introduction to MongoDB with Sitecore

COPYRIGHT 2017

Blog: https://ankitjoshi2409.wordpress.com/ Linked In: https://www.linkedin.com/in/ankitjoshi2409/Twitter : https://twitter.com/ankitjoshi2409

Phone no: +91-9945643716Email : [email protected]

SUG Bangalore

Page 24: Introduction to MongoDB with Sitecore

COPYRIGHT 2017

Thank You

SUG Bangalore