Killer Java applications server with nginx and memcached. Last days I worked setting up a new web serving structure for Wine, the largest wine’s e-commerce in Latin America.
After testing, studying and learning a lot, we built a nice solution based on nginx and memcached. I will use a picture to describe the architecture: As you can see, when a client do a request to the nginx server, it first checks on memcached if the response is already cached. If the response was not found on cache server, then nginx forward the request to Tomcat, which process the request, cache the response on memcached and returns it to nginx.
Tomcat works only for the first client, and all other clients requesting the same resource will get the cached response on RAM. Nginx nginx was compiled following Linode instructions for nginx installation from source. . % . After install nginx and create an init script for it, we can work on its settings for integration with Tomcat. Java application Now is the time to write some code. Web.xml <? That is it! Jetty Continuations: Push Your Java Server Beyond Its Scalability Limits. With the phenomenal growth in Internet usage, a Web server's limited scalability often is a bottleneck when handling increased user loads.
Rich collaboration features such as wikis, forums, calendars and documents are smartly integrated around activity streams, social networking and workspaces. It is carefully designed to instantly engage users. It runs within the trusted security of an enterprise platform and is highly customizable to adapt when your needs evolve. Learn More Build Social Websites eXo Platform has inherited strong capabilities for managing websites from its portal platform roots. But it is also a fantastic platform for content-centric applications. However, they can also be used in the front end if you need to engage your visitors!
Learn More. Redis - Project Hosting on Google Code. Bored of Apache/LightHTTPD/etc.? Try Mongrel2. October 28, 2010 – 6:09 pm Tags: Web Mongrel is a refreshing approach to web servers.
We’re all familiar with the Apache server and many of us have used Lighthttpd and Nginx and maybe some others too. So what makes Mongrel special? It’s language agnostic. It doesn’t have a PHP module, it doesn’t have a Python module, and yet you can still use those languages (and plenty more) with it, with very little effort to integrate new languages. Simplified overview of mongrel’s architecture When serving a PHP application, a server like Apache processes the HTTP request and then invokes some module – mod_php in PHP’s case – which then processes the scripting language in question and so on. Mongrel? How does it do anything useful then, you ask?
So the HTTP request comes to Mongrel, which then processes it and converts it into a sensible format containing the vital info (headers, parameters, etc., in JSON) and gives it to ZeroMQ. This makes Mongrel special You can have a PHP app. Share this: Yaws. Tomcat On Steroids (with EJB 3) = Apache TomTom. Netty 3.2.3.Final. Jetty Continuations: Push Your Java Server Beyond Its Scalability Limits. Caucho Resin : Reliable, Open-Source Application Server.