Go to file
Seth Call b65ccd6060 * fixing tests made for switch all send messages to binary. tests broke because of some mocks 2012-08-27 08:56:02 -05:00
bin * all messages are finally binary encoded 2012-08-26 22:00:03 -05:00
config * login and login_jam_session working with tests. logging cleaned up 2012-08-26 13:42:22 -05:00
features * initial commit of websocket gateway. login working, still working on login to jam session 2012-08-16 22:22:31 -05:00
lib * fixing tests made for switch all send messages to binary. tests broke because of some mocks 2012-08-27 08:56:02 -05:00
spec * fixing tests made for switch all send messages to binary. tests broke because of some mocks 2012-08-27 08:56:02 -05:00
.gitignore * initial commit of websocket gateway. login working, still working on login to jam session 2012-08-16 22:22:31 -05:00
.pg_migrate * websocket gateway allows login to server and to session 2012-08-23 21:46:58 -05:00
.rvmrc * no longer using 'pg' gem for ActiveRecord, because it's not tested for jruby; also making all tests pass 2012-08-21 22:08:01 -05:00
Gemfile * fixing tests made for switch all send messages to binary. tests broke because of some mocks 2012-08-27 08:56:02 -05:00
Guardfile * initial commit of websocket gateway. login working, still working on login to jam session 2012-08-16 22:22:31 -05:00
README.md * login and login_jam_session working with tests. logging cleaned up 2012-08-26 13:42:22 -05:00
Rakefile * initial commit of websocket gateway. login working, still working on login to jam session 2012-08-16 22:22:31 -05:00
jam_websockets.gemspec * initial commit of websocket gateway. login working, still working on login to jam session 2012-08-16 22:22:31 -05:00
migrate.sh * websocket gateway allows login to server and to session 2012-08-23 21:46:58 -05:00

README.md

TODO & DESIGN LIMITATIONS

  • !!!! lock up multi-threaded unsafe data structures

  • The rabbitmq connection isn't pooled. Throughput limitation (but could be resolved by just starting more instances of JamWebsocket behind Haproxy)

  • The database connection isn't pooled. Throughput limitation (but could be resolved by just starting more instances of JamWebsocket behind Haproxy)

  • We make just one user topic registration and session registration for all users/sessions. If ever we had 10 of servers, it could be wasteful. It just depends on how fast the bogus messaging can be ignored

  • The database connection is pooled.

  • The user model is stored in memory, meaning periodically it should be reloaded from the database (in case a user was marked inactive and you want them knocked out of the system)

  • The user could easily join to multiple sessions. Currently, though, the ClientContext object only tracks one jam session topic subscription. This is minimial to change.

  • peek logic not implemented on server for protoc messages; this could be done to save cost of deserialization and serialization for session/user directed messages