My Livebook project containing a talk on Ranch that I was asked to give to show how OTP constructs are used in the real world and expose some of Phoenix's underpinnings.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Daniel Flanagan db2e7c4537
Ports?
10 months ago
lib Last minute changes 1 year ago
.formatter.exs Add talk timer 1 year ago
.gitignore Add talk timer 1 year ago
.tool-versions Add .tool-versions 1 year ago
Dockerfile Last minute changes 1 year ago
mix.exs Initial draft 1 year ago
mix.lock Initial draft 1 year ago
ranch-talk.livemd More changes 1 year ago
readme.md Ports? 10 months ago

readme.md

ranch-talk

🖥 Upstream🐙 GitHub Mirror

I was asked to give a 5-15 minute talk on Ranch, a TCP socket acceptor pool writter in Erlang, to show how OTP constructs are used in the real world and expose some of Elixir's Phoenix's underpinnings. This Livebook contains my code and notes for that talk.

Thanks to Divvy for inviting me to give this talk.

Usage

asdf install
mix escript.install github livebook-dev/livebook
git clone https://git.lyte.dev/lytedev/ranch-talk.git
cd ranch-talk
mix do deps.get, compile

Install and run a local Livebook in attached mode and automatically grab my code:

env LIVEBOOK_PORT=5560 LIVEBOOK_IFRAME_PORT=5561 \
  LIVEBOOK_HOME=(pwd) LIVEBOOK_IP=0.0.0.0 \
  livebook server --default-runtime mix --no-token

Or if you're gonna share this with everybody, it's probably safer to run it inside of Docker:

docker build . --tag ranch-talk
docker run -it --rm -p 5588:5588 -p 5589:5589 ranch-talk

Enjoy!