SlideShare a Scribd company logo
1 of 24
Download to read offline
1/24/13
Cloud-Native: Flexible, Redundant, & Infinitely Scalable by
Nature.
Mission:
imPossible
Scaling in the
Cloud
1
Saturday, May 11, 13
1/24/13
Cloud-Native: Flexible, Redundant, & Infinitely Scalable by
Nature.
The Core: Message Bus
100% Cloud Native
2
Saturday, May 11, 13
1/24/13
Cloud-Native: Flexible, Redundant, & Infinitely Scalable by
Nature.
What Cloud Translates To
3
Small to mid size
instances
Lack of Control Over
Physical Resources
No delay in
expanding
Limited Storage
Options
Redundancy is Easy
Redundancy is
Necessary
Saturday, May 11, 13
1/24/13
Cloud-Native: Flexible, Redundant, & Infinitely Scalable by
Nature.
What Does Your Data Look Like?
• Log Data Classic OLTP
• By Nature, it’s Distributed
• Long & Mid Term Storage
• Eventual v. Immediate Consistency
• Speed of Retrieval -Classing OLAP Warehouse
4
Saturday, May 11, 13
1/24/13
Cloud-Native: Flexible, Redundant, & Infinitely Scalable by
Nature.
Requirements
5
• No Data Loss
• Ability to Pause, Promote, and Update Seamlessly
• Do Not be the Bottleneck
• Allow for Out of Sequence Events
• Restate and Correct Analytics
Saturday, May 11, 13
1/24/13
Cloud-Native: Flexible, Redundant, & Infinitely Scalable by
Nature.
Tools
• Chef
• Liquibase
• HornetQ
• Rep Mgr
• Postgres
6
Saturday, May 11, 13
1/24/13
Cloud-Native: Flexible, Redundant, & Infinitely Scalable by
Nature.
Distributed OLTP
7
Disparate event types can be sent to separate
instances.
Within the same event, parallel writes don’t require
synchronous multi-masters.
Batch Process Writes with Copy Into
Saturday, May 11, 13
1/24/13
Cloud-Native: Flexible, Redundant, & Infinitely Scalable by
Nature.
Vertical Sharding- Inheritance is your friend!
8
One parent per event, sharded by time, allows for efficient
querying, individual backups, and general sanity.
Saturday, May 11, 13
1/24/13
Cloud-Native: Flexible, Redundant, & Infinitely Scalable by
Nature.
Vertical Sharding- Inheritance is your friend!
9
Constraints: Timestamp not Date
Event ID (pkey)
Explain Analyze!
Saturday, May 11, 13
1/24/13
Cloud-Native: Flexible, Redundant, & Infinitely Scalable by
Nature.
Vertical Sharding- Inheritance is your friend!
10
WHILE startday <= endday endday LOOP
tomorrow := startday + interval '1 day';
index_name := 'idx_name' || replace(startday::text, '-', '');
tname := 'event_' || to_char(startday, 'YYYY_MM_DD');
EXECUTE 'create table ' || quote_ident(tname) ||'() inherits(event)';
EXECUTE 'ALTER TABLE ' || quote_ident(tname) ||' ADD CONSTRAINT
createdck CHECK (created >= ' || quote_literal(startday) ||'
AND created < '|| quote_literal(tomorrow) ||')';
EXECUTE 'CREATE INDEX '|| index_name ||' ON '||
quote_ident(tname)||'(act_id) ;
startday := tomorrow;
END LOOP;
Saturday, May 11, 13
1/24/13
Cloud-Native: Flexible, Redundant, & Infinitely Scalable by
Nature.
Close The Shard
11
FOR tbl IN SELECT t.table_name FROM information_schema.tables t
WHERE LEFT(t.table_name, 6 ) = 'event_'
AND t.table_name NOT IN (SELECT table_name
FROM information_schema.constraint_column_usage
WHERE constraint_name = 'idcheck')
AND REPLACE(REPLACE(t.table_name, 'event_', ''), '_', '-')::DATE < NOW()::DATE
LOOP
EXECUTE 'SELECT coalesce(min(event_id), 0), coalesce(max(event_id), 0) FROM ' ||
quote_ident(tbl) ||';'
INTO smin, smax;
EXECUTE 'ALTER TABLE '|| quote_ident(tbl) || ' ADD CONSTRAINT idcheck CHECK (event_id
BETWEEN '|| smin || ' AND ' || smax ||' )';
END LOOP;
Saturday, May 11, 13
1/24/13
Cloud-Native: Flexible, Redundant, & Infinitely Scalable by
Nature.
Star & Snowflake OLAP
12
Because API calls can’t time out.
Partition-able on fact, account - what works for you.
Saturday, May 11, 13
1/24/13
Cloud-Native: Flexible, Redundant, & Infinitely Scalable by
Nature.
Build Your Snowflake
13
• Pull Aggregates
• Add/Update base fact
• Cascade Updates Through Dimensions
Quartz Triggered Calls Three Phase Process:
Saturday, May 11, 13
1/24/13
Cloud-Native: Flexible, Redundant, & Infinitely Scalable by
Nature.
Build Your Snowflake
14
Driven by Sequential ID
Position Lookup, Pull, & Update in a Single
Transaction
Save State for Performance Analysis
Saturday, May 11, 13
1/24/13
Cloud-Native: Flexible, Redundant, & Infinitely Scalable by
Nature.
Aggregate on Pull
15
CREATE TABLE source_epoch
AS SELECT * FROM dblink('dbname=src host=127.0.0.2 port=5432 user=rickastley
password=never_gonna_give_you_up',
'SELECT some, thing, COUNT(id),
DATE_TRUNC(''hour'', TO_TIMESTAMP(date)),
MAX(id) AS id
FROM events
WHERE id > 50823461
GROUP BY 1, 2 ORDER BY id)
AS t(some TEXT, thing, INT event_count INT, hour TIMESTAMP, id INT)
Saturday, May 11, 13
1/24/13
Cloud-Native: Flexible, Redundant, & Infinitely Scalable by
Nature.
The Defense
16
Bugs for the entire system will find their way through
to your warehouse. Do not always trust your data.
Saturday, May 11, 13
1/24/13
Cloud-Native: Flexible, Redundant, & Infinitely Scalable by
Nature.
What It All Looks Like
17
Writer
Writer
Saturday, May 11, 13
1/24/13
Cloud-Native: Flexible, Redundant, & Infinitely Scalable by
Nature.
What It All Looks Like
18
Writer
Writer
OLTP
TypeA
OLTP
TypeB
OLTP
TypeB
Saturday, May 11, 13
1/24/13
Cloud-Native: Flexible, Redundant, & Infinitely Scalable by
Nature.
What It All Looks Like
19
Writer
Writer
OLTP
TypeA
OLTP
TypeB
OLTP
TypeB
OLAP
WH
Type1
Saturday, May 11, 13
1/24/13
Cloud-Native: Flexible, Redundant, & Infinitely Scalable by
Nature.
What It All Looks Like
20
Writer
Writer
OLAP
WH
Type1
Query Head
OLTP
TypeA
OLTP
TypeB
OLTP
TypeB
Saturday, May 11, 13
1/24/13
Cloud-Native: Flexible, Redundant, & Infinitely Scalable by
Nature.
What It All Looks Like
21
Writer
Writer
OLAP
WH
Type1
Query Head
OLTP
TypeA
OLTP
TypeB
OLTP
TypeC
OLTP
TypeA
OLTP
TypeA
OLTP
TypeC
OLTP
TypeC
Saturday, May 11, 13
1/24/13
Cloud-Native: Flexible, Redundant, & Infinitely Scalable by
Nature.
What It All Looks Like
22
Writer
Writer
OLAP
WH
Type1
Query Head
OLTP
TypeA
OLTP
TypeB
OLTP
TypeC
OLTP
TypeA
OLTP
TypeA
OLTP
TypeC
OLTP
TypeC
OLAP
WH
Type1
Query Head
Saturday, May 11, 13
1/24/13
Cloud-Native: Flexible, Redundant, & Infinitely Scalable by
Nature.
http://news.messagebus.com/2013/01/03/mission-impossible/
Questions?
23
Saturday, May 11, 13
1/24/13
Cloud-Native: Flexible, Redundant, & Infinitely Scalable by
Nature.
Thank You!
24
Saturday, May 11, 13

