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 Multiple Inheritance ? A few object oriented languages, notably C++, permits a class to inherit from more than one unrelated class. This is known as multiple inheritanc

The more complicated the underlying system, the more critical the inter communication among everyone involved in deploying and developing the software. UML is a software language f

Want an Android App to be Build What i want is a Taxi App for Android and if good price for iOS too. The App want to have a Website where to add Cars whit all information and

Mine craft plug-in Coder Project Description: Some custom plugging for my Mine craft server. Skills required: Java, Editing

Explain what occur when an object is created in Java?

The method should printout line numbers from 1 to howmany in the previous format -ONLY WHEN is divisble by 3 but is should not oupt more then 3 numbers on the line. input 1 outpu

How does an exception permeate through the code? An unhandled exception moves up the method stack in search of a matching When an exception is thrown from a code which is wrapp

You are a newly recruited programmer, working for an IT company. This company won a contract to develop a Customer Relationship Management System (CRM) for a major retailer. The CR

There are two different types of data in a JSP page. 1. Static part which occurs copied directly to the response by the JSP Engine. 2. Dynamic part, which have anything that

In this lab, you will practice using ArrayLists in two ways.  The first is in the problem domain class Question.java (see the UML diagram shown below) which contains data for trivi