SlideShare una empresa de Scribd logo
1 de 31
Application Design for the Cloud/AWS
Jonathan Holloway (@jph98)
Application Architect @ Brightpearl
A little bit of background
Brightpearl grew out of a company called Lush
Longboards in Bristol
Chris Tanner and Andrew Mulvenna identified
a need for a single online business
management app
First customer on Brightpearl in 2007
Over 1300 customers currently on Brightpearl
and growing
The numbers:
Founded 2007
Today, we have:
1,300+ customers
53 countries
87 employees
(in San Francisco and Bristol)
$1.3 billion
gmv processed
What Does Brightpearl Do?
- Multi-channel integration (Amazon, Ebay)
- Storefront integration
- Inventory, orders, and customers
- Logistics and shipping
- Web and POS interface
- App store for third party integrations
Business @ Scale on the Amazon Platform
Over 1,300 customers run on our cloud based platform
Company Culture
Rapidly growing
Team, Product, Technology, Career
Team and People
Passionate, Diverse, Agile
The way we work
Open Plan, Open Minded, Autonomous
Great social life
We call our colleagues friends and do fun stuff
together outside the office.
Career development
We invest in our people and support their
career aspirations.
Open atmosphere
Our managers don’t have offices and openly
tell us about the business’ progress.
Multi-cultural workforce
We have employees who come from over 20
different countries.
Tech Culture
General tech lunch and learns (TLAL) for various technology talks
(Java, PHP, Javascript)
Ruby project workshop for building apps once every two weeks,
encourage use outside development
Friday - half day for personal tech projects, e.g. dashboards,
product improvements
Java Meetup Group for external talks with developers from other
companies in the Bristol and Bath area. We host PHPSW along with
Basekit in Bristol
My Background
Application Architect - Solutions/Technical, Developer
Started with SaaS back in 2010 with email archiving and large scale
storage/search solution
- Cassandra, Hadoop, Pig, Lucene and Jersey
Worked in statistical computing with distributed grids (Oracle Grid
Engine, LSF). Deployed on large compute clusters internally in
pharma, looked at cloud based solution using Starcluster, Python
Java background, Ruby, Python and Javascript
Cloud, Tech Overview
SaaS - Big Product Examples
Lots of big SaaS based products on the web today including:
On-demand movie rental
Customer Relationship Management
Microsoft Office Toolsuite Online
Conference and collaboration
SaaS and PaaS and IaaS
It’s all very confusing… think of it as a pyramid
IaaS - Infrastructure as a service (Tools/services for devops)
- Amazon EC2, Windows Azure, Heroku
PaaS - Platform as a service (Tools/services for app devs)
- AWS Beanstalk, Heroku, Google App Engine, Redhat
Openshift
SaaS - Software as a service (Apps for end users - yay)
- e.g. Netflix, Brightpearl, Salesforce, Office365
How do I know when a product should be SaaS based?
- Have to be careful with data requirements, data at rest,
transfer because of the public cloud. VPC and VPN can help.
- I/O and throughput might prohibit movement of files
- Have to be careful don’t just move your application into the
cloud… break it down… re-assemble with cloud based
application services
- Factor in availability, performance, failover, reliability. Don’t
underestimate reliability
SaaS - Archiving Solution
Customer Account
Metadata
Postgres/Slony
Search Services
SOL
R
SOL
R
SOL
R
Content Extraction
Tika Tika
Content Storage
Solaris/ZFS
Search Interface
Django
Tika
Mail Archive
Mail Archive
Mail Archive
- Worked on this for a private cloud solution
- Why doesn’t it fit the public cloud - Amazon/Rackspace?
- Couldn’t move it “as is”
SaaS Distributed Grid - Cloud Bursting Scenario
Oracle Grid Engine
Grid Master
Slave
Slave
Slave
Stats Desktop
SAS
Matlab
Amazon Cloud
Slave
(m3 large)
Slave
(m3 large)
Slave
(m3 large)
Slave
(g2 GPU)
Slave
(g2 GPU)
Slave
(g2 GPU)
1. Provision new instances
2. Extend Capacity Internally
3. Transfer Files
4. Execute Files
5. Shutdown when done
R
SaaS eCommerce Business Management Scenario
Amazon Web Services - Cloud Computing Services
Using AWS for ~ 4 years as a IaaS platform
Brightpearl is designed for use on AWS
Make use of both US and European datacentres, multi-availability
zones - approx 90 EC2 instances
All Amazon Linux based images, use Centos 5.x in dev/test
We approximate an environment for development and test
Architectural Overview
Will break it down into the following views:
- Infrastructure and Operating System
- Application Services (Queuing, Data Storage, Load Balancing)
- Software Stack (Brightpearl Application - JS, PHP and Java)
Infrastructure
We build on various Amazon base Images (based on Amazon Linux)
with different specifications...
- m1 medium (webserver)
- t1 micro (mail relay)
- m1 small (messaging)
EC2Instances is useful - http://www.ec2instances.info/
Software is provisioned on top of the base O/S with Chef (we
maintain this configuration and keeping it up to date).
Application Services
Elastic Compute Cloud (based off Xen)
- Various instance sizes (small, medium large, xlarge)
- Basis is an AMI - Centos, RHEL, Windows
Amazon RDS (Relational Database Service) - aka MySQL
- Data Storage
Content delivery network, think Akamai
- Global delivery of static resources (images, content)
Application Services
Key/value store - useful for storing large data that
won’t fit in a relational database
Amazon S3 - storage service for files
ELB (Elastic Load Balancer) - instance load balancing
Languages - Javascript
Javascript for DOM manipulation, data binding, validation
- Functional, oh so functional
- JQuery for DOM manipulation and UI elements
- Backbone for structure (+ CommonJS)
- Mocha for testing
- JS on the serverside - Node
- Dependency Management (Bower, NPM)
Languages - PHP
PHP for web development in the presentation tier
- Dynamically typed, interpreted
- Single threaded
- Well supported, lots of third party software
- Lightweight, fast and proven
Languages - Java
Java for scaling services out
- Statically and strongly typed
- Good for concurrency and parallelisation
- Good library, framework & IDE support (Intellij)
- Build RESTful API’s for PHP to communicate with
Languages - Ruby
Ruby - for provisioning infrastructure, configuration and test
- Our “devops” and “test engineer” language
- Dynamically typed, multi paradigm
- Readable, testable, way cool
- Great third party library support
- Chef by Opscode used for configuring EC2 instances
- Cucumber and Webdriver for application testing
Design Problems
AWS Design Considerations
Sometimes we need to be agnostic for performance, cost reasons
and also for vendor (Amazon) lockin
Have to build in failover to each individual service
Don’t use SQS (Simple Queueing Service) - instead we roll our own
Roll our own datagrid for cross EC-2 instance data - an in-memory
datagrid. Think distributed Java collections.
Make use of a distributed file system for transient file storage
Problems at Scale
Design for redundancy:
- Ephemeral storage by default. Use EBS (Elastic Block Storage)
- Multiple copies of services deployed on instances
- Multiple instances for failover
Design for scale:
- Partitioning of accounts using separate RDS instances
Problems at Scale
Design for concurrency:
- Immutability is key, Actor Model, STM are useful
Design for performance:
- Profile everything (Yourkit is great for this)
- Java is very memory hungry… tune the JVM and GC strategy
Problems at Scale
Design for cost:
- Reserved instances (up-front cost) can save a fair bit
Design for content delivery:
- Server side caching (Varnish, mod_cache)
- Client side caching (expires headers, etags)
- Content Delivery Network - (Cloudfront, Akamai)
Design for failure:
- Internal Services (Redundant Copies)
- External Services
- Protect against them overloading your internal
services
- Don’t flood them with your traffic
Problems at Scale
Future Tech
Some future technology we’re interested in...
- Web Components (Polymer)
- Functional JVM languages (JDK 8 Streams, Clojure)
- Docker (LXC containers) for virtualisation
- Interested in Quasar for lightweight
threading
Oh by the way… we’re expanding...
Current Open Positions
Senior Developers
Graduate Developers
Test Engineers
Key Events @ Brightpearl
5th August - Java Meetup Group
20th August - PHPSW Meetup
Questions?

