User guide

Run the Program
Run the program. Ensure that the AWS assembly is either in the same directory as the program or that
you have installed it in the General Assembly Cache.
get-object.exe
The program downloads the object and writes its contents to a file called s3Object.txt.
Managing ASP.NET Session State with Amazon
DynamoDB
ASP.NET applications often store session-state data in memory. However, this approach doesn't scale
well. Once the application grows beyond a single web server, the session state must be shared between
servers. A common solution is to set up a dedicated session-state server with Microsoft SQL Server. But
this approach also has drawbacks: you must administer another machine, the session-state server is a
single point of failure, and the session-state server itself can become a performance bottleneck.
Amazon DynamoDB, a NoSQL database store from Amazon Web Services (AWS), provides an effective
solution for sharing session-state across web servers without incurring any of these drawbacks.
Note
Regardless of the solution you choose, be aware that Amazon DynamoDB enforces an item
size limit of 64 KB. None of the records that you store in DynamoDB can exceed this limit.
The AWS SDK for .NET includes AWS.SessionProvider.dll, which contains an ASP.NET session
state provider. Also included is the AmazonDynamoDBSessionProviderSample sample, which demonstrates
how to use Amazon DynamoDB as a session-state provider.
For more information about using Session State with ASP.NET applications, go to the MSDN
documentation.
Version v2.0.0
39
AWS SDK for .NET Developer Guide
Managing ASP.NET Session State with Amazon
DynamoDB