An open API service indexing awesome lists of open source software.

https://github.com/thijsc/three-chat-servers

Example code to go with the talk of the same name and the Ruby Magic concurrency series of blog posts.
https://github.com/thijsc/three-chat-servers

concurrency example ruby

Last synced: 5 months ago
JSON representation

Example code to go with the talk of the same name and the Ruby Magic concurrency series of blog posts.

Awesome Lists containing this project

README

          

# A tale of three chat rooms

Example code to go with the talk of the same name and the [Ruby Magic](https://blog.appsignal.com/2017/03/07/ruby-magic-concurrency-processes.html) concurrency series of blog posts.

## Usage

Start one of the three servers:

```
ruby server_evented.rb
ruby server_processes.rb
ruby server_threads.rb
```

Start a few chat clients in different tabs:

```
ruby client.rb localhost
```

Type away!