Java WebSession and Servlet Session Clustering
If your web application is high transaction then remove data storage bottlenecks related to your websession clustering and store your web session in an In-Memory Data Grid like TayzGrid. An In-Memory Data Grid allows you to scale your web applications and handle extreme transaction loads.
In-Memory Data Grid like TayzGrid as a websession clustering store is a much better option than the built-in storage options like InProc and clustered session store in any Java Servlet Container (e.g. Tomcat or JBoss). This is because TayzGrid lets you linearly scale the In-Memory Data Grid by adding more data grid servers to the cluster. And, this something you cannot do with the built-in options.
Benefits of WebSession and Servlet Session Clustering
In addition to linear scalability, TayzGrid offers the following extra benefits for storing your websessions in it:
- WAN Replication of Web and Servlet Session: TayzGrid allows you to replicate web and servlet sessions across the WAN if your application is running in multiple data centers. You can achieve this for active-passive and active-active datacenter configuration. This way, if one datacenter goes down, you can redirect all your traffic to the other datacenter and all user sessions stay active and valid.
- Multi-site Web and Servlet Sessions: If you don’t want WAN replication on Web and Servlet Sessions because of bandwidth consumption cost, you can choose to use Multi-site Web and Servlet Session feature of TayzGrid. In this, the web session is not replicated across sites and instead is kept at the location of its creation. But, it is accessible to your web application that is running in other datacenters in case you redirect some or all of your traffic from one datacenter to another either due to overflow or if one datacenter is doing down.
- Fast Compact Serialization of Web and Servlet Session: When you put your objects in web session and store it out-of-process, the entire Web and Servlet Session must be serialized along with your Java and .NET objects. And, this is normally done with regular Java and .NET serialization that use Reflection at runtime and this is quite slow. TayzGrid provides almost 10 times faster serialization called Fast Compact Serialization. With this, your Web application speed increases noticeably. And, the best thing is that you don’t have to write any code for it because TayzGrid generates serialization code at runtime, compiles it in-memory, and uses it for all serialization. You can mix Fast Compact Serialization with regular serialization.
Use Web Session without any Programming
The best thing about using TayzGrid for Web and Servlet Session persistence is that there is no programming required on your part. You simply modify your application configuration file and add TayzGrid as a Filter to your web JSP application. Here is an example of configuration changes:
configPath is used to load the session.xml and client.conf files