More Related Content

What's hot

Brisk hadoop june2011_sfjava
Brisk hadoop june2011_sfjavaBrisk hadoop june2011_sfjava
Brisk hadoop june2011_sfjavasrisatish ambati
 
Cassandra 2.0 and timeseries
Cassandra 2.0 and timeseriesCassandra 2.0 and timeseries
Cassandra 2.0 and timeseriesPatrick McFadin
 
DataStax: An Introduction to DataStax Enterprise Search
DataStax: An Introduction to DataStax Enterprise SearchDataStax: An Introduction to DataStax Enterprise Search
DataStax: An Introduction to DataStax Enterprise SearchDataStax Academy
 
From Postgres to Cassandra (Rimas Silkaitis, Heroku) | C* Summit 2016
From Postgres to Cassandra (Rimas Silkaitis, Heroku) | C* Summit 2016From Postgres to Cassandra (Rimas Silkaitis, Heroku) | C* Summit 2016
From Postgres to Cassandra (Rimas Silkaitis, Heroku) | C* Summit 2016DataStax
 
How to Reduce Your Database Total Cost of Ownership with TimescaleDB
How to Reduce Your Database Total Cost of Ownership with TimescaleDBHow to Reduce Your Database Total Cost of Ownership with TimescaleDB
How to Reduce Your Database Total Cost of Ownership with TimescaleDBTimescale
 
The data model is dead, long live the data model
The data model is dead, long live the data modelThe data model is dead, long live the data model
The data model is dead, long live the data modelPatrick McFadin
 
Cassandra 2.0 better, faster, stronger
Cassandra 2.0   better, faster, strongerCassandra 2.0   better, faster, stronger
Cassandra 2.0 better, faster, strongerPatrick McFadin
 
High Throughput Analytics with Cassandra & Azure
High Throughput Analytics with Cassandra & AzureHigh Throughput Analytics with Cassandra & Azure
High Throughput Analytics with Cassandra & AzureDataStax Academy
 
Time series with apache cassandra strata
Time series with apache cassandra   strataTime series with apache cassandra   strata
Time series with apache cassandra strataPatrick McFadin
 
Garbage collection in .net (basic level)
Garbage collection in .net (basic level)Garbage collection in .net (basic level)
Garbage collection in .net (basic level)Larry Nung
 
Intro to py spark (and cassandra)
Intro to py spark (and cassandra)Intro to py spark (and cassandra)
Intro to py spark (and cassandra)Jon Haddad
 
Cassandra on Mesos Across Multiple Datacenters at Uber (Abhishek Verma) | C* ...
Cassandra on Mesos Across Multiple Datacenters at Uber (Abhishek Verma) | C* ...Cassandra on Mesos Across Multiple Datacenters at Uber (Abhishek Verma) | C* ...
Cassandra on Mesos Across Multiple Datacenters at Uber (Abhishek Verma) | C* ...DataStax
 
Cassandra EU - Data model on fire
Cassandra EU - Data model on fireCassandra EU - Data model on fire
Cassandra EU - Data model on firePatrick McFadin
 
