Skip to content

Latest commit

 

History

History
30 lines (17 loc) · 838 Bytes

README.md

File metadata and controls

30 lines (17 loc) · 838 Bytes

ExpressJS Session Store for Azure

Node.js express session store provider for Windows Azure table storage.

Install

npm install express-session-azure

Usage

Typical usage for the most part:

var express = require('express'),
    AzureSessionStore = require('express-session-azure');

var app = express.createServer();

app.configure(function(){
    app.use(express.cookieDecoder());
    app.use(express.session({ store: new AzureSessionStore({ name: "azure_storage_name", accessKey: "azure_storage_key" }) }));
});

Performance

Leveraging Windows Azure Table Storage nets some impressive performance. Not the fastest session store, but for being highly distributed and fault tolerant, it's an easy win. Latencies should be less than 20ms on average. Feel free to report your own findings.