# Dynamo Inbox

## Usage

The DynamoDb Inbox allows use of DynamoDb for [Brighter's inbox support](https://brightercommand.gitbook.io/paramore-brighter-documentation/outbox-and-inbox/brighterinboxsupport). The configuration is described in [Basic Configuration](https://brightercommand.gitbook.io/paramore-brighter-documentation/brighter-configuration/brighterbasicconfiguration#inbox).

For this we will need the *Inbox* packages for the DynamoDb *Inbox*.

**AWS SDK v3** (legacy support):

* **Paramore.Brighter.Inbox.DynamoDb**

**AWS SDK v4** (recommended for new projects):

* **Paramore.Brighter.Inbox.DynamoDb.V4**

See [AWS Configuration](https://brightercommand.gitbook.io/paramore-brighter-documentation/guaranteed-at-least-once/awssqsconfiguration#migration-guidance) for migration guidance between v3 and v4.

```csharp
private static IHostBuilder CreateHostBuilder(string[] args) =>
    Host.CreateDefaultBuilder(args)
        .ConfigureServices(hostContext, services) =>
        {
            ConfigureBrighter(hostContext, services);
        }

private static void ConfigureBrighter(HostBuilderContext hostContext, IServiceCollection services)
{
	var dynamoDb = new AmazonDynamoDBClient(credentials, new AmazonDynamoDBConfig { ServiceURL = "http://dynamodb.us-east-1.amazonaws.com"; });

	services.AddConsumers(opt => 
	{
		opt.Inbox = new InboxConfiguration(new DynamoDbInbox(dynamoDb, new DynamoDbInboxConfiguration()));
		...
	});
}
...

```
