Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Re: using jabber for RPC or inter-server-communication

by schweini (Friar)
on Jul 29, 2003 at 08:16 UTC ( #278761=note: print w/replies, xml ) Need Help??


in reply to Re: using jabber for RPC or inter-server-communication
in thread using jabber for RPC or inter-server-communication

yea - i did a RPC-via-mysql prototype once, too, but somehow it felt clumsy, since i had a cronjob checking whether there was anything to do since the last run.
i'm looking for the most generic/extenable/scalable connection-type out there, that's why i'm looking at jabber (AFAIK it was designed with these goals (but a different application in) mind)
do you really think that jabber is less reliable than some other form of inter-box communication? as far as i can see, messages either arrive or they don't (i doubt unterminated XML is marked as 'received'), and the risk of a corrupted message seems negiable, i hope.
am i missing something?
  • Comment on Re: Re: using jabber for RPC or inter-server-communication

Replies are listed 'Best First'.
Re: Re: Re: using jabber for RPC or inter-server-communication
by aquarium (Curate) on Jul 29, 2003 at 11:21 UTC
    database like progress has triggers...so when a table gets new data it will spring your procedure into life. good thing about databases is data integrity...if you want to have constraints on a field (say command name), then once you setup your database you don't need extra code...you want to fish out a command used ages ago, no prob, just look in the logs/history table...you want to have distributed architecture with a redundant (live) server, done. If you want no frills RPC then use RPC module, why bother with jabber bloat. no offense to jabber, it's good for what it was made for.
      sure sounds neat..only problem being (ahem) mysql's extensive support for triggers ;-)
      very TMTOWTDI way to do it, too...but i'll just be stubborn as hell and stick to jabber (did some testings i rather liked).
      it does have the enormous advantage of making debugging a lot easier, too...
      thanks, again.

        indeed... you'll be able to interact with your agents (servers) just like you would a good friend.

        watcher@host.sub.dom says yo! 192.168.254.12 just scanned me!
        
        bofh@sub.dom says you hear that Q? block that biatch.
        
        Q@sub.dom says right away sir!
        
        luser@sub.dom says my printer stopped working, what gives?
        
        bofh@sub.dom says what's it's name/ip?
        
        luser@sub.dom says printer4.sub.dom
        
        /msg Q wha? printer4
        Q@sub.dom says hrm, printer4 eh?
          host: printer4
          status: disabled (expired account 12345)
        /msg Q tell luser wha
        
        bofh@sub.dom says somebody forgot to pay $$ do you have a new account?
        
        luser@sub.dom says 54321
        
        /msg Q mod printer4 account 54321
        Q@sub.dom says mod printer4 eh?
          host: printer4
          status: nominal
        
        bofh@sub.dom says fixed u luser biatch
        
        Q@sub.dom says block 192.168.254.1 active
        ...
        

        then i just have to replace myself with a bot and go on a long vacation.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://278761]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2020-06-06 14:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you really want to know if there is extraterrestrial life?



    Results (41 votes). Check out past polls.

    Notices?