CONFIDENTIAL • Sencha Inc. ©2015
Speed-up Your Big Data Applications with
Sencha and Speedment
Per Minborg
CTO, Speedment
CONFIDENTIAL • Sencha Inc. ©2015
Demo Race
CONFIDENTIAL • Sencha Inc. ©2015
Agenda
3
• What Problems do we solve?
• What is Speedment?
• Video -Getting started with Speedment in 1 minute
• Live demo of connecting Speedment and Sencha
CONFIDENTIAL • Sencha Inc. ©2015
Current Problem
Consumer are demanding modern
applications with quick response times
• Ability to monitor activity in real time as it happens
on a site or app
• 1 second-delay in page response can result in 7%
reduction in conversion
Developers are facing a number of
challenges realizing quick responses
• Big data often lead to long response times
• Apps depends on backend databases / type
CONFIDENTIAL • Sencha Inc. ©2015
Difficult to Connect to Existing Data
DB
JDBCHibernate DAO
Methods for mapping between objects and database
ODM
Entity
Definitions
DTO
Data Access Layer
CONFIDENTIAL • Sencha Inc. ©2015
Difficult to Connect to Existing Data
Backend is often complicated,
fragmented and dependent of
several applications. Data
becomes bigger and bigger every
year
CONFIDENTIAL • Sencha Inc. ©2015
The Speedment Mission
7
Enable rapid and easy development of Big Data
Apps with real time execution.
CONFIDENTIAL • Sencha Inc. ©2015
What is Speedment?
• Database backend tool for applications
• Simplifies the challenge to develop
database applications
• You can, within hours, design, develop
and deploy applications
• Automatic generation of code, no need
to worry about the backend
Speedment
Sencha Application
Java Streams
CONFIDENTIAL • Sencha Inc. ©2015
What is Speedment?
• Convert large databases into
In-memory Java Objects (within JVM)
• Extreme Performance, real time Big Data –
Insane Mode
• Scales Linearly -More CPUs, More Insane
CONFIDENTIAL • Sencha Inc. ©2015
How does it Work?
10
In JVM memory cache
Java Objects in Graph View
Separates Reads and Writes
Reflection in
real time
Application
JVM
Read
Write
CONFIDENTIAL • Sencha Inc. ©2015
Why will in-JVM Memory give you Insane Speed?
Database In JVM Memory
Compare latencies using the Speed of Light
CONFIDENTIAL • Sencha Inc. ©2015
Why will in-JVM Memory give you Insane Speed?
• Keep everything in-JVM
• No need to check if an object is in cache
• We can organize objects knowing that we have them all
• We do not even have to look at individual objects -> O(1)
• Everything is Java
Size
Time
O(1)
O(n)
CONFIDENTIAL • Sencha Inc. ©2015
How can I fit my full Database in JVM Memory?
~24 GB
>1 TB
>4 TB
∞
On-Heap
Off-Heap
SSD
SQL
Database Size
(After Compression)
Scale Up
Scale Out
CONFIDENTIAL • Sencha Inc. ©2015
Cost of 1 GB RAM
$ 5
$ 0.04
$ 720,000
$ 67,000,000,000
Source: http://www.jcmit.com/memoryprice.htm
1959
2015
1985
2030
CONFIDENTIAL • Sencha Inc. ©2015
Fast Development and Extreme Performance
Frontend
Backend
One end
CONFIDENTIAL • Sencha Inc. ©2015
Demo Get started with Speedment in 1 minute
CONFIDENTIAL • Sencha Inc. ©2015
Live Demo
CONFIDENTIAL • Sencha Inc. ©2015
Pivot Grid with >100 000 rows
CONFIDENTIAL • Sencha Inc. ©2015
Thanks!
• www.spedment.com
• www.speedment.org
• GitHub: https://github.com/speedment/speedment-orm
• Twitter: @speedment
• Mail: sales@speedment.com
• Blog: minborgsjavapot.blogspot.com
• Palo Alto

