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
We want an E Commerce site Project Description: We want an E Commerce site like fifacointrader.. You must have experience with that kind of work We will award the proje

Coarse Grained SOA : Services are also could be coarse grained. E.g:   You may have a purchase element with individual functions to make a purchase order, add line items, and a

A fictitious train company, 'Transrail', has commissioned you to write a program that manages a list of train tickets. The program should display a text menu that prompts the us

1) Central museum is one of the famous tourist places in london. They ask comments from every customer visiting them.  For that, they maintained one register to store visitor;s com

how to retrieve multiple records randomly from a file and store it in another file

Explain Data Updates issues in data management? DATA UPDATES: Old titles must be removed regularly Data changes every time Prices change Transportation / shipping cost change

how to write aprogramm that calculates gross pay, taxes, and net pay for both hourly and commission employees. It will then display those results to the screen

BeanFactory has many executions in Spring. But one of the most useful one is org.springframework.beans.factory.xml.XmlBeanFactory, which loads its beans based on the definitions ha

Explain the difference between pre-emptive scheduling and time slicing ?

In pre-emptive scheduling, the highest priority task implements until it enters the waiting or dead states or a higher priority task comes into existence. In time slicing, a tas