In Go web development the Gorilla web toolkit is a very popular collection of libraries for common web tasks. The gorilla/sessions package provides an easy interface for using/storing users’ session data. There was no implementation for Cassandra DB so I created one.

The gorilla/sessions package itself relies on implementations of its storage interface so developers can store the data in whatever place is best for their environment. For an application we were prototyping at work we elected to store everything in Cassandra DB. I created the session store and it worked well enough for our prototype. We elected not to use Cassandra for staffing reasons so my storage implementation never saw production use.