slack-ruby / slack-ruby-client

A Ruby and command-line client for the Slack Web, Real Time Messaging and Event APIs.
MIT License
1.2k stars 215 forks source link

Perf test and document # of max RTM connections and memory usage #114

Open thbar opened 7 years ago

thbar commented 7 years ago

I'm only having a first look at slack-ruby-client and I wonder: typically, how many concurrent RTM connections are usually handled successfully without problems? Is it more in the 10, 100, 1000 range? Thanks!

(Note that I will do my homework, of course, yet I'm curious to hear about anyone with > 100 RTM connections setup).

dblock commented 7 years ago

I have production services on https://www.playplay.io with many hundreds using https://github.com/slack-ruby/slack-ruby-bot-server which uses this library. The biggest issue becomes memory and startup time: ~1/3s to start (https://github.com/slack-ruby/slack-ruby-client/issues/87 needs fixing) and 1MB per connection.

This is generally a good question. Would love a paragraph in the README about this with some actual tests rather than anecdotal evidence.