|
OmniCron Overlord
Registered User
Join date: 28 Nov 2005
Posts: 31
|
03-27-2006 13:52
Trying to determine whether to use email to communicate with an outside server or an rpc call. Thought i would ask what people's experiences are. What are the advantages of each? In what case would you recommend useing each of them?
Thanks for the help
|
|
Static Sprocket
Registered User
Join date: 10 Feb 2006
Posts: 157
|
03-27-2006 14:04
LSL cannot make an outgoing XML-RPC connection.
So all communication from SL *to* the outside would must be llEmail().
Now the response (to SL) can be XML-RPC or llEmail().
From the little experimentation I've done, XML-RPC creates a near immeadiate event in your SL Object.
Email to an SL Object goes into a queue that your object has to manually poll, once an email is found, it then take 1 to 3 second to retrieve. If your email queue exceeds 12 messages, messages will be silently lost.
Inbound XML-RPC is restricted to a single integer and I think 256 characters of string data. An inbound email is limited to 1,000 characters including headers.
From what I've been able to see, if the inbound data is going to be less then 256 characters in length, then XML-RPC is the way to go. If your inbound data is greater then 256 characters, but will fit in a single email of less then 1000 characters and you won't sending emails more then once every 5 seconds then go with email.
Lots of variables...
|