Archive | June, 2014

Starting with jMonkeyEngine – 3D Game Development Terminology

jMonkeyEngine has always caught me eye as one of the most complete and community supported 3D game engines. My Java is beginning to be very rusty, so exploring this framework works to my advantage in many ways.

As outlined in the “Community Hub“, before undertaking the beginner tutorials, it’s important to understand basic 3D game development terminology (ex. mesh, shading, specular map). They actually provide such a documentation, which is wonderfully resumed for those of us who want to get down into the action, and not spend hours reading. The scene graph is among the most important concepts, on which they have an article dedicated to.

 

Redis as Session Storage – Comparison to Memcached

Yesterday I was investigating Redis as a potential key-value storage. In particular, it’s potential for session storage. I thought I should share some of my findings here.

An application I’m currently helping to maintain uses Memcached to store session data. This is bad for at least 2 reasons:

  1. Memcached data is not persisted to disk, leading to potential of closing sessions if the server is having issues,
  2. Expired keys aren’t removed automatically; they only get deleted on the next retrieval, meaning that most of the time, sessions never get deleted, because the user stops responding, and their sessions remain stale until the next instance restart

Redis was seen as a good alternative. It supports key expiration that automatically deletes keys. It also saves data to disk, preventing data loss.