Introduction to MongoDB with Sitecore

Post on 06-Apr-2017

215 views 3 download

Transcript of Introduction to MongoDB with Sitecore

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

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

COPYRIGHT 2017

Introduction

SUG Bangalore

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

COPYRIGHT 2017

Why Sitecore xDB using MongoDB

SUG Bangalore

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

COPYRIGHT 2017

Scalability:a. Standalone environment

SUG Bangalore

COPYRIGHT 2017

Scalability:

b.Vertical Scaling

SUG Bangalore

COPYRIGHT 2017

Scalability:

c. Horizontal Scaling

SUG Bangalore

COPYRIGHT 2017

When we should use MongoDB

SUG Bangalore

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

COPYRIGHT 2017

Who is using MongoDB

SUG Bangalore

COPYRIGHT 2017

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

COPYRIGHT 2017

Architecture of MongoDB

SUG Bangalore

COPYRIGHT 2017

SUG Bangalore

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

COPYRIGHT 2017

Connection Strings

SUG Bangalore

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

COPYRIGHT 2017

SUG Bangalore

COPYRIGHT 2017

SUG Bangalore

COPYRIGHT 2017

xDB Deployment

SUG Bangalore

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

COPYRIGHT 2017

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

Phone no: +91-9945643716Email : ankitjoshi2409@gmail.com

SUG Bangalore

COPYRIGHT 2017

Thank You

SUG Bangalore