Refresh Your Java - Before Java Interview
We are Agile, believe in less Documentation - Only Quick notes (Java Interview Questions) of Java/J2ee Read more....
Sticky session refers to the feature of many
commercial load
balancing solutions for web
to route the requests for a
particular session to the same physical machine that
serviced
the first request for that session.
This is mainly used to ensure that the in-progress session
is not lost as a result of requests for a session being routed
to different servers.
Since requests for a user are
always routed to the same machine that first served the
request
for that session, sticky sessions can cause
uneven load distribution across servers. If the
first
accessed server is down for any reason User may lose the Session
Data no Session
Replication happens in Sticky
Session.
Here is the Sample load balancer Set up with apache MOD_PROXY
ProxyPass / balancer://mycluster/ stickysession=JSESSIONID
nofailover=On
ProxyPassReverse / ajp://yourcompany.com:8009
ProxyPassReverse / ajp://yourcompany.com:8009
<Proxy balancer://mycluster>
BalancerMember ajp://yourcompany.com:8009 loadfactor=20
BalancerMember ajp://yourcompany.com:8009 loadfactor=5
ProxySet lbmethod=byrequests
</Proxy>
This Portal is intended to put all Java/J2ee related topics at one single place for quick referance, not only Technical , but also the Project Management Related thing such as Development Process methodoogies build process, unit testing etc.,
This Portal has More than 500 Java Interview Questions (also could be Considered as Quick Notes) very neatly separated topic by topic with simple diagrams which makes you easily understandable. Importantly these are from our Realtime expericance.