Re: Networking
Jason van Zyl <[email protected]>
| Newsgroups | gmane.comp.java.jcontainer.interest |
|---|---|
| Message-ID | <[email protected]> |
On Mon, 2003-11-10 at 16:14, Peter Donald wrote: > 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. Sure, some examples would be great. I'm not overly concerned with performance either at this point if you're still tuning. I have two servers primarily that I want to mess around with. They are for sphere the little user/project/development management tool I'm farting around with. I have an smtp server and an ldap server. Both are very small, the smtp server for the mail management stuff and the ldap server for user management. I contacted Clayton Doneley who wrote the javaldap server code and he gave it to me under the Academic Free License. It works, it's small and it needs some cleaning up. > 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. Yah, I'm not much interested writing networking code so I'll take what you and Kasper make! :-) -- jvz. Jason van Zyl [email protected] http://tambora.zenplex.org In short, man creates for himself a new religion of a rational and technical order to justify his work and to be justified in it. -- Jacques Ellul, The Technological Society