How We Used Cassandra/Solr to Build Real-Time Analytics Platform
How We Used Cassandra/Solr to Build Real-Time Analytics PlatformHow We Used Cassandra/Solr to Build Real-Time Analytics Platform
How We Used Cassandra/Solr to Build Real-Time Analytics PlatformDataStax Academy
 
Fears, misconceptions, and accepted anti patterns of a first time cassandra a...
Fears, misconceptions, and accepted anti patterns of a first time cassandra a...Fears, misconceptions, and accepted anti patterns of a first time cassandra a...
Fears, misconceptions, and accepted anti patterns of a first time cassandra a...Kinetic Data
 
Cassandra Day NY 2014: Getting Started with the DataStax C# Driver
Cassandra Day NY 2014: Getting Started with the DataStax C# DriverCassandra Day NY 2014: Getting Started with the DataStax C# Driver
Cassandra Day NY 2014: Getting Started with the DataStax C# DriverDataStax Academy
 
Aws meetup (sep 2015) exprimir cada centavo
Aws meetup (sep 2015)   exprimir cada centavoAws meetup (sep 2015)   exprimir cada centavo
Aws meetup (sep 2015) exprimir cada centavoSebastian Montini
 
Use Your MySQL Knowledge to Become a MongoDB Guru
Use Your MySQL Knowledge to Become a MongoDB GuruUse Your MySQL Knowledge to Become a MongoDB Guru
Use Your MySQL Knowledge to Become a MongoDB GuruTim Callaghan
 
Dangerous on ClickHouse in 30 minutes, by Robert Hodges, Altinity CEO
Dangerous on ClickHouse in 30 minutes, by Robert Hodges, Altinity CEODangerous on ClickHouse in 30 minutes, by Robert Hodges, Altinity CEO
Dangerous on ClickHouse in 30 minutes, by Robert Hodges, Altinity CEOAltinity Ltd
 

What's hot (20)

Brisk hadoop june2011
Brisk hadoop june2011Brisk hadoop june2011
Brisk hadoop june2011
 
Brisk hadoop june2011_sfjava
Brisk hadoop june2011_sfjavaBrisk hadoop june2011_sfjava
Brisk hadoop june2011_sfjava
 
Cassandra 2.0 and timeseries
Cassandra 2.0 and timeseriesCassandra 2.0 and timeseries
Cassandra 2.0 and timeseries
 
DataStax: An Introduction to DataStax Enterprise Search
DataStax: An Introduction to DataStax Enterprise SearchDataStax: An Introduction to DataStax Enterprise Search
DataStax: An Introduction to DataStax Enterprise Search
 
From Postgres to Cassandra (Rimas Silkaitis, Heroku) | C* Summit 2016
From Postgres to Cassandra (Rimas Silkaitis, Heroku) | C* Summit 2016From Postgres to Cassandra (Rimas Silkaitis, Heroku) | C* Summit 2016
From Postgres to Cassandra (Rimas Silkaitis, Heroku) | C* Summit 2016
 
How to Reduce Your Database Total Cost of Ownership with TimescaleDB
How to Reduce Your Database Total Cost of Ownership with TimescaleDBHow to Reduce Your Database Total Cost of Ownership with TimescaleDB
How to Reduce Your Database Total Cost of Ownership with TimescaleDB
 
The data model is dead, long live the data model
The data model is dead, long live the data modelThe data model is dead, long live the data model
The data model is dead, long live the data model
 
Cassandra 2.0 better, faster, stronger
Cassandra 2.0   better, faster, strongerCassandra 2.0   better, faster, stronger
Cassandra 2.0 better, faster, stronger
 
High Throughput Analytics with Cassandra & Azure
High Throughput Analytics with Cassandra & AzureHigh Throughput Analytics with Cassandra & Azure
High Throughput Analytics with Cassandra & Azure
 
Time series with apache cassandra strata
Time series with apache cassandra   strataTime series with apache cassandra   strata
Time series with apache cassandra strata
 
Garbage collection in .net (basic level)
Garbage collection in .net (basic level)Garbage collection in .net (basic level)
Garbage collection in .net (basic level)
 
Intro to py spark (and cassandra)
Intro to py spark (and cassandra)Intro to py spark (and cassandra)
Intro to py spark (and cassandra)
 
Cassandra on Mesos Across Multiple Datacenters at Uber (Abhishek Verma) | C* ...
Cassandra on Mesos Across Multiple Datacenters at Uber (Abhishek Verma) | C* ...Cassandra on Mesos Across Multiple Datacenters at Uber (Abhishek Verma) | C* ...
Cassandra on Mesos Across Multiple Datacenters at Uber (Abhishek Verma) | C* ...
 
Cassandra EU - Data model on fire
Cassandra EU - Data model on fireCassandra EU - Data model on fire
Cassandra EU - Data model on fire
 
How We Used Cassandra/Solr to Build Real-Time Analytics Platform
How We Used Cassandra/Solr to Build Real-Time Analytics PlatformHow We Used Cassandra/Solr to Build Real-Time Analytics Platform
How We Used Cassandra/Solr to Build Real-Time Analytics Platform
 
Fears, misconceptions, and accepted anti patterns of a first time cassandra a...
Fears, misconceptions, and accepted anti patterns of a first time cassandra a...Fears, misconceptions, and accepted anti patterns of a first time cassandra a...
Fears, misconceptions, and accepted anti patterns of a first time cassandra a...
 
Cassandra Day NY 2014: Getting Started with the DataStax C# Driver
Cassandra Day NY 2014: Getting Started with the DataStax C# DriverCassandra Day NY 2014: Getting Started with the DataStax C# Driver
Cassandra Day NY 2014: Getting Started with the DataStax C# Driver
 
Aws meetup (sep 2015) exprimir cada centavo
Aws meetup (sep 2015)   exprimir cada centavoAws meetup (sep 2015)   exprimir cada centavo
Aws meetup (sep 2015) exprimir cada centavo
 
