HOW DSE AND AZURE MAKE YOUR APPS SCALE FROM DAY 1CARLOS ROLOAPRIL 2016
WHO AM I?
© 2016 Pythian Confidential 2
• Cassandra Consultant for Pythian
• I’m all about Distributed Systems
• Certified Datastax Architect
• Cassandra MVP
• Programming since 1997
• Cassandra DBA since 2011
• Previous experience:• INESC/ID
• DRI
• Portugal Telecom
• Leaseweb CDN
© 2016 Pythian Confidential 3
ABOUT PYTHIANPythian’s 400+ professionals enable digital transformation
by helping companies adopt and manage disruptive technologies to better compete.
Systems currently managed by Pythian
EXPERIENCED
Pythian experts in 35 countries
GLOBAL
of experience gathered and shared over 19 years
EXPERTS
© 2016 Pythian Confidential 4
11,800 2 millennia400
AGENDA
1. Building Apps
2. Scale from day 1
3. DSE and Azure
4. Do more with DSE
5. Real Examples
6. Q&A
© 2016 Pythian Confidential 5
HOW IT ALL STARTS
© 2016 Pythian Confidential 6
1. Identify the case for a new app/refactor
2. Design
3. Prototype
4. ????
5. Production
App Data
APP LIFECYCLE
© 2016 Pythian Confidential 7
WHAT WE THOUGHT
Data Bus
Clients
C*App
App
WHAT IS IN PRODUCTION
• It was a prototype!• We didn’t think of:
• Performance• Scaling• Redundancy
WHY?
© 2016 Pythian Confidential 8
• How?• Start with Cassandra▪Replication, Redundancy, Scaling for
free!• Start in the cloud▪Replication, Redundancy and Scaling!
SCALE FROM DAY 1
© 2016 Pythian Confidential 9
• DSE• Cassandra hardened version by
DataStax• Geo-Distributed, Replicated,
Scalable Database• Azure
• Microsoft Cloud offering• Extensive service offering, available
in 27 Locations
DSE AND AZURE
© 2016 Pythian Confidential 10
SCALE
© 2016 Pythian Confidential 11
1
2
App C*
3
App C*C*C*App C*C*C*
App C*C*C*
DC 1
DC 2
DC 3
EASIER SAID THAN DONE…
© 2016 Pythian Confidential 12
• It’s Cassandra!• Leverage Azure tooling!
• Templating• Deep integration with Windows• Ever increasing integration with Linux• And this:
• Requirements change• New functionalities are expected• This brings change…
DO MORE WITH DSE
© 2016 Pythian Confidential 13
DO MORE WITH DSE (2)
© 2016 Pythian Confidential 14
App C*C*C*App C*C*C*
App C*C*C*DC 1
DC 2
DC 3
Search Analytics Analytics Search
ADD MORE MOVING PARTS
DO MORE WITH DSE (3)
© 2016 Pythian Confidential 15
App C*C*C* App C*C*C*
App C*C*C*
DC 1 - Cassandra
DC 2 - Analytics
DC 3 - Search
DO IT WITH DSE
• More flexibility• Less Moving parts• It is also possible to migrate!
DSE VS PLAIN CASSANDRA
© 2016 Pythian Confidential 16
• Almost all software is “prototypes”• Change is expensive• So many moving pieces that
monitoring is non-existent• Maintenance hours eat all the
development, things tend to be as is.
REAL EXAMPLE –NO CLOUD, NO C*
© 2016 Pythian Confidential 17
REAL EXAMPLE – CASSANDRA IN PLACE
© 2016 Pythian Confidential 18
• Application needed to evolve to keep pace• Rebuild data model
• Easy to move data• Easy to implement search and analytics• Lots of features deployed while keep system working
• Downside:• Hours of development burned on building tooling
REAL EXAMPLE – C* + CLOUD
© 2016 Pythian Confidential 19
• Application was suffering bad, terrible performance, difficult to maintain.• Lots of tools available and a lot of flexibility
• 1st month - app is performing better• 2nd month - monitoring is in place for everything• 3rd month - refactors are happening• Expected new launch after 5 months
© 2016 Pythian Confidential 20
TAKEAWAYS• Start with a scalable
Foundation• Use flexible tools/platforms• Development time can be
seriously cut by using available features
• Don’t forget to shutdown your unused environments!
© 2016 Pythian Confidential 21
Q & ATwitter: @cjroloLinkedIn: linkedin.com/carlosjuzarteroloBlog: blog.pythian.com/carlosrolo