Amazon AWS SDK Betriebsanweisung Seite 37

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 73
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 36
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 document-
ation.
Create the ASP.NET_SessionState Table
When your application starts, it looks for an Amazon DynamoDB table named, by default,
ASP.NET_SessionState. We recommend that you create this table before you run your application for
the first time.
To create the ASP.NET_SessionState table
1. Sign in to the AWS Management Console and open the Amazon DynamoDB console at https://con-
sole.aws.amazon.com/dynamodb/.
2. Click Create Table.The Create Table wizard opens.
a. In the Table Name text box, enter this text: ASP.NET_SessionState
b. In the Primary Key Type field, click Hash.
c. In the Hash Attribute Name text box, enter this text: SessionId
When all your options are entered as you want them, click Continue.
3. On the Add Indexes page, click Continue.
4. On the Provisioned Throughput Capacity page, enter the number of Read Capacity Units and
Write Capacity Units you want for the table.
Note
For now, you can leave the provisioned throughput settings at their minimum values of 1
read capacity unit and 1 write capacity unit. This will allow applications to read or write
session data at the rate of once per second. If you expect higher rates of usage, you can
come back to the DynamoDB console and increase these settings.
For more information, go to Provisioned Throughput in the Amazon DynamoDB Developer
Guide.
When all your options are entered as you want them, click Continue.
5. On the Throughput Alarms page, select the Use Basic Alarms check box. This automatically
configures Amazon CloudWatch alarms to notify you if read and write consumption reaches 80% of
the table's provisioned throughput.
In the Send notification to text box, enter your email address.This is the address to which Cloud-
Watch will send notification emails.
When all your options are entered as you want them, click Continue.
6. Review the options for your table:
If you need to correct any options, click Back to return to previous panels and make corrections.
When all your options are entered as you want them, click Create.
The ASP.NET_SessionState table is ready for use when its status changes from CREATING to ACTIVE.
Version v2.0.0
33
AWS SDK for .NET Developer Guide
Create the ASP.NET_SessionState Table
Seitenansicht 36
1 2 ... 32 33 34 35 36 37 38 39 40 41 42 ... 72 73

Kommentare zu diesen Handbüchern

Keine Kommentare