Use Your MySQL Knowledge to Become a MongoDB Guru
Use Your MySQL Knowledge to Become a MongoDB GuruUse Your MySQL Knowledge to Become a MongoDB Guru
Use Your MySQL Knowledge to Become a MongoDB Guru
 
Dangerous on ClickHouse in 30 minutes, by Robert Hodges, Altinity CEO
Dangerous on ClickHouse in 30 minutes, by Robert Hodges, Altinity CEODangerous on ClickHouse in 30 minutes, by Robert Hodges, Altinity CEO
Dangerous on ClickHouse in 30 minutes, by Robert Hodges, Altinity CEO
 

Similar to Mission impossible

Introduction to NoSQL Database
Introduction to NoSQL DatabaseIntroduction to NoSQL Database
Introduction to NoSQL DatabaseMohammad Alghanem
 
Data Grids with Oracle Coherence
Data Grids with Oracle CoherenceData Grids with Oracle Coherence
Data Grids with Oracle CoherenceBen Stopford
 
Using Apache Cassandra: What is this thing, and how do I use it?
Using Apache Cassandra: What is this thing, and how do I use it?Using Apache Cassandra: What is this thing, and how do I use it?
Using Apache Cassandra: What is this thing, and how do I use it?jeremiahdjordan
 
Redis the better NoSQL
Redis the better NoSQLRedis the better NoSQL
Redis the better NoSQLOpenFest team
 
Compare Clustering Methods for MS SQL Server
Compare Clustering Methods for MS SQL ServerCompare Clustering Methods for MS SQL Server
Compare Clustering Methods for MS SQL ServerAlexDepo
 
MySQL Without the MySQL -- Oh My!
MySQL Without the MySQL -- Oh My!MySQL Without the MySQL -- Oh My!
MySQL Without the MySQL -- Oh My!Dave Stokes
 
Logical-DataWarehouse-Alluxio-meetup
Logical-DataWarehouse-Alluxio-meetupLogical-DataWarehouse-Alluxio-meetup
Logical-DataWarehouse-Alluxio-meetupGianmario Spacagna
 
Let your DBAs get some REST(api)
Let your DBAs get some REST(api)Let your DBAs get some REST(api)
Let your DBAs get some REST(api)Ludovico Caldara
 
Accelerating Machine Learning Pipelines with Alluxio at Alluxio Meetup 2016
Accelerating Machine Learning Pipelines with Alluxio at Alluxio Meetup 2016Accelerating Machine Learning Pipelines with Alluxio at Alluxio Meetup 2016
Accelerating Machine Learning Pipelines with Alluxio at Alluxio Meetup 2016Alluxio, Inc.
 
Federating clusters
Federating clustersFederating clusters
Federating clustersChris Dwan
 
Bootstrapping - Session 1 - Your First Week with Amazon EC2
Bootstrapping - Session 1 - Your First Week with Amazon EC2Bootstrapping - Session 1 - Your First Week with Amazon EC2
Bootstrapping - Session 1 - Your First Week with Amazon EC2Amazon Web Services
 
Grehack2013-RuoAndo-Unraveling large scale geographical distribution of vulne...
Grehack2013-RuoAndo-Unraveling large scale geographical distribution of vulne...Grehack2013-RuoAndo-Unraveling large scale geographical distribution of vulne...
Grehack2013-RuoAndo-Unraveling large scale geographical distribution of vulne...Ruo Ando
 
MySQL Without the SQL -- Oh My! Longhorn PHP Conference
MySQL Without the SQL -- Oh My!  Longhorn PHP ConferenceMySQL Without the SQL -- Oh My!  Longhorn PHP Conference
MySQL Without the SQL -- Oh My! Longhorn PHP ConferenceDave Stokes
 
PHP CLI: A Cinderella Story
PHP CLI: A Cinderella StoryPHP CLI: A Cinderella Story
PHP CLI: A Cinderella StoryMike Lively
 
Non-Relational Databases: This hurts. I like it.
Non-Relational Databases: This hurts. I like it.Non-Relational Databases: This hurts. I like it.
Non-Relational Databases: This hurts. I like it.Onyxfish
 
Java one2011 brisk-and_high_order_bits_from_cassandra_and_hadoop
Java one2011 brisk-and_high_order_bits_from_cassandra_and_hadoopJava one2011 brisk-and_high_order_bits_from_cassandra_and_hadoop
Java one2011 brisk-and_high_order_bits_from_cassandra_and_hadoopsrisatish ambati
 
Clouds in Your Coffee Session with Cleversafe & Avere
Clouds in Your Coffee Session with Cleversafe & AvereClouds in Your Coffee Session with Cleversafe & Avere
Clouds in Your Coffee Session with Cleversafe & AvereAvere Systems
 
Rapid Prototyping with Solr
Rapid Prototyping with SolrRapid Prototyping with Solr
Rapid Prototyping with SolrErik Hatcher
 

Similar to Mission impossible (20)

Introduction to NoSQL Database
Introduction to NoSQL DatabaseIntroduction to NoSQL Database
Introduction to NoSQL Database
 
Data Grids with Oracle Coherence
Data Grids with Oracle CoherenceData Grids with Oracle Coherence
Data Grids with Oracle Coherence
 
Using Apache Cassandra: What is this thing, and how do I use it?
Using Apache Cassandra: What is this thing, and how do I use it?Using Apache Cassandra: What is this thing, and how do I use it?
Using Apache Cassandra: What is this thing, and how do I use it?
 
Redis the better NoSQL
Redis the better NoSQLRedis the better NoSQL
Redis the better NoSQL
 
Compare Clustering Methods for MS SQL Server
Compare Clustering Methods for MS SQL ServerCompare Clustering Methods for MS SQL Server
Compare Clustering Methods for MS SQL Server
 
