me2
me2

Reputation: 754

Haskell as a highly concurrent server

Let's say I want to write a server in Haskell. The kind that has high concurrency and simple processing. The kind that would be robust to failures and offer high availability. The kind that Erlang would be good for.

What would be a good set of tools, whether a framework or a set of primitives, to start from?

Upvotes: 13

Views: 2759

Answers (2)

Don Stewart
Don Stewart

Reputation: 138007

This is precisely what Haskell is great at. And it has excellent multicore parallelism support, so when you use more threads, you can take advantage of extra cores easily. Remember though, Haskell's aimed at great performance on multicore, Erlang's a bit different, emphasising distributed systems more, and not so much raw performance (e.g. see the benchmarks game, http://benchmarksgame.alioth.debian.org/u64q/compare.php?lang=ghc&lang2=hipe The Haskell's almost always much faster and uses much less memory).

Now, to get started:

You should find this task relatively easy, and fun!

Upvotes: 20

Kevin Won
Kevin Won

Reputation: 7186

Great place to start is the seminal paper by Simon Peyton Jones The Awkward Squad.

... I recently heard a talk you might find relevant. See details at the galois website

Upvotes: 1

Related Questions