Giga spaces value prop - afas - cloud practices

22
Building Applications for the Cloud - Challenges & Best Practices Jeroen Remmerswaal Tricode Business Integrators

Transcript of Giga spaces value prop - afas - cloud practices

Page 1: Giga spaces value prop - afas - cloud practices

Building Applications

for the Cloud -

Challenges & Best Practices

Jeroen Remmerswaal

Tricode Business Integrators

Page 2: Giga spaces value prop - afas - cloud practices

Timing is Everything - Why Now?• Credit crunch means:

• No large upfront investments• Need to do more with the same resources

• Maturity of virtualization technologies• Faster CPUs, memory, disks• Better internet

Page 3: Giga spaces value prop - afas - cloud practices

The Challenges:• Deploying on the cloud introduces new

challenges:• On demand scalability • Reliability • Data security• Deployment, monitoring &

management

Page 4: Giga spaces value prop - afas - cloud practices

Traditional ArchitecturesSimply Don’t Fit Anymore

Page 5: Giga spaces value prop - afas - cloud practices

Business tier

Back-upBack-up

Back-up

Load Balancer

Web Tier

Messaging

Traditional Architectures – See the Problem?

• Hard to install: • Bound to static resources (IPs, disk drives, etc.)

• Separate clustering model for each tier• Hard to maintain• Insecure• Non-scalable

Page 6: Giga spaces value prop - afas - cloud practices

There's a missing link

Page 7: Giga spaces value prop - afas - cloud practices

To take full advantage of the cloud, your application’s architecture needs to change

Page 8: Giga spaces value prop - afas - cloud practices

It needs to be elastic:• Grow (and shrink) as needed, based on

an SLA (such as work load)• But with no downtime, self-heal on

failure, without data- and transaction-loss

• And with a corresponding (predictable) performance improvement

Page 9: Giga spaces value prop - afas - cloud practices

It needs to be memory-based:• No permanent off-premise storage• Not bound to static resources• Bonus: extreme performance• Reliability achieved through memory

replication• Optionally offload data to on/off site

persistent store

Page 10: Giga spaces value prop - afas - cloud practices

It needs to be easy to operate:• Deploying & monitoring on the cloud as

simple and the same as doing it on-

premises• Process should be repeatable• Application should be modular –

update on the fly with no downtime

Page 11: Giga spaces value prop - afas - cloud practices

The Solution – Application Level Virtualization

Users

Load Balancer

Web Processing Units

BusinessProcessing Units

Primaries Backups

Page 12: Giga spaces value prop - afas - cloud practices

GigaSpaces XAP Value Proposition:GigaSpaces XAP Value Proposition:• Linearly scalable and elastic via virtualization Linearly scalable and elastic via virtualization

of the processing, messaging and data tiers of the processing, messaging and data tiers • Secure and ultra fast via in-memory Secure and ultra fast via in-memory

infrastructureinfrastructure• Comprehensive cloud support for the simplest Comprehensive cloud support for the simplest

provisioning, deployment & monitoringprovisioning, deployment & monitoring• Non-intrusive:Non-intrusive:

• Adopts existing programming modelsAdopts existing programming models

• Cross platform & languageCross platform & language

Page 13: Giga spaces value prop - afas - cloud practices

Can Your Application Take the Heat?

Your Server

How can your application How can your application

handle the load ???handle the load ???

Page 14: Giga spaces value prop - afas - cloud practices

Can Your Application Take the Heat?

The Cloud

GigaSpaces XAP will GigaSpaces XAP will

manage, monitor and scale your manage, monitor and scale your

application on the fly on the cloudapplication on the fly on the cloud

Page 15: Giga spaces value prop - afas - cloud practices

Some Practical Steps

Val

ue

Effort

ArchitectureOn-demand provisioning vs. static, peak-based

Parallel Processing vs. client-server

Partitioned virtualized servers vs. central server

Partitioned virtualized servers vs. central server

Savings Examples 7 machines

(10 peak – 3 avg)

90 machines

(100 peak, 10 avg)

6x machines

(SBA/TBA benchmark)

6x machines

(SBA/TBA benchmark)

Additional Benefits

Self-healing

Basic caching

Auto deployment

Automatic failover

Map/Reduce

Async invocation

Location transparency

Commodity HW Low

latency (in-memory)

Fast & Consistent

response time.

Commodity db vs. high-

end

Web TierWeb Tier Remoting Remoting

Messaging Messaging IMDG as System

of Record

IMDG as System

of Record

Page 16: Giga spaces value prop - afas - cloud practices

• If you have a standard J2EE WAR-file, deploy as-is into GigaSpaces

• Fail-over / Self-healing comes out of the box

• Add 'Auto-Scaling' for Scale-Up and Scale-Down

• Add Session-Clustering

Auto-Scale the Web-Tier

Page 17: Giga spaces value prop - afas - cloud practices

• Parallelize work over the cloud

– Move from J2EE Remoting to GigaSpaces remoting

– Giving you fault-tolerant, scalable, distributed remoting

– Parallelize instead of serialize

– Map/Reduce / Master/Worker / JSR223

Remoting on the Cloud

Page 18: Giga spaces value prop - afas - cloud practices

• Use the IMDG as the fault-tolerant messaging bus

– In-memory reliability

– Can be as simple as re-wiring your JMS provider to use GigaSpaces

– Use GigaSpaces Event Containers instead of MDB's

• Benchmarks on the same hardware show 6+ times more throughput

Messaging on the Cloud

Page 19: Giga spaces value prop - afas - cloud practices

• Fulfill your business transactions in memory

– Have (most of) the data available in memory

– Use the database because you want to, not because you have to

– Use the database asynchronously but reliable

• Benchmarks on the same hardware show 6-100 times more throughput

IMDG over the Cloud

Page 20: Giga spaces value prop - afas - cloud practices

• Large UK Telco Company

– Deploying discrete stand alone services in the Cloud

– More cost effective; easier to outsource; enabled by secure service interface

• Large Global Telco Company

– Deploying carrier grade VOIP service to the Cloud

– New SaaS business model; New revenue stream

• Global Media Company

– Using the Cloud to process events for innovative new TV programme

– Cloud makes concept cost effective

• Financial Services Start-up

– Using the Cloud for a trading exchange

– Cloud lowers barrier to entry and makes proposition possible

• Online Gaming Company

– Using the Cloud for testing and scaling

– Able to test large scale user support early / easy on cloud, hard otherwise

Some of GigaSpaces Cloud Users

Page 21: Giga spaces value prop - afas - cloud practices

GigaSpaces Cloud Portal

Page 22: Giga spaces value prop - afas - cloud practices

GigaSpaces Home Page:GigaSpaces Home Page:http://www.gigaspaces.com/http://www.gigaspaces.com/

GigaSpaces XAP Product Overview:GigaSpaces XAP Product Overview:http://www.gigaspaces.com/wiki/display/XAP7/Concepts http://www.gigaspaces.com/wiki/display/XAP7/Concepts

GigaSpaces XAP for the Cloud: GigaSpaces XAP for the Cloud: http://www.gigaspaces.com/cloudhttp://www.gigaspaces.com/cloud