WebSockets - Haskell

Welcome to the Functional Programming Zulip Chat Archive. You can join the chat here.

Edward Yang

I took a look at hashrocket's benchmarks, and noticed two haskell implementations:

  • A variant using unagi-chan to broadcast values
  • A variant holding a hashmap of thread ids and connections to broadcast values

What are the pros and cons of each? The rtt for both benchmarks is roughly the same.
I'm currently using the hashmap variant, debating whether or not I should use channels instead.