5 Two-way communication between Fibers - Live coding a URL checker in Crystal
Channel: Lorenzo Barasti
Date: 2019-11-25

A concurrent, terminal-based tool written in Crystal.
In this session we look into a pattern that allows for synchronous data exchange between Fibers. If the code reminds you of Elixir's GenServer or Akka's actors, it's because we're using a channel as a Fiber's "mailbox", and returning data over a temporary channel that acts as a "sender". I hope you enjoy this!

You can find the code we wrote during the session here:
https://github.com/lbarasti/twitch-url-checker
Slides from the session: https://slides.com/lorenzobarasti/crystal-live-coding-1#/0/36

Live streamed on Twitch on 24 Nov 2019: https://www.twitch.tv/lbarasti
Announcing live-coding sessions and initiatives @ https://twitter.com/lbarasti