0
Ruby e XMPPPotHix (a.k.a Willian Molinari)
O motivo
Leela-serverhttps://github.com/locaweb/leela-server
Eventos via XMPP     JSON FTW
Python?
Ruby!
Blatherhttp://adhearsion.github.com/blather/
Como organizar?
Daemonize
DaemonKitgithub.com/kennethkalmer/daemon-kit
Estrutura "Rails like"●   bin●   config●   lib●   libexec●   log●   public●   script●   tasks●   tmp●   spec
Algumas vantagens● Logs no syslog● Estrutura bem definida● script/console● Facilidades de start e stop● Environments
Ejabberd
Registrando usuárioejabberdctl --node ejabberd@mordor  register sauron localhost asdfasdf
Resultado
Simples assim
MensagensMessage received: {"timestamp"=>1348190235, "name"=>"xenserver.hm6226.memory.main.used(%)", "value"=>72.0}Message...
Ruby 1.9.2 :(Memory leak zuado
Olha a situação...    !!24GB                        93%                              !!
Ruby 1.9.3 :)   Vitorioso
Obrigado
Ruby e xmpp
Upcoming SlideShare
Loading in...5
×

Ruby e xmpp

415

Published on

Apresentação sobre Ruby e XMPP no Guru-SP

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
415
On Slideshare
0
From Embeds
0
Number of Embeds
6
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Transcript of "Ruby e xmpp"

  1. 1. Ruby e XMPPPotHix (a.k.a Willian Molinari)
  2. 2. O motivo
  3. 3. Leela-serverhttps://github.com/locaweb/leela-server
  4. 4. Eventos via XMPP JSON FTW
  5. 5. Python?
  6. 6. Ruby!
  7. 7. Blatherhttp://adhearsion.github.com/blather/
  8. 8. Como organizar?
  9. 9. Daemonize
  10. 10. DaemonKitgithub.com/kennethkalmer/daemon-kit
  11. 11. Estrutura "Rails like"● bin● config● lib● libexec● log● public● script● tasks● tmp● spec
  12. 12. Algumas vantagens● Logs no syslog● Estrutura bem definida● script/console● Facilidades de start e stop● Environments
  13. 13. Ejabberd
  14. 14. Registrando usuárioejabberdctl --node ejabberd@mordor register sauron localhost asdfasdf
  15. 15. Resultado
  16. 16. Simples assim
  17. 17. MensagensMessage received: {"timestamp"=>1348190235, "name"=>"xenserver.hm6226.memory.main.used(%)", "value"=>72.0}Message received: {"timestamp"=>1348190235, "name"=>"xenserver.cpro5385.memory.main.used(%)", "value"=>65.0}Message received: {"timestamp"=>1348190235, "name"=>"xenserver.cprohostinglin0758.memory.main.used(%)", "value"=>92.0}Message received: {"timestamp"=>1348190235, "name"=>"xenserver.hm6224.memory.main.used(%)", "value"=>94.0}^C^C^C^Croot@cpro:~# tail /var/log/syslog -n800 | egrep "22:18:08" | wc -l69
  18. 18. Ruby 1.9.2 :(Memory leak zuado
  19. 19. Olha a situação... !!24GB 93% !!
  20. 20. Ruby 1.9.3 :) Vitorioso
  21. 21. Obrigado
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×