Programming Tutorials Browser Tutorials Articles Struts Tutorials Hibernate Tutorials

  Tutorial: Raining Sockets

Raining Sockets is a non-blocking sockets framework which eases the job of creating a highly scalable application that can receive and send over 10000 socket connections. Prior to JDK 1.4, IO operations were blocking, which usually resulted in a thread-p

Tutorial Details:

\"The SocketBlaster (NIO based Load Tester) and Server (very basic NIO Server) program (both extended from NioSocket.java) have been successfully tested with 13000 connections on 2 Xeon machines. \"
The Raining HTTP Server is an NIO based HTTP Server that aims at implementing most of HTTP 1.1. This is under development and may be accessed in the 1.2 releases.
Components
* Raining HTTP Server - the main HTTP1.1 compliant server with throttling features.
* Raining Sockets - the core framework on which servers, proxies and clients are built.
* Some server examples: BasicServer, SimpleServer and DummyServer. Handle HTTP requests and serve files, some basic caching. Only 200 and 404 responses. No persistence.
* SocketBlaster - a client for creating a large number of requests to a server, using non blocking sockets. Contains only a few features at present.
* A proxy server example


 

Read Tutorial at: Click here to view the tutorial

Rate Tutorial:
Raining Sockets

View Tutorial:
Raining Sockets

Related Tutorials:

Java Tip 65: Measure data transfer speeds via Sun's ORB in JDK 1.2 beta 4 - JavaWorld - January 1999
Java Tip 65: Measure data transfer speeds via Sun's ORB in JDK 1.2 beta 4 - JavaWorld - January 1999
 
Write high-performance RMI servers and Swing clients - JavaWorld - April 1999
Write high-performance RMI servers and Swing clients - JavaWorld - April 1999
 
Simple handling of network timeouts - JavaWorld September 1999
Simple handling of network timeouts - JavaWorld September 1999
 
Cleaning up after Jini services - JavaWorld March 2000
Cleaning up after Jini services - JavaWorld March 2000
 
Use HTTPS in your Java client code - JavaWorld
Use HTTPS in your Java client code - JavaWorld
 
Sockets programming in Java: A tutorial - JavaWorld December 1996
Sockets programming in Java: A tutorial - JavaWorld December 1996
 
Build secure network applications with SSL and the JSSE API - JavaWorld May 2001
Build secure network applications with SSL and the JSSE API - JavaWorld May 2001
 
Master Merlin's new I/O classes
Master Merlin's new I/O classes
 
Pushlets: Send events from servlets to DHTML client browsers
Pushlets: Send events from servlets to DHTML client browsers
 
Mix protocols transparently in Web applications
Mix protocols transparently in Web applications
 
Use select for high-speed networking
Use select for high-speed networking
 
Beware the dangers of generic Exceptions
Beware the dangers of generic Exceptions
 
Asynchronous IO for Java
What is Asynchronous IO for Java? Asynchronous IO for JavaTM (AIO4J) is a package that provides the capability to perform input and output (IO) on sockets and files asynchronously -- that is, where the Java application can request the operation but can
 
Using SSL with Non-Blocking IO
Using SSL with Non-Blocking IO After the initial experiments with Java NIO, most developers start wondering about security; in particular, how to use SSL with Java NIO. With the traditional blocking sockets API, security is a simple issue: just set up an
 
Networking our whiteboard with servlets.
Find out how to easily replace the RMI and sockets networking layers with servlets.
 
JavaTM Secure Socket Extension (JSSE)
The JavaTM Secure Socket Extension (JSSE) is a Java package that enables secure Internet communications. It implements a Java version of SSL (Secure Sockets Layer) and TLS (Transport Layer Security) protocols and includes functionality for data encryption
 
Network Programming with JavaTM 2 Platform, Standard Edition 1.4 (J2SETM)
This article provides an overview of the new features and enhancements in the Java 2 Platform, Standard Edition 1.4 (J2SE), and shows you how to use them effectively.
 
Getting Started with SIP API for J2ME (JSR 180)
Getting Started with SIP API for J2ME (JSR 180) This article presents an overview of SIP, the Session Initiation Protocol (SIP) a signaling protocol used for establishing and controlling sessions on telecommunication networks based on the Internet Protoco
 
Pool resources using Apache's Commons Pool Framework
Resource pooling is not new and is being widely used to conserve and optimize the usage of resources like threads, sockets, and database connections. Web server implementations routinely use thread pool implementations for performance and scalability reas
 
News: World Records Broken with Sun Studio 10 Software and the Solaris 10 OS
Sun submits new performance world record for Sun Studio 10 compilers and the Solaris 10 operating system.
 
Site navigation
 

 

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2006. All rights reserved.