Más contenido relacionado La actualidad más candente (20) Similar a Deliver Performant & Highly Available User Session Stores for Cloud-Native Apps (20) Deliver Performant & Highly Available User Session Stores for Cloud-Native Apps1. © Copyright 2017 Pivotal Software, Inc. All rights reserved.
Deliver Performant & Highly Available User
Session Stores for Cloud-Native Apps
Roshan Kumar
@RoshanKumar
Kamala Dasika
@DasikaKN
2. © Copyright 2017 Pivotal Software, Inc. All rights reserved.
Changing Model for Application Delivery
Development Deployment
Sparingly at
designated times
Ready for prod at
any time
Architecture
Abstraction
Layer
“Day 2” Ops
App Server on Machine
App on “disposable”
infrastructure
Monolithic App
Microservices /
Composite app
Linear / Sequential
Short cycles, test
driven, iterative
Many tools, ad hoc
automation
Manage services,
not servers
3. © Copyright 2017 Pivotal Software, Inc. All rights reserved.
The Cloud Native Applications Journey
RUNS ON
LEGACY IT
RUNS ON
PIVOTAL CLOUD
FOUNDRY
RUNS WELL ON
PIVOTAL CLOUD
FOUNDRY
RUNS GREAT ON
PIVOTAL CLOUD
FOUNDRY
Your Exis*ng Apps
Running on Current-Era
Stacks Supported by Time-
Tested People and Process
APPS REPLATFORMING
Suitable Apps Moved to
PCF with Minimal Code
Change; BeKer Ops Thanks
to PlaLorm Automa*on
OPS & ORG TRANSFORMATION
Legacy Apps Refactored
Using 12-Factor Principles
and Modern SoRware
Process (TDD, CI/CD),
Op*mized for PCF
Cross-Func*onal Teams
Delivering Con*nuous
SoRware Updates Into PCF
End-to-End Through
Modern Principles
APPS MODERNIZATION
GREENFIELD, CLOUD
NATIVE APP
DEVELOPMENT
4. © Copyright 2017 Pivotal Software, Inc. All rights reserved.
I. Codebase
One codebase tracked in SCM,
many deploys
II. Dependencies
Explicitly declare and isolate
dependencies
III. Configuration
Store config in the environment
VI. Stateless processes
Execute app as stateless
processes
V. Build, Release, Run
Strictly separate build and run
stages
IV. Backing Services
Treat backing services as
attached resources
IX. Disposability
Maximize robustness with fast
startup and graceful shutdown
VIII. Concurrency
Scale out via the process
model
VII. Port binding
Export services via port binding
XII. Admin processes
Run admin / mgmt tasks as one-
off processes
X. Dev/prod parity
Keep dev, staging, prod as similar
as possible
XI. Logs
Treat logs as event streams
12-Factor Application*
* First introduced by Heroku
5. © Copyright 2017 Pivotal Software, Inc. All rights reserved.
“Stateless” Applications
Execute app as stateless processes
Stateless Processes should not store internal state
Any necessary state is externalized as a backing service
Share
nothing
Data needing to be shared should be persisted
Use local memory or the local file system only as a single transaction
“scratchpad”
6. © Copyright 2017 Pivotal Software, Inc. All rights reserved.
The Platform Difference
§ Provision & Deploy Reliably
- Same experience, many clouds
7. © Copyright 2017 Pivotal Software, Inc. All rights reserved.
The Platform Difference
§ Prefabricated & “Disposable”
Infrastructure
- No more managing individual servers
for each type of service
- Add monitoring, security, whatever
needed on every VM by default
Pivotal Cloud Foundry
vSphere Amazon Azure
PCF
Elastic
Runtime
Others…Redis
Enterprise
Pack for
PCF
Single
Sign- On
for PCF
8. © Copyright 2017 Pivotal Software, Inc. All rights reserved.
The Platform Difference
§ Consistent role-based access across
teams
- Ensures config & credentials across Dev/
QA/Prod are securely isolated
- Uniform across scaled out services
Spring Cloud Config
Dev UAT Staging
Producti
on
9. © Copyright 2017 Pivotal Software, Inc. All rights reserved.
The Platform Difference
§ Administrative dashboards
- Developer self service with operator
governance
- No need for custom work and 3rd party
tools to config, patch, update
10. © Copyright 2017 Pivotal Software, Inc. All rights reserved.
The Platform Difference
§ Built in Scale and Health
Management
VM FailProcess FailApp Instance
Fail
VM VM
Process
VM VM VM
29. 29
Designing a Session Store
Session a, 1
Session a, 2
Session a, n
Session b, 1
Session b, 2
Session b, n
Session x, 1
Session x, 2
Session x, n
Think of: Scalability, High Availability, and Durability
33. © Copyright 2017 Pivotal Software, Inc. All rights reserved.
Learn more: Services Marketplace
Pivotal.io > Build > PCF Marketplace or https://pivotal.io/platform/services
34. © Copyright 2017 Pivotal Software, Inc. All rights reserved.
Deliver Performant & Highly Available User
Session Stores for Cloud-Native Apps
Roshan Kumar
@RoshanKumar
Kamala Dasika
@DasikaKN