O'Reilly logo

Cloud Development and Deployment with CloudBees by Nicolas De loof

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Clustering constraints

Running your application in a clustered mode introduces some constraints. They aren't cloud-specific, but developers may not be familiar with them.

State

The main issue with clustering is state. As your application runs on a set of nodes, and you have subsequent requests from user to build a conversation, a distinct node may handle some of them. How can node B access the shopping cart that the customer has populated when server A handled his first request?

Cloud evangelists suggest the idea of being stateless. A stateless world would be cool for software architects as this would make distributed software far simpler. There are many ways the state can be managed in an application.

The HttpSession servlet

Using the API HttpSession ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required