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
If there exist multiple conditions, the switch statement is suggested. It is because only one expression gets evaluated depending on which control jumps directly to the respective

A final class will not be extended i.e. A final method cannot be overridden when its class is added. You can't modify value of a final variable.

Can you help? this assignment I will need to build a very straightforward and fully functional machine learning classifier with the K-Nearest Neighbor (KNN) algorithm. The KNN mode

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

Business Objects represent the data client. They are the objects that need access to the datasource to obtain and store data. Data Access Objects abstract the relying data access i

What is linear search? It is the simplest form of search. It searches for the element sequentially starting from first element. This search has a drawback if element is located

Project Description: A java application is required with the subsequent features 1. Ability to use GSM Modem (and/or Mobile phones) or SMPP to send and receive SMS messages

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

Need software to print bills on A4 paper in the format provided. The details are shown below - 1. Serially generated Invoice Number. 2. Appropriate fields in the invoice have

Iterate through list of Fish. For each fish that isAlive, do the following: * * 1. If this fishIsSurroundedByRocks, DO NOTHING, and move on to the next fish. * (This f