Skip to content


Subversion checkout URL

You can clone with
Download ZIP
My attempt to learn scala and akka by implementing a mongo-esque server
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.

Simple project to learn Scala and Akka

I’m trying to learn Scala and Akka, so may as well also study MongoDB. This is my attempt to make a toy mongodb-esque db server using the Scala and Akka.

Here are some milestones to get me going:

  1. Read mongodb protocol (bson + mongo wire protocol). I have a decent start on this already. It uses the Akka Iteratees (so benefits from netty/nio async underneath). Still need to update to Akka 2.1 features described as “Encoding and decoding of binary data”
  2. Fake out a real mongodb client, at least through initial handshake of the protocol. This will require reading Mongo level messages (and drive any more bson implementation I need) and I’ll need some actors. I’ll have to write some mongo replies as well.
  3. Convince a mongo client I actually inserted a document (really, I’ll just throw it on the floor or put it in a Map)
  4. Profit! (i.e., I will have learned a whole bunch of Scala and Akka and some MongoDB too).


Already have to give thanks to Nick Wade from pdxscala who helped me over a hump in my Iteratee code.

Something went wrong with that request. Please try again.