MySQL Without the MySQL -- Oh My!
MySQL Without the MySQL -- Oh My!MySQL Without the MySQL -- Oh My!
MySQL Without the MySQL -- Oh My!
 
Logical-DataWarehouse-Alluxio-meetup
Logical-DataWarehouse-Alluxio-meetupLogical-DataWarehouse-Alluxio-meetup
Logical-DataWarehouse-Alluxio-meetup
 
Let your DBAs get some REST(api)
Let your DBAs get some REST(api)Let your DBAs get some REST(api)
Let your DBAs get some REST(api)
 
BigData Developers MeetUp
BigData Developers MeetUpBigData Developers MeetUp
BigData Developers MeetUp
 
Accelerating Machine Learning Pipelines with Alluxio at Alluxio Meetup 2016
Accelerating Machine Learning Pipelines with Alluxio at Alluxio Meetup 2016Accelerating Machine Learning Pipelines with Alluxio at Alluxio Meetup 2016
Accelerating Machine Learning Pipelines with Alluxio at Alluxio Meetup 2016
 
Federating clusters
Federating clustersFederating clusters
Federating clusters
 
Bootstrapping - Session 1 - Your First Week with Amazon EC2
Bootstrapping - Session 1 - Your First Week with Amazon EC2Bootstrapping - Session 1 - Your First Week with Amazon EC2
Bootstrapping - Session 1 - Your First Week with Amazon EC2
 
Grehack2013-RuoAndo-Unraveling large scale geographical distribution of vulne...
Grehack2013-RuoAndo-Unraveling large scale geographical distribution of vulne...Grehack2013-RuoAndo-Unraveling large scale geographical distribution of vulne...
Grehack2013-RuoAndo-Unraveling large scale geographical distribution of vulne...
 
MySQL Without the SQL -- Oh My! Longhorn PHP Conference
MySQL Without the SQL -- Oh My!  Longhorn PHP ConferenceMySQL Without the SQL -- Oh My!  Longhorn PHP Conference
MySQL Without the SQL -- Oh My! Longhorn PHP Conference
 
PHP CLI: A Cinderella Story
PHP CLI: A Cinderella StoryPHP CLI: A Cinderella Story
PHP CLI: A Cinderella Story
 
Non-Relational Databases: This hurts. I like it.
Non-Relational Databases: This hurts. I like it.Non-Relational Databases: This hurts. I like it.
Non-Relational Databases: This hurts. I like it.
 
Java one2011 brisk-and_high_order_bits_from_cassandra_and_hadoop
Java one2011 brisk-and_high_order_bits_from_cassandra_and_hadoopJava one2011 brisk-and_high_order_bits_from_cassandra_and_hadoop
Java one2011 brisk-and_high_order_bits_from_cassandra_and_hadoop
 
What's New in Apache Hive
What's New in Apache HiveWhat's New in Apache Hive
What's New in Apache Hive
 
Clouds in Your Coffee Session with Cleversafe & Avere
Clouds in Your Coffee Session with Cleversafe & AvereClouds in Your Coffee Session with Cleversafe & Avere
Clouds in Your Coffee Session with Cleversafe & Avere
 
Rapid Prototyping with Solr
Rapid Prototyping with SolrRapid Prototyping with Solr
Rapid Prototyping with Solr
 

Recently uploaded

Top Kala Jadu, Bangali Amil baba in Lahore and Kala jadu specialist in Lahore...
Top Kala Jadu, Bangali Amil baba in Lahore and Kala jadu specialist in Lahore...Top Kala Jadu, Bangali Amil baba in Lahore and Kala jadu specialist in Lahore...
Top Kala Jadu, Bangali Amil baba in Lahore and Kala jadu specialist in Lahore...baharayali
 
Famous Kala Jadu, Black magic specialist in Lahore and Kala ilam expert in ka...
Famous Kala Jadu, Black magic specialist in Lahore and Kala ilam expert in ka...Famous Kala Jadu, Black magic specialist in Lahore and Kala ilam expert in ka...
Famous Kala Jadu, Black magic specialist in Lahore and Kala ilam expert in ka...baharayali
 
The_Chronological_Life_of_Christ_Part_99_Words_and_Works
The_Chronological_Life_of_Christ_Part_99_Words_and_WorksThe_Chronological_Life_of_Christ_Part_99_Words_and_Works
The_Chronological_Life_of_Christ_Part_99_Words_and_WorksNetwork Bible Fellowship
 
Real Kala Jadu, Black magic specialist in Lahore and Kala ilam expert in kara...
Real Kala Jadu, Black magic specialist in Lahore and Kala ilam expert in kara...Real Kala Jadu, Black magic specialist in Lahore and Kala ilam expert in kara...
Real Kala Jadu, Black magic specialist in Lahore and Kala ilam expert in kara...baharayali
 
Genesis 1:2 - Meditate the Scripture Daily bit by bit
Genesis 1:2 - Meditate the Scripture Daily bit by bitGenesis 1:2 - Meditate the Scripture Daily bit by bit
Genesis 1:2 - Meditate the Scripture Daily bit by bitmaricelcanoynuay
 
A Spiritual Guide To Truth v10.pdf xxxxxxx
A Spiritual Guide To Truth v10.pdf xxxxxxxA Spiritual Guide To Truth v10.pdf xxxxxxx
A Spiritual Guide To Truth v10.pdf xxxxxxxssuser83613b
 
Meaning of 22 numbers in Matrix Destiny Chart | 22 Energy Calculator
Meaning of 22 numbers in Matrix Destiny Chart | 22 Energy CalculatorMeaning of 22 numbers in Matrix Destiny Chart | 22 Energy Calculator
Meaning of 22 numbers in Matrix Destiny Chart | 22 Energy CalculatorKabastro
 
