Re: Networking
Peter Donald <peter-4lf8KW9E9MLMqX/[email protected]>
| Newsgroups | gmane.comp.java.jcontainer.interest |
|---|---|
| Message-ID | <[email protected]> |
Hi, On Tue, 11 Nov 2003 06:24 am, Jason van Zyl wrote: > Are you guys using cornerstone for networking infrastructure or do you > have something non-Avalon now? I have some server stuff I want to do and > need some networking plumbing. Eventually I would like to use Kasper's > Gleipner SEDA stuff but it won't be done until mid next year. For my day job I am currently writing a massively scalable messaging server. I am using a SEDA-like architecture. If you want to use some fairly solid code I would recomend checking out sandbox/sca in Spice. It is fairly solid in all my tests and scales relatively well. Haven't done profiling on memory usage but other than that seems to work fine. Theres essentially two components in it - a Connector (for maintaining connections to something) and aSelectorManager (for handling all network comms in one thread). The SelectorManager essentially follows the "reactor" pattern from ACE and the Connector follows the "connector" pattern. Anyways the code is 100% unit test covered with deep tests hopefully. However if you want to modify it talk to me first as there is a lot of performance issues that are not documented and I don't have any profiling tests to ensure that they stay within acceptable ranges. If you need help with examples just holler and I can send a bunch your way. In the future I will probably be putting out a whole bunch more network code (ie chunking and packet handling for message server) but theres IP issues atm and it is not yet up to scratch. -- Cheers, Peter Donald *----------------------------------------------------* | We must become the change we want to see. - Gandhi | *----------------------------------------------------*