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*  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 limitations are placed on method overriding ?

Explain what is Naming Applets in java applets? You can give an applet a name by using the NAME attribute of the APPLET element. This allows communication between different app

What is the difference between instance and object of a class? Few says both are same, then why java kept both the words for same thing?

A MapMessage carries name-value pair as its payload. Therefore its payload is same to the java.util.Properties object of Java. The values can be Java primitives or their wrappers

Differentiation between an Applet and an Application ?

List down the names of two array techniques available in JavaScript. The two techniques thata rae available in java script is: 1. sort( ) [sorts elements within alphabetical

What is Scope of Variable ? Space in that a variable is effective is called as the scope of a variable. In other words we can say area where that variable is available for the

Suppose that: A is the set of characters in the string "pellet"; B is the set of characters in the string "teller"; C is the set of characters in the string "pertinent"; a

What are the advantages of multimedia presentations? Write any five. Following are the benefits of multimedia presentations: • Great tool for efficiently communicating ideas

How to initialize array in java ? Individual elements of an array are referenced through the array name and through an integer that represents their position in the array. The