Glenn has been after me for years to build my servers such that they run entirely in the pipeline. Thus far the servers I've needed to write have all been too complex for me to get my head around how I'd do them entirely in the pipeline, and I've always fallen back to using the standard WAKEUP-driven Rexx "Do Forever" loop.
But now I have a need for a server that has extremely limited functionality, but it has to be as FAST as possible, so I thought I'd give it a whirl. Problem is, I don't know where to begin, so I am looking for advice on how best to do this. This server will have a list of userids, all on the same node. The list is obtained from a GLOBALV. It must wait for SMSGs and reader files to arrive. SMSGs should be echoed (i.e. re-sent, as SMSGs) to the first userid on the list. Reader files should be CP TRANSFERred to any one of the userids on the list (chosen at random, or round robin, or whatever, as long as the total load is distributed uniformly across the pool of userids). That's it. It doesn't have to log anything, nor write any console output. It'd be nice if it could stop gracefully if someone types STOP on the console, but that's not strictly required. Bob Cronin
