how gannett achieved scalability and agility with nosql – couchbase live nyc

17
Couchbase @ GANNETT How Couchbase has become an integral part of GANNETT’ s next generation publishing systems

Upload: couchbase

Post on 13-Apr-2017

1.502 views

Category:

Software


0 download

TRANSCRIPT

Page 1: How Gannett Achieved Scalability and Agility with NoSQL – Couchbase Live NYC

Couchbase @ GANNETTHow Couchbase has become an integral part of GANNETT’s next generation publishing systems

Page 2: How Gannett Achieved Scalability and Agility with NoSQL – Couchbase Live NYC

Who we are

Alon Motro - Content Platform Services Manager. Oversees publishing systems and the presentation APIs that power the consuming applications.

Kristopher Alexander - Platform Architecture Lead. Works with various stakeholders within the Technology division on technical vision, process, and culture.

Page 3: How Gannett Achieved Scalability and Agility with NoSQL – Couchbase Live NYC

Who we are

● Gannett is one of America’s largest media companies.● We provide full national coverage through 93 local and national sites that reach 96 million total

monthly digital visitors.● Sites include USA TODAY, The Indianapolis Star, The Arizona Republic, etc.● For each property we produce a suite of products including desktop and mobile sites and native

iOS and Android applications. ● Our digital products produce many types of assets including articles, photo galleries, videos and

oembeds● We also provide numerous APIs for developers as well as syndicated content for vendors

Page 4: How Gannett Achieved Scalability and Agility with NoSQL – Couchbase Live NYC

Our Current Architecture

Page 5: How Gannett Achieved Scalability and Agility with NoSQL – Couchbase Live NYC

Current Challenges

● SQL Server is extremely expensive● Utilize on-prem pet servers that have difficulty scaling● Numerous replication issues with SQL Server● A multitude of business logic coded into Stored Procedures causes

significant delay between publish time and presentation time

Page 6: How Gannett Achieved Scalability and Agility with NoSQL – Couchbase Live NYC

How We Used to Retrieve an Asset/Front

Page 7: How Gannett Achieved Scalability and Agility with NoSQL – Couchbase Live NYC

What were our transition goals?

● Decrease the latency between publish time and presentation time● Remove business logic from data layer● Write as you want to Read● Allow for growth and scalability in the cloud and move away from pet

servers● Lower cost

Page 8: How Gannett Achieved Scalability and Agility with NoSQL – Couchbase Live NYC

New Architecture - Phase 1

Page 9: How Gannett Achieved Scalability and Agility with NoSQL – Couchbase Live NYC

How We Retrieve an Asset/Front Now

Page 10: How Gannett Achieved Scalability and Agility with NoSQL – Couchbase Live NYC

New Architecture - Phase 2

Page 11: How Gannett Achieved Scalability and Agility with NoSQL – Couchbase Live NYC

A Telling Load Test

● Our publishing system required around 500 writes per second and 3000 reads per second

● Successful Load Test of 10,000 writes per second and 30,000 reads per second

● Included spikes of up to 300,000 reads● This was done with 8 r3.xlarge nodes in Amazon (32 vCPU and 172 GB

Memory Allocated)

Page 13: How Gannett Achieved Scalability and Agility with NoSQL – Couchbase Live NYC

Memcached Replacement

● 5 Memcached Servers shared by several applications● Each application had to manage its own keyspace correctly● Moved to a single couchbase cluster● Each application gets a bucket

Page 14: How Gannett Achieved Scalability and Agility with NoSQL – Couchbase Live NYC

Mongo DB Replacement

● Application Settings● User Preferences For The CMS● Mean JS/ Mean IO● Workflow Planning Module

Page 15: How Gannett Achieved Scalability and Agility with NoSQL – Couchbase Live NYC

Cloud Strategy

● “Hybrid Cloud” approach that blends different public offerings with Gannett’s private cloud

● Automation tools simplify configuration management● RabbitMQ, Solr, Couchbase, and Node JS replace .NET, SQL Server, and

MSMQ ● Reduced Cache footprint in the architecture

Page 16: How Gannett Achieved Scalability and Agility with NoSQL – Couchbase Live NYC

N1QL

● Reduce reliance on documents that point at other keys (manifests)● Reduce reliance on views● Migrate some simple lookups from Solr● Reduce cognitive load for interacting with documents

Page 17: How Gannett Achieved Scalability and Agility with NoSQL – Couchbase Live NYC

Questions?