Amil baba in Lahore /Amil baba in Karachi /Amil baba in Pakistan
Amil baba in Lahore /Amil baba in Karachi /Amil baba in PakistanAmil baba in Lahore /Amil baba in Karachi /Amil baba in Pakistan
Amil baba in Lahore /Amil baba in Karachi /Amil baba in PakistanAmil Baba Mangal Maseeh
 
Human Design Gates Cheat Sheet | Kabastro.com
Human Design Gates Cheat Sheet | Kabastro.comHuman Design Gates Cheat Sheet | Kabastro.com
Human Design Gates Cheat Sheet | Kabastro.comKabastro
 
Top 10 Amil baba list Famous Amil baba In Pakistan Amil baba Kala jadu in Raw...
Top 10 Amil baba list Famous Amil baba In Pakistan Amil baba Kala jadu in Raw...Top 10 Amil baba list Famous Amil baba In Pakistan Amil baba Kala jadu in Raw...
Top 10 Amil baba list Famous Amil baba In Pakistan Amil baba Kala jadu in Raw...Amil Baba Naveed Bangali
 
Popular Kala Jadu, Black magic expert in Karachi and Kala jadu expert in Laho...
Popular Kala Jadu, Black magic expert in Karachi and Kala jadu expert in Laho...Popular Kala Jadu, Black magic expert in Karachi and Kala jadu expert in Laho...
Popular Kala Jadu, Black magic expert in Karachi and Kala jadu expert in Laho...baharayali
 
Legends of the Light v2.pdf xxxxxxxxxxxxx
Legends of the Light v2.pdf xxxxxxxxxxxxxLegends of the Light v2.pdf xxxxxxxxxxxxx
Legends of the Light v2.pdf xxxxxxxxxxxxxssuser83613b
 
Peaceful Meditation | Peaceful Way by Kabastro
Peaceful Meditation | Peaceful Way by KabastroPeaceful Meditation | Peaceful Way by Kabastro
Peaceful Meditation | Peaceful Way by KabastroKabastro
 
Famous Kala Jadu, Black magic expert in UK and Kala ilam expert in Saudi Arab...
Famous Kala Jadu, Black magic expert in UK and Kala ilam expert in Saudi Arab...Famous Kala Jadu, Black magic expert in UK and Kala ilam expert in Saudi Arab...
Famous Kala Jadu, Black magic expert in UK and Kala ilam expert in Saudi Arab...baharayali
 
Popular Kala Jadu, Kala jadu Expert in Islamabad and Kala jadu specialist in ...
Popular Kala Jadu, Kala jadu Expert in Islamabad and Kala jadu specialist in ...Popular Kala Jadu, Kala jadu Expert in Islamabad and Kala jadu specialist in ...
Popular Kala Jadu, Kala jadu Expert in Islamabad and Kala jadu specialist in ...baharayali
 

Recently uploaded (20)

Top Kala Jadu, Bangali Amil baba in Lahore and Kala jadu specialist in Lahore...
Top Kala Jadu, Bangali Amil baba in Lahore and Kala jadu specialist in Lahore...Top Kala Jadu, Bangali Amil baba in Lahore and Kala jadu specialist in Lahore...
Top Kala Jadu, Bangali Amil baba in Lahore and Kala jadu specialist in Lahore...
 
Famous Kala Jadu, Black magic specialist in Lahore and Kala ilam expert in ka...
Famous Kala Jadu, Black magic specialist in Lahore and Kala ilam expert in ka...Famous Kala Jadu, Black magic specialist in Lahore and Kala ilam expert in ka...
Famous Kala Jadu, Black magic specialist in Lahore and Kala ilam expert in ka...
 
St. Louise de Marillac and Poor Children
St. Louise de Marillac and Poor ChildrenSt. Louise de Marillac and Poor Children
St. Louise de Marillac and Poor Children
 
St. Louise de Marillac and Abandoned Children
St. Louise de Marillac and Abandoned ChildrenSt. Louise de Marillac and Abandoned Children
St. Louise de Marillac and Abandoned Children
 
The_Chronological_Life_of_Christ_Part_99_Words_and_Works
The_Chronological_Life_of_Christ_Part_99_Words_and_WorksThe_Chronological_Life_of_Christ_Part_99_Words_and_Works
The_Chronological_Life_of_Christ_Part_99_Words_and_Works
 
Real Kala Jadu, Black magic specialist in Lahore and Kala ilam expert in kara...
Real Kala Jadu, Black magic specialist in Lahore and Kala ilam expert in kara...Real Kala Jadu, Black magic specialist in Lahore and Kala ilam expert in kara...
Real Kala Jadu, Black magic specialist in Lahore and Kala ilam expert in kara...
 
Genesis 1:2 - Meditate the Scripture Daily bit by bit
Genesis 1:2 - Meditate the Scripture Daily bit by bitGenesis 1:2 - Meditate the Scripture Daily bit by bit
Genesis 1:2 - Meditate the Scripture Daily bit by bit
 
A Spiritual Guide To Truth v10.pdf xxxxxxx
A Spiritual Guide To Truth v10.pdf xxxxxxxA Spiritual Guide To Truth v10.pdf xxxxxxx
A Spiritual Guide To Truth v10.pdf xxxxxxx
 
Meaning of 22 numbers in Matrix Destiny Chart | 22 Energy Calculator
Meaning of 22 numbers in Matrix Destiny Chart | 22 Energy CalculatorMeaning of 22 numbers in Matrix Destiny Chart | 22 Energy Calculator
Meaning of 22 numbers in Matrix Destiny Chart | 22 Energy Calculator
 
Amil baba in Lahore /Amil baba in Karachi /Amil baba in Pakistan
Amil baba in Lahore /Amil baba in Karachi /Amil baba in PakistanAmil baba in Lahore /Amil baba in Karachi /Amil baba in Pakistan
Amil baba in Lahore /Amil baba in Karachi /Amil baba in Pakistan
 
