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.
- Host: GitHub
- URL: https://github.com/thijsc/three-chat-servers
- Owner: thijsc
- Created: 2016-04-22T10:26:59.000Z (almost 10 years ago)
- Default Branch: main
- Last Pushed: 2025-04-03T14:43:16.000Z (10 months ago)
- Last Synced: 2025-04-28T10:53:41.910Z (9 months ago)
- Topics: concurrency, example, ruby
- Language: Ruby
- Homepage:
- Size: 23.4 KB
- Stars: 45
- Watchers: 5
- Forks: 15
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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!