Resin (software) explained
Resin is a web server and Java application server developed by Caucho Technology. There are currently only two versions available: Resin (GPL), which is free for production use, and Resin Pro, designed for enterprise and production environments with a licensing fee. Resin supports the Java EE standard and features a mod_php/PHP-like engine known as Quercus.
Resin (GPL) offers essential functionalities for web and application serving, while Resin Pro includes additional optimizations, such as:
- Built-in Caching: Resin Pro incorporates built-in caching mechanisms to improve performance.
- Clustering: Resin Pro supports public, private, or hybrid clustering, enhancing scalability and redundancy.
- Advanced Administration and Health System: It provides an advanced administration system and health monitoring for efficient server management.
- HTTP Session Replication: Ensures high availability by replicating HTTP sessions across multiple server instances.
- Distributed Cache Replication: Enhances application performance by replicating cached data across a distributed environment.
- Auto-Recovery and Diagnostic Reports: Resin Pro offers automatic recovery mechanisms and detailed diagnostic reports to help in troubleshooting.
While Resin is primarily Java-based, critical components of its networking infrastructure are written in optimized C, providing a balance of features and performance. Resin has a long history, having been released in 1999, making it one of the mature and well-established application servers and web servers.
Product features
Resin Pro has been engineered to include:
- Dynamic Clustering: Locking was replaced with non-locking atomic operations, cleared contention bottlenecks, improved the async/epoll performance, and reduced thread overhead to handle 100,000 requests per second.
- Cloud Support: Elastic cluster members can be added or removed using a single command. Cluster topology, load balancing, caching, messaging, and management automatically adapt to dynamic servers.
- Compiled PHP on the JVM: Improves performance, scalability and security of PHP applications by allowing PHP code to directly call Java Objects.
- Security through Open SSL integration: A comprehensive security framework for application authentication, authorization and transport level SSL- based security.
- Smart Software Load balancer: Application load is shared among resources automatically to balance them.
- Proxy cache: Faster application performance is possible with Java caching by saving the results of long calculations and reducing database load and application response time.
Scalability
- Elastic Clustering / Cloud support[1]
- 3rd generation clustering optimized for Virtualization 2.0, EC2 and OpenStack deployments[2]
- Session Replication
- Load balancing
- Distributed Cache
Development
- Class compilation
- JIT Profiling and heap analysis
- No required
- JUnit support
- Web Admin
- DevOps support via CLI and REST control of Resin
- Apache Ant/Maven/Ivy integration
- IDE integration
- Flexible project management
- Logging
Production Ready
- Reliability
- Server Monitoring
- Deployment / Cloud deployment
- Versioned deployment
- Merge paths
- Troubleshooting aids
- Server health reports, baselining and post mortem reporting[4]
- Throttling
App Server
- Java EE Web Profile certified,[5] [6]
- Java CDI[7]
- Transaction support
Web Server[8]
- Static files/JSP/Servlet/JSF
- Extensible access logging
- URL rewriting
- Proxy caching (similar to Squid)
- Gzip compression
- Comet/Server push
- WebSocket
- mod-php like support via Quercus
- FastCGI
Usage
Resin's market share is small in the grand scheme of Java Application Servers, but some high traffic sites use it, such as Toronto Stock Exchange, Salesforce.com, Condé Nast (parent company of Wired, Vogue, GQ) and CNET.[9] NetCraft's February 2012 Survey stated Resin grew to 4,700,000 sites; Resin was the only Java-based web server mentioned.[10]
A 2012-page on a Caucho wiki site describes a test procedure with results showing that tested 0k (empty HTML page), 1K, 8K and 64K byte files. At every level Resin matched or exceeded nginx web server performance.[11]
Quercus
Quercus is a Java-based implementation of the PHP language that is included with Resin. According to a slideshow presented by Emil Ong (from Caucho), to a San Francisco Java Meetup Group in April 2008 pertaining to Resin 3.1, an essential difference in the operation of Quercus between the Resin Open Source and the Resin Professional editions is that in Resin Professional the PHP is compiled to Java bytecode whereas in the open source version PHP is executed by an interpreter.[12]
Caucho stated in 2007 that Quercus was faster than standard PHP 5 (PHP 8 with JIT is much faster than older PHP versions; PHP 5 is no longer supported)[13] [14] although this is only true for the JIT-compiled version in Resin Professional. Quercus ships with Resin.
Licensing
One license covers all components of the Resin architecture.
Resin is provided in both an open-source GPL license and a Pro version with enhancements for enterprises.
See also
External links
Notes and References
- Web site: Paul Cowan Discusses the Resin Application Server and Cloud . Infoq.com . 2012-10-25 . 2012-10-19 . https://web.archive.org/web/20121019114356/http://www.infoq.com/interviews/paul-cowan-resin-cloud . live .
- Web site: Caucho: Resin Cloud Support: 3rd generation Clustering For Elastic Cloud Scaling . s3.amazonaws.com . 2012-10-25 . 2015-04-04 . https://web.archive.org/web/20150404010531/http://s3.amazonaws.com/caucho-downloads/cloud/resin-cloud.pdf . live .
- Web site: Resin Can Now Act As a Drop-in Replacement for Memcached Solution . Infoq.com . 2012-10-25 . 2012-11-20 . https://web.archive.org/web/20121120181120/http://www.infoq.com/news/2011/12/resin-memcached . live .
- Web site: Caucho Technology » Blog Archive » Resin Pro Health System now and in the future . Blog.caucho.com . 2011-08-26 . 2012-10-25 . 2012-10-25 . https://web.archive.org/web/20121025224949/http://blog.caucho.com/2011/08/26/resin-pro-health-system-now-and-in-the-future/ . live .
- Web site: Caucho Resin is Officially Certified Against the Java EE 6 Web Profile . live . https://web.archive.org/web/20120822081939/http://www.infoq.com/news/2011/06/resin-web-profile . 2012-08-22 . 2012-10-25 . Infoq.com.
- Web site: Caucho Resin | Java Application Server | Java EE | PaaS Ready » Java EE Web Profile and beyond . Caucho.com . 2012-10-25 . dead . https://web.archive.org/web/20121001065848/http://www.caucho.com/resin-application-server/java-ee-web-profile/ . 2012-10-01 .
- Web site: Caucho Resin | Java Application Server | Java EE | PaaS Ready » Java CDI | Candi . Caucho.com . 2012-10-25 . dead . https://web.archive.org/web/20121024002955/http://www.caucho.com/resin-application-server/candi-java-dependency-injection/ . 2012-10-24 .
- Web site: Caucho Resin | Java Application Server | Web Server | Java EE Certified | PaaS/Cloud Ready » Resin Web Server . Caucho.com . 2012-02-07 . 2012-10-25 . dead . https://web.archive.org/web/20121031060508/http://www.caucho.com/resin-web-server/ . 2012-10-31 .
- Web site: Resin Customers Caucho . 2014-11-01 . 2014-11-01 . https://web.archive.org/web/20141101185344/http://caucho.com/products/resin/customers . live .
- Web site: February 2012 Web Server Survey | Netcraft . News.netcraft.com . 2012-02-07 . 2012-10-25 . 2012-10-31 . https://web.archive.org/web/20121031165138/http://news.netcraft.com/archives/2012/02/07/february-2012-web-server-survey.html . live .
- Web site: NginX 1.2.0 versus Resin 4.0.29 performance tests . Caucho.com . 2012-04-01 . 2012-08-25 . https://web.archive.org/web/20120825224504/http://wiki4.caucho.com/NginX_1.2.0_versus_Resin_4.0.29_performance_tests . live .
- (accompanying Caucho blog entry,additional copy of PDF)
- Web site: PHP on Java: Best of Both Worlds? . live . https://web.archive.org/web/20120929131400/http://www.infoq.com/news/2007/10/php-java-stack . 2012-09-29 . 2012-10-25 . Infoq.com.
- Web site: Powered by Google Docs . 2012-10-25 . 2013-10-05 . https://web.archive.org/web/20131005214202/https://docs.google.com/viewer?url=http%3A%2F%2Fwww.caucho.com%2Farticles%2Fquercus.pdf . live .