Human Design Gates Cheat Sheet | Kabastro.com
Human Design Gates Cheat Sheet | Kabastro.comHuman Design Gates Cheat Sheet | Kabastro.com
Human Design Gates Cheat Sheet | Kabastro.com
 
Top 10 Amil baba list Famous Amil baba In Pakistan Amil baba Kala jadu in Raw...
Top 10 Amil baba list Famous Amil baba In Pakistan Amil baba Kala jadu in Raw...Top 10 Amil baba list Famous Amil baba In Pakistan Amil baba Kala jadu in Raw...
Top 10 Amil baba list Famous Amil baba In Pakistan Amil baba Kala jadu in Raw...
 
St. Louise de Marillac and Care of the Sick Poor
St. Louise de Marillac and Care of the Sick PoorSt. Louise de Marillac and Care of the Sick Poor
St. Louise de Marillac and Care of the Sick Poor
 
famous No 1 astrologer / Best No 1 Amil baba in UK, Australia, Germany, USA, ...
famous No 1 astrologer / Best No 1 Amil baba in UK, Australia, Germany, USA, ...famous No 1 astrologer / Best No 1 Amil baba in UK, Australia, Germany, USA, ...
famous No 1 astrologer / Best No 1 Amil baba in UK, Australia, Germany, USA, ...
 
Popular Kala Jadu, Black magic expert in Karachi and Kala jadu expert in Laho...
Popular Kala Jadu, Black magic expert in Karachi and Kala jadu expert in Laho...Popular Kala Jadu, Black magic expert in Karachi and Kala jadu expert in Laho...
Popular Kala Jadu, Black magic expert in Karachi and Kala jadu expert in Laho...
 
Legends of the Light v2.pdf xxxxxxxxxxxxx
Legends of the Light v2.pdf xxxxxxxxxxxxxLegends of the Light v2.pdf xxxxxxxxxxxxx
Legends of the Light v2.pdf xxxxxxxxxxxxx
 
Peaceful Meditation | Peaceful Way by Kabastro
Peaceful Meditation | Peaceful Way by KabastroPeaceful Meditation | Peaceful Way by Kabastro
Peaceful Meditation | Peaceful Way by Kabastro
 
Zulu - The Epistle of Ignatius to Polycarp.pdf
Zulu - The Epistle of Ignatius to Polycarp.pdfZulu - The Epistle of Ignatius to Polycarp.pdf
Zulu - The Epistle of Ignatius to Polycarp.pdf
 
Famous Kala Jadu, Black magic expert in UK and Kala ilam expert in Saudi Arab...
Famous Kala Jadu, Black magic expert in UK and Kala ilam expert in Saudi Arab...Famous Kala Jadu, Black magic expert in UK and Kala ilam expert in Saudi Arab...
Famous Kala Jadu, Black magic expert in UK and Kala ilam expert in Saudi Arab...
 
Popular Kala Jadu, Kala jadu Expert in Islamabad and Kala jadu specialist in ...
Popular Kala Jadu, Kala jadu Expert in Islamabad and Kala jadu specialist in ...Popular Kala Jadu, Kala jadu Expert in Islamabad and Kala jadu specialist in ...
Popular Kala Jadu, Kala jadu Expert in Islamabad and Kala jadu specialist in ...
 