Speed-up Your Big Data Applications with Sencha and Speedment

  • 1.
    CONFIDENTIAL • SenchaInc. ©2015 Speed-up Your Big Data Applications with Sencha and Speedment Per Minborg CTO, Speedment
  • 2.
    CONFIDENTIAL • SenchaInc. ©2015 Demo Race
  • 3.
    CONFIDENTIAL • SenchaInc. ©2015 Agenda 3 • What Problems do we solve? • What is Speedment? • Video -Getting started with Speedment in 1 minute • Live demo of connecting Speedment and Sencha
  • 4.
    CONFIDENTIAL • SenchaInc. ©2015 Current Problem Consumer are demanding modern applications with quick response times • Ability to monitor activity in real time as it happens on a site or app • 1 second-delay in page response can result in 7% reduction in conversion Developers are facing a number of challenges realizing quick responses • Big data often lead to long response times • Apps depends on backend databases / type
  • 5.
    CONFIDENTIAL • SenchaInc. ©2015 Difficult to Connect to Existing Data DB JDBCHibernate DAO Methods for mapping between objects and database ODM Entity Definitions DTO Data Access Layer
  • 6.
    CONFIDENTIAL • SenchaInc. ©2015 Difficult to Connect to Existing Data Backend is often complicated, fragmented and dependent of several applications. Data becomes bigger and bigger every year
  • 7.
    CONFIDENTIAL • SenchaInc. ©2015 The Speedment Mission 7 Enable rapid and easy development of Big Data Apps with real time execution.
  • 8.
    CONFIDENTIAL • SenchaInc. ©2015 What is Speedment? • Database backend tool for applications • Simplifies the challenge to develop database applications • You can, within hours, design, develop and deploy applications • Automatic generation of code, no need to worry about the backend Speedment Sencha Application Java Streams
  • 9.
    CONFIDENTIAL • SenchaInc. ©2015 What is Speedment? • Convert large databases into In-memory Java Objects (within JVM) • Extreme Performance, real time Big Data – Insane Mode • Scales Linearly -More CPUs, More Insane
  • 10.
    CONFIDENTIAL • SenchaInc. ©2015 How does it Work? 10 In JVM memory cache Java Objects in Graph View Separates Reads and Writes Reflection in real time Application JVM Read Write
  • 11.
    CONFIDENTIAL • SenchaInc. ©2015 Why will in-JVM Memory give you Insane Speed? Database In JVM Memory Compare latencies using the Speed of Light
  • 12.
    CONFIDENTIAL • SenchaInc. ©2015 Why will in-JVM Memory give you Insane Speed? • Keep everything in-JVM • No need to check if an object is in cache • We can organize objects knowing that we have them all • We do not even have to look at individual objects -> O(1) • Everything is Java Size Time O(1) O(n)
  • 13.
    CONFIDENTIAL • SenchaInc. ©2015 How can I fit my full Database in JVM Memory? ~24 GB >1 TB >4 TB ∞ On-Heap Off-Heap SSD SQL Database Size (After Compression) Scale Up Scale Out
  • 14.
    CONFIDENTIAL • SenchaInc. ©2015 Cost of 1 GB RAM $ 5 $ 0.04 $ 720,000 $ 67,000,000,000 Source: http://www.jcmit.com/memoryprice.htm 1959 2015 1985 2030
  • 15.
    CONFIDENTIAL • SenchaInc. ©2015 Fast Development and Extreme Performance Frontend Backend One end
  • 16.
    CONFIDENTIAL • SenchaInc. ©2015 Demo Get started with Speedment in 1 minute
  • 17.
    CONFIDENTIAL • SenchaInc. ©2015 Live Demo
  • 18.
    CONFIDENTIAL • SenchaInc. ©2015 Pivot Grid with >100 000 rows
  • 19.
    CONFIDENTIAL • SenchaInc. ©2015 Thanks! • www.spedment.com • www.speedment.org • GitHub: https://github.com/speedment/speedment-orm • Twitter: @speedment • Mail: sales@speedment.com • Blog: minborgsjavapot.blogspot.com • Palo Alto