Amazon DynamoDB: Store and Retrieve Data

In this section:

Amazon DynamoDB is a fast, highly scalable, highly available, cost-effective, non-relational database service. Amazon DynamoDB removes traditional scalability limitations on data storage while maintaining low latency and predictable performance.

The AWS Mobile SDK for iOS provides both low-level and high-level libraries for working with Amazon DynamoDB. Both allow you to perform create, read, update, and delete (CRUD) operations and to execute queries and scans.

The high-level library includes Amazon DynamoDB object mapper which lets you map client-side classes to tables. Working within the data model defined on your client you can write simple, readable code that stores and retrieves objects in the cloud. See Amazon DynamoDB Object Mapper API.

The low-level client allows you to access and manipulate Amazon DynamoDB tables directly for NoSQL or other non-relational data designs. The low-level library also supports conditional writes, to mitigate issues with simultaneous writes by multiple users, and batch operations. See Amazon DynamoDB Low-level Client.

Get Started#

You can explore Amazon DynamoDB in the following ways:

  • Amazon DynamoDB Integration Setup: Use the walkthroughs provided in this SDK.

  • Try the NoSQL Database feature in the AWS Mobile Hub console:

    • Intuitively design and provisioning of AWS services in minutes
    • Quickstart app demonstrating the services you configure (Android, Swift, or Objective-C)
    • SDK with helper code that can be dropped into your Xcode project
    • Step-by-step instructions for integrating your services into an existing mobile app

    Sign in with your AWS account and create a Mobile hub project - both free - then select NoSQL Database.

  • DynamoDB sample: Download and build the sample app from Github

Additional Resources#