Mission impossible

  • 1. 1/24/13 Cloud-Native: Flexible, Redundant, & Infinitely Scalable by Nature. Mission: imPossible Scaling in the Cloud 1 Saturday, May 11, 13
  • 2. 1/24/13 Cloud-Native: Flexible, Redundant, & Infinitely Scalable by Nature. The Core: Message Bus 100% Cloud Native 2 Saturday, May 11, 13
  • 3. 1/24/13 Cloud-Native: Flexible, Redundant, & Infinitely Scalable by Nature. What Cloud Translates To 3 Small to mid size instances Lack of Control Over Physical Resources No delay in expanding Limited Storage Options Redundancy is Easy Redundancy is Necessary Saturday, May 11, 13
  • 4. 1/24/13 Cloud-Native: Flexible, Redundant, & Infinitely Scalable by Nature. What Does Your Data Look Like? • Log Data Classic OLTP • By Nature, it’s Distributed • Long & Mid Term Storage • Eventual v. Immediate Consistency • Speed of Retrieval -Classing OLAP Warehouse 4 Saturday, May 11, 13
  • 5. 1/24/13 Cloud-Native: Flexible, Redundant, & Infinitely Scalable by Nature. Requirements 5 • No Data Loss • Ability to Pause, Promote, and Update Seamlessly • Do Not be the Bottleneck • Allow for Out of Sequence Events • Restate and Correct Analytics Saturday, May 11, 13
  • 6. 1/24/13 Cloud-Native: Flexible, Redundant, & Infinitely Scalable by Nature. Tools • Chef • Liquibase • HornetQ • Rep Mgr • Postgres 6 Saturday, May 11, 13
  • 7. 1/24/13 Cloud-Native: Flexible, Redundant, & Infinitely Scalable by Nature. Distributed OLTP 7 Disparate event types can be sent to separate instances. Within the same event, parallel writes don’t require synchronous multi-masters. Batch Process Writes with Copy Into Saturday, May 11, 13
  • 8. 1/24/13 Cloud-Native: Flexible, Redundant, & Infinitely Scalable by Nature. Vertical Sharding- Inheritance is your friend! 8 One parent per event, sharded by time, allows for efficient querying, individual backups, and general sanity. Saturday, May 11, 13
  • 9. 1/24/13 Cloud-Native: Flexible, Redundant, & Infinitely Scalable by Nature. Vertical Sharding- Inheritance is your friend! 9 Constraints: Timestamp not Date Event ID (pkey) Explain Analyze! Saturday, May 11, 13
  • 10. 1/24/13 Cloud-Native: Flexible, Redundant, & Infinitely Scalable by Nature. Vertical Sharding- Inheritance is your friend! 10 WHILE startday <= endday endday LOOP tomorrow := startday + interval '1 day'; index_name := 'idx_name' || replace(startday::text, '-', ''); tname := 'event_' || to_char(startday, 'YYYY_MM_DD'); EXECUTE 'create table ' || quote_ident(tname) ||'() inherits(event)'; EXECUTE 'ALTER TABLE ' || quote_ident(tname) ||' ADD CONSTRAINT createdck CHECK (created >= ' || quote_literal(startday) ||' AND created < '|| quote_literal(tomorrow) ||')'; EXECUTE 'CREATE INDEX '|| index_name ||' ON '|| quote_ident(tname)||'(act_id) ; startday := tomorrow; END LOOP; Saturday, May 11, 13
  • 11. 1/24/13 Cloud-Native: Flexible, Redundant, & Infinitely Scalable by Nature. Close The Shard 11 FOR tbl IN SELECT t.table_name FROM information_schema.tables t WHERE LEFT(t.table_name, 6 ) = 'event_' AND t.table_name NOT IN (SELECT table_name FROM information_schema.constraint_column_usage WHERE constraint_name = 'idcheck') AND REPLACE(REPLACE(t.table_name, 'event_', ''), '_', '-')::DATE < NOW()::DATE LOOP EXECUTE 'SELECT coalesce(min(event_id), 0), coalesce(max(event_id), 0) FROM ' || quote_ident(tbl) ||';' INTO smin, smax; EXECUTE 'ALTER TABLE '|| quote_ident(tbl) || ' ADD CONSTRAINT idcheck CHECK (event_id BETWEEN '|| smin || ' AND ' || smax ||' )'; END LOOP; Saturday, May 11, 13
  • 12. 1/24/13 Cloud-Native: Flexible, Redundant, & Infinitely Scalable by Nature. Star & Snowflake OLAP 12 Because API calls can’t time out. Partition-able on fact, account - what works for you. Saturday, May 11, 13
  • 13. 1/24/13 Cloud-Native: Flexible, Redundant, & Infinitely Scalable by Nature. Build Your Snowflake 13 • Pull Aggregates • Add/Update base fact • Cascade Updates Through Dimensions Quartz Triggered Calls Three Phase Process: Saturday, May 11, 13
  • 14. 1/24/13 Cloud-Native: Flexible, Redundant, & Infinitely Scalable by Nature. Build Your Snowflake 14 Driven by Sequential ID Position Lookup, Pull, & Update in a Single Transaction Save State for Performance Analysis Saturday, May 11, 13
  • 15. 1/24/13 Cloud-Native: Flexible, Redundant, & Infinitely Scalable by Nature. Aggregate on Pull 15 CREATE TABLE source_epoch AS SELECT * FROM dblink('dbname=src host=127.0.0.2 port=5432 user=rickastley password=never_gonna_give_you_up', 'SELECT some, thing, COUNT(id), DATE_TRUNC(''hour'', TO_TIMESTAMP(date)), MAX(id) AS id FROM events WHERE id > 50823461 GROUP BY 1, 2 ORDER BY id) AS t(some TEXT, thing, INT event_count INT, hour TIMESTAMP, id INT) Saturday, May 11, 13
  • 16. 1/24/13 Cloud-Native: Flexible, Redundant, & Infinitely Scalable by Nature. The Defense 16 Bugs for the entire system will find their way through to your warehouse. Do not always trust your data. Saturday, May 11, 13
  • 17. 1/24/13 Cloud-Native: Flexible, Redundant, & Infinitely Scalable by Nature. What It All Looks Like 17 Writer Writer Saturday, May 11, 13
  • 18. 1/24/13 Cloud-Native: Flexible, Redundant, & Infinitely Scalable by Nature. What It All Looks Like 18 Writer Writer OLTP TypeA OLTP TypeB OLTP TypeB Saturday, May 11, 13
  • 19. 1/24/13 Cloud-Native: Flexible, Redundant, & Infinitely Scalable by Nature. What It All Looks Like 19 Writer Writer OLTP TypeA OLTP TypeB OLTP TypeB OLAP WH Type1 Saturday, May 11, 13
  • 20. 1/24/13 Cloud-Native: Flexible, Redundant, & Infinitely Scalable by Nature. What It All Looks Like 20 Writer Writer OLAP WH Type1 Query Head OLTP TypeA OLTP TypeB OLTP TypeB Saturday, May 11, 13
  • 21. 1/24/13 Cloud-Native: Flexible, Redundant, & Infinitely Scalable by Nature. What It All Looks Like 21 Writer Writer OLAP WH Type1 Query Head OLTP TypeA OLTP TypeB OLTP TypeC OLTP TypeA OLTP TypeA OLTP TypeC OLTP TypeC Saturday, May 11, 13
  • 22. 1/24/13 Cloud-Native: Flexible, Redundant, & Infinitely Scalable by Nature. What It All Looks Like 22 Writer Writer OLAP WH Type1 Query Head OLTP TypeA OLTP TypeB OLTP TypeC OLTP TypeA OLTP TypeA OLTP TypeC OLTP TypeC OLAP WH Type1 Query Head Saturday, May 11, 13
  • 23. 1/24/13 Cloud-Native: Flexible, Redundant, & Infinitely Scalable by Nature. http://news.messagebus.com/2013/01/03/mission-impossible/ Questions? 23 Saturday, May 11, 13
  • 24. 1/24/13 Cloud-Native: Flexible, Redundant, & Infinitely Scalable by Nature. Thank You! 24 Saturday, May 11, 13