Define the considerations for servlet clustering? , JAVA Programming

 

The clustering regulates high scalability and availability. The basic considerations for servlet clustering are:

1. Objects opened in a session could be serializable to support in-memory replication of sessions. Also consider the problem of serializing very big objects. Test the performance to make sure it is running.

2. Design for idempotence. Failure of an impatient or a request users clicking again may result in duplicate requests being given. So the Servlets could be relay to tolerate duplicate requests.

3. Avoid using static and instance variables in write and read mode because different instances can exist on different JVMs or on different operating system. Any state could be held in an external instance such as a database.

4. Avoid sending values in a ServletContext. It is not serializable and also the different resources may exist in different JVMs.

5. Avoid  using  java.io.*  because  the  files  cannot  exist  on  all  backend  machines #question..

 

Posted Date: 7/25/2012 4:00:01 AM | Location : United States







Related Discussions:- Define the considerations for servlet clustering? , Assignment Help, Ask Question on Define the considerations for servlet clustering? , Get Answer, Expert's Help, Define the considerations for servlet clustering? Discussions

Write discussion on Define the considerations for servlet clustering?
Your posts are moderated
Related Questions
What is Color in AWT? Color is a class in the AWT. Individual colors such as red or mauve are examples of this class, java.awt.Color. Be sure to import it if you want to use ot

What is Testing for Equality in java? Testing for equality is a little trickier. You would expect to test if two numbers are equal through using the = sign. However the = sign

Give an example for Passing Arguments to Methods ? class Car { String licensePlate = ""; // e.g. "New York 543 A23" double speed = 0.0; // in kilometers per h

Application or website to upload DICOM files from CD to Drop box etc Project Description: I need a website code or application to make patients put a cd or DVD to their disk

Develop Contact list application Project Description: Prepare a computer application to help employees manage their contact list. Users must be able to store two kinds of con

What limitations are placed on method overriding ?

You need to build an agent system using the JADE Toolkit that allows the lecturer of FIT5031 to broadcast their availability and arrange for consultation with students in a dynamic

Texas Hold'em Poker Java Game Source Code Project Description: I am seeking Java source code for a Texas Hold'em Poker game. The game could have client and server side mod

Explain what is Multilevel Inheritance ? The Car-Motorcycle-MotorVehicle instances showed single-level inheritance. There's nothing to stop you from going next. You can describ

What is casting? There are two types of casting, casting among primitive numeric types and casting among object references. Casting among numeric types is used to convert large