Más contenido relacionado

La actualidad más candente

Microsoft's Big Play for Big Data- Visual Studio Live! NY 2012
Microsoft's Big Play for Big Data- Visual Studio Live! NY 2012Microsoft's Big Play for Big Data- Visual Studio Live! NY 2012
Microsoft's Big Play for Big Data- Visual Studio Live! NY 2012
Andrew Brust
 

La actualidad más candente (20)

Building a Modern Data Warehouse: Deep Dive on Amazon Redshift - SRV337 - Chi...
Building a Modern Data Warehouse: Deep Dive on Amazon Redshift - SRV337 - Chi...Building a Modern Data Warehouse: Deep Dive on Amazon Redshift - SRV337 - Chi...
Building a Modern Data Warehouse: Deep Dive on Amazon Redshift - SRV337 - Chi...
 
The Open Data Lake Platform Brief - Data Sheets | Whitepaper
The Open Data Lake Platform Brief - Data Sheets | WhitepaperThe Open Data Lake Platform Brief - Data Sheets | Whitepaper
The Open Data Lake Platform Brief - Data Sheets | Whitepaper
 
Cloud Computing and the Microsoft Developer - A Down-to-Earth Analysis
Cloud Computing and the Microsoft Developer - A Down-to-Earth AnalysisCloud Computing and the Microsoft Developer - A Down-to-Earth Analysis
Cloud Computing and the Microsoft Developer - A Down-to-Earth Analysis
 
AWS tutorial-Part58:AWS Cloud Database Products-1st Intro Session
AWS tutorial-Part58:AWS Cloud Database Products-1st Intro SessionAWS tutorial-Part58:AWS Cloud Database Products-1st Intro Session
AWS tutorial-Part58:AWS Cloud Database Products-1st Intro Session
 
The other Apache Technologies your Big Data solution needs
The other Apache Technologies your Big Data solution needsThe other Apache Technologies your Big Data solution needs
The other Apache Technologies your Big Data solution needs
 
Architecting Big Data Ingest & Manipulation
Architecting Big Data Ingest & ManipulationArchitecting Big Data Ingest & Manipulation
Architecting Big Data Ingest & Manipulation
 
AWS Webcast - Data Integration into Amazon Redshift
AWS Webcast - Data Integration into Amazon RedshiftAWS Webcast - Data Integration into Amazon Redshift
AWS Webcast - Data Integration into Amazon Redshift
 
DAT304_Amazon Aurora Performance Optimization with MySQL
DAT304_Amazon Aurora Performance Optimization with MySQLDAT304_Amazon Aurora Performance Optimization with MySQL
DAT304_Amazon Aurora Performance Optimization with MySQL
 
AWS tutorial-Part59:AWS Cloud Database Products-2nd Intro Session
AWS tutorial-Part59:AWS Cloud Database Products-2nd Intro SessionAWS tutorial-Part59:AWS Cloud Database Products-2nd Intro Session
AWS tutorial-Part59:AWS Cloud Database Products-2nd Intro Session
 
Concevoir une application scalable dans le Cloud
Concevoir une application scalable dans le CloudConcevoir une application scalable dans le Cloud
Concevoir une application scalable dans le Cloud
 
NoSQL Seminer
NoSQL SeminerNoSQL Seminer
NoSQL Seminer
 
AWS re:Invent 2016: ElastiCache Deep Dive: Best Practices and Usage Patterns ...
AWS re:Invent 2016: ElastiCache Deep Dive: Best Practices and Usage Patterns ...AWS re:Invent 2016: ElastiCache Deep Dive: Best Practices and Usage Patterns ...
AWS re:Invent 2016: ElastiCache Deep Dive: Best Practices and Usage Patterns ...
 
Rich Data Graphs for MapReduce
Rich Data Graphs for MapReduceRich Data Graphs for MapReduce
Rich Data Graphs for MapReduce
 
Introduction To HBase
Introduction To HBaseIntroduction To HBase
Introduction To HBase
 
Building Your Data Warehouse with Amazon Redshift
Building Your Data Warehouse with Amazon RedshiftBuilding Your Data Warehouse with Amazon Redshift
Building Your Data Warehouse with Amazon Redshift
 
Hadoop and Hive in Enterprises
Hadoop and Hive in EnterprisesHadoop and Hive in Enterprises
Hadoop and Hive in Enterprises
 
Bursting on-premise analytic workloads to Amazon EMR using Alluxio
Bursting on-premise analytic workloads to Amazon EMR using AlluxioBursting on-premise analytic workloads to Amazon EMR using Alluxio
Bursting on-premise analytic workloads to Amazon EMR using Alluxio
 
Microsoft's Big Play for Big Data- Visual Studio Live! NY 2012
Microsoft's Big Play for Big Data- Visual Studio Live! NY 2012Microsoft's Big Play for Big Data- Visual Studio Live! NY 2012
Microsoft's Big Play for Big Data- Visual Studio Live! NY 2012
 
What database
What databaseWhat database
What database
 
Big Data Day LA 2015 - NoSQL: Doing it wrong before getting it right by Lawre...
Big Data Day LA 2015 - NoSQL: Doing it wrong before getting it right by Lawre...Big Data Day LA 2015 - NoSQL: Doing it wrong before getting it right by Lawre...
Big Data Day LA 2015 - NoSQL: Doing it wrong before getting it right by Lawre...
 

Similar a Application design for the cloud using AWS

Similar a Application design for the cloud using AWS (20)

AWS (Hadoop) Meetup 30.04.09
AWS (Hadoop) Meetup 30.04.09AWS (Hadoop) Meetup 30.04.09
AWS (Hadoop) Meetup 30.04.09
 
Using Data Lakes
Using Data LakesUsing Data Lakes
Using Data Lakes
 
Above the cloud joarder kamal
Above the cloud   joarder kamalAbove the cloud   joarder kamal
Above the cloud joarder kamal
 
(ISM304) Oracle to Amazon RDS MySQL & Aurora: How Gallup Made the Move
(ISM304) Oracle to Amazon RDS MySQL & Aurora: How Gallup Made the Move(ISM304) Oracle to Amazon RDS MySQL & Aurora: How Gallup Made the Move
(ISM304) Oracle to Amazon RDS MySQL & Aurora: How Gallup Made the Move
 
Big Data, Ingeniería de datos, y Data Lakes en AWS
Big Data, Ingeniería de datos, y Data Lakes en AWSBig Data, Ingeniería de datos, y Data Lakes en AWS
Big Data, Ingeniería de datos, y Data Lakes en AWS
 
Using Data Lakes: Data Analytics Week SF
Using Data Lakes: Data Analytics Week SFUsing Data Lakes: Data Analytics Week SF
Using Data Lakes: Data Analytics Week SF
 
Big Data Goes Airborne. Propelling Your Big Data Initiative with Ironcluster ...
Big Data Goes Airborne. Propelling Your Big Data Initiative with Ironcluster ...Big Data Goes Airborne. Propelling Your Big Data Initiative with Ironcluster ...
Big Data Goes Airborne. Propelling Your Big Data Initiative with Ironcluster ...
 
AWS re:Invent 2016: How to Build a Big Data Analytics Data Lake (LFS303)
AWS re:Invent 2016: How to Build a Big Data Analytics Data Lake (LFS303)AWS re:Invent 2016: How to Build a Big Data Analytics Data Lake (LFS303)
AWS re:Invent 2016: How to Build a Big Data Analytics Data Lake (LFS303)
 
Using Data Lakes
Using Data Lakes Using Data Lakes
Using Data Lakes
 
Streaming Solutions for Real time problems
Streaming Solutions for Real time problemsStreaming Solutions for Real time problems
Streaming Solutions for Real time problems
 
Azure data platform overview
Azure data platform overviewAzure data platform overview
Azure data platform overview
 
Building Data Lakes and Analytics on AWS
Building Data Lakes and Analytics on AWSBuilding Data Lakes and Analytics on AWS
Building Data Lakes and Analytics on AWS
 
Using Data Lakes
Using Data LakesUsing Data Lakes
Using Data Lakes
 
Using Data Lakes
Using Data LakesUsing Data Lakes
Using Data Lakes
 
AWS Big Data Landscape
AWS Big Data LandscapeAWS Big Data Landscape
AWS Big Data Landscape
 
From raw data to business insights. A modern data lake
From raw data to business insights. A modern data lakeFrom raw data to business insights. A modern data lake
From raw data to business insights. A modern data lake
 
Using Data Lakes
Using Data LakesUsing Data Lakes
Using Data Lakes
 
ArcReady - Architecting For The Cloud
ArcReady - Architecting For The CloudArcReady - Architecting For The Cloud
ArcReady - Architecting For The Cloud
 
Netflix in the Cloud at SV Forum
Netflix in the Cloud at SV ForumNetflix in the Cloud at SV Forum
Netflix in the Cloud at SV Forum
 
Front Range PHP NoSQL Databases
Front Range PHP NoSQL DatabasesFront Range PHP NoSQL Databases
Front Range PHP NoSQL Databases
 

Más de Jonathan Holloway (11)

The Role of the Architect
The Role of the ArchitectThe Role of the Architect
The Role of the Architect
 
Spring boot - an introduction
Spring boot - an introductionSpring boot - an introduction
Spring boot - an introduction
 
Jenkins CI presentation
Jenkins CI presentationJenkins CI presentation
Jenkins CI presentation
 
Mockito intro
Mockito introMockito intro
Mockito intro
 
Debugging
DebuggingDebugging
Debugging
 
SOLID principles
SOLID principlesSOLID principles
SOLID principles
 
Building data pipelines
Building data pipelinesBuilding data pipelines
Building data pipelines
 
Introduction to JVM languages and Fantom (very brief)
Introduction to JVM languages and Fantom (very brief)Introduction to JVM languages and Fantom (very brief)
Introduction to JVM languages and Fantom (very brief)
 
Database migration with flyway
Database migration  with flywayDatabase migration  with flyway
Database migration with flyway
 
Lightweight web frameworks
Lightweight web frameworksLightweight web frameworks
Lightweight web frameworks
 
Introduction to using MongoDB with Ruby
Introduction to using MongoDB with RubyIntroduction to using MongoDB with Ruby
Introduction to using MongoDB with Ruby
 

Último

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 

Último (20)

Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 

Application design for the cloud using AWS

  • 1. Application Design for the Cloud/AWS Jonathan Holloway (@jph98) Application Architect @ Brightpearl
  • 2. A little bit of background Brightpearl grew out of a company called Lush Longboards in Bristol Chris Tanner and Andrew Mulvenna identified a need for a single online business management app First customer on Brightpearl in 2007 Over 1300 customers currently on Brightpearl and growing The numbers: Founded 2007 Today, we have: 1,300+ customers 53 countries 87 employees (in San Francisco and Bristol) $1.3 billion gmv processed
  • 3. What Does Brightpearl Do? - Multi-channel integration (Amazon, Ebay) - Storefront integration - Inventory, orders, and customers - Logistics and shipping - Web and POS interface - App store for third party integrations
  • 4. Business @ Scale on the Amazon Platform Over 1,300 customers run on our cloud based platform
  • 5. Company Culture Rapidly growing Team, Product, Technology, Career Team and People Passionate, Diverse, Agile The way we work Open Plan, Open Minded, Autonomous Great social life We call our colleagues friends and do fun stuff together outside the office. Career development We invest in our people and support their career aspirations. Open atmosphere Our managers don’t have offices and openly tell us about the business’ progress. Multi-cultural workforce We have employees who come from over 20 different countries.
  • 6. Tech Culture General tech lunch and learns (TLAL) for various technology talks (Java, PHP, Javascript) Ruby project workshop for building apps once every two weeks, encourage use outside development Friday - half day for personal tech projects, e.g. dashboards, product improvements Java Meetup Group for external talks with developers from other companies in the Bristol and Bath area. We host PHPSW along with Basekit in Bristol
  • 7. My Background Application Architect - Solutions/Technical, Developer Started with SaaS back in 2010 with email archiving and large scale storage/search solution - Cassandra, Hadoop, Pig, Lucene and Jersey Worked in statistical computing with distributed grids (Oracle Grid Engine, LSF). Deployed on large compute clusters internally in pharma, looked at cloud based solution using Starcluster, Python Java background, Ruby, Python and Javascript
  • 9. SaaS - Big Product Examples Lots of big SaaS based products on the web today including: On-demand movie rental Customer Relationship Management Microsoft Office Toolsuite Online Conference and collaboration
  • 10. SaaS and PaaS and IaaS It’s all very confusing… think of it as a pyramid IaaS - Infrastructure as a service (Tools/services for devops) - Amazon EC2, Windows Azure, Heroku PaaS - Platform as a service (Tools/services for app devs) - AWS Beanstalk, Heroku, Google App Engine, Redhat Openshift SaaS - Software as a service (Apps for end users - yay) - e.g. Netflix, Brightpearl, Salesforce, Office365
  • 11. How do I know when a product should be SaaS based? - Have to be careful with data requirements, data at rest, transfer because of the public cloud. VPC and VPN can help. - I/O and throughput might prohibit movement of files - Have to be careful don’t just move your application into the cloud… break it down… re-assemble with cloud based application services - Factor in availability, performance, failover, reliability. Don’t underestimate reliability
  • 12. SaaS - Archiving Solution Customer Account Metadata Postgres/Slony Search Services SOL R SOL R SOL R Content Extraction Tika Tika Content Storage Solaris/ZFS Search Interface Django Tika Mail Archive Mail Archive Mail Archive - Worked on this for a private cloud solution - Why doesn’t it fit the public cloud - Amazon/Rackspace? - Couldn’t move it “as is”
  • 13. SaaS Distributed Grid - Cloud Bursting Scenario Oracle Grid Engine Grid Master Slave Slave Slave Stats Desktop SAS Matlab Amazon Cloud Slave (m3 large) Slave (m3 large) Slave (m3 large) Slave (g2 GPU) Slave (g2 GPU) Slave (g2 GPU) 1. Provision new instances 2. Extend Capacity Internally 3. Transfer Files 4. Execute Files 5. Shutdown when done R
  • 14. SaaS eCommerce Business Management Scenario
  • 15. Amazon Web Services - Cloud Computing Services Using AWS for ~ 4 years as a IaaS platform Brightpearl is designed for use on AWS Make use of both US and European datacentres, multi-availability zones - approx 90 EC2 instances All Amazon Linux based images, use Centos 5.x in dev/test We approximate an environment for development and test
  • 16. Architectural Overview Will break it down into the following views: - Infrastructure and Operating System - Application Services (Queuing, Data Storage, Load Balancing) - Software Stack (Brightpearl Application - JS, PHP and Java)
  • 17. Infrastructure We build on various Amazon base Images (based on Amazon Linux) with different specifications... - m1 medium (webserver) - t1 micro (mail relay) - m1 small (messaging) EC2Instances is useful - http://www.ec2instances.info/ Software is provisioned on top of the base O/S with Chef (we maintain this configuration and keeping it up to date).
  • 18. Application Services Elastic Compute Cloud (based off Xen) - Various instance sizes (small, medium large, xlarge) - Basis is an AMI - Centos, RHEL, Windows Amazon RDS (Relational Database Service) - aka MySQL - Data Storage Content delivery network, think Akamai - Global delivery of static resources (images, content)
  • 19. Application Services Key/value store - useful for storing large data that won’t fit in a relational database Amazon S3 - storage service for files ELB (Elastic Load Balancer) - instance load balancing
  • 20. Languages - Javascript Javascript for DOM manipulation, data binding, validation - Functional, oh so functional - JQuery for DOM manipulation and UI elements - Backbone for structure (+ CommonJS) - Mocha for testing - JS on the serverside - Node - Dependency Management (Bower, NPM)
  • 21. Languages - PHP PHP for web development in the presentation tier - Dynamically typed, interpreted - Single threaded - Well supported, lots of third party software - Lightweight, fast and proven
  • 22. Languages - Java Java for scaling services out - Statically and strongly typed - Good for concurrency and parallelisation - Good library, framework & IDE support (Intellij) - Build RESTful API’s for PHP to communicate with
  • 23. Languages - Ruby Ruby - for provisioning infrastructure, configuration and test - Our “devops” and “test engineer” language - Dynamically typed, multi paradigm - Readable, testable, way cool - Great third party library support - Chef by Opscode used for configuring EC2 instances - Cucumber and Webdriver for application testing
  • 25. AWS Design Considerations Sometimes we need to be agnostic for performance, cost reasons and also for vendor (Amazon) lockin Have to build in failover to each individual service Don’t use SQS (Simple Queueing Service) - instead we roll our own Roll our own datagrid for cross EC-2 instance data - an in-memory datagrid. Think distributed Java collections. Make use of a distributed file system for transient file storage
  • 26. Problems at Scale Design for redundancy: - Ephemeral storage by default. Use EBS (Elastic Block Storage) - Multiple copies of services deployed on instances - Multiple instances for failover Design for scale: - Partitioning of accounts using separate RDS instances
  • 27. Problems at Scale Design for concurrency: - Immutability is key, Actor Model, STM are useful Design for performance: - Profile everything (Yourkit is great for this) - Java is very memory hungry… tune the JVM and GC strategy
  • 28. Problems at Scale Design for cost: - Reserved instances (up-front cost) can save a fair bit Design for content delivery: - Server side caching (Varnish, mod_cache) - Client side caching (expires headers, etags) - Content Delivery Network - (Cloudfront, Akamai)
  • 29. Design for failure: - Internal Services (Redundant Copies) - External Services - Protect against them overloading your internal services - Don’t flood them with your traffic Problems at Scale
  • 30. Future Tech Some future technology we’re interested in... - Web Components (Polymer) - Functional JVM languages (JDK 8 Streams, Clojure) - Docker (LXC containers) for virtualisation - Interested in Quasar for lightweight threading
  • 31. Oh by the way… we’re expanding... Current Open Positions Senior Developers Graduate Developers Test Engineers Key Events @ Brightpearl 5th August - Java Meetup Group 20th August - PHPSW Meetup Questions?