Scalability and familiarity with Amazon Keyspaces


In this lesson, you create a Users service for your application. This service handles all user-specific functionality for your application, including registration and basic retrieval. For data storage, your service uses Amazon Keyspaces (for Apache Cassandra), a fully managed database that is compatible with Apache Cassandra.

This lesson teaches you how to use a fully managed Amazon Keyspaces table in an application. First, you learn why you would want to use Amazon Keyspaces. Then you work through the steps to create an Amazon Keyspaces table and use it in your application. At the end of this lesson, you should feel confident in your ability to use Amazon Keyspaces in your application.

Time to complete: 3045 minutes

Purpose-built Databases - Keyspaces (17:59)
Why use Amazon Keyspaces?

Amazon Keyspaces is a fully managed service for running Cassandra-compatible databases with AWS. Apache Cassandra is a popular option for high-scale applications that need top-tier performance.

Amazon Keyspaces is good for high-volume applications with straightforward access patterns. Many developers use Amazon Keyspaces for metadata use cases, such as a user-profile service, or for time-series data, such as storing data from an Internet of Things (IoT) device or handling messages in a messaging service. In this lesson, you use Amazon Keyspaces to handle user metadata because most of the access patterns are simple key-value access patterns.

You might choose Amazon Keyspaces if you have an existing application that is using Cassandra where you would like to reduce your operations burden by using a fully managed service. With Amazon Keyspaces, your database operations are managed by AWS, leaving your team free to focus on innovation. Amazon Keyspaces handles cluster scaling, instance failover, data backups, and software updates. If you want to see more about migrating an existing Cassandra workload to Amazon Keyspaces, see the lesson about migrating from self-managed Cassandra to fully managed Amazon Keyspaces.

You also might choose to build a greenfield application by using Amazon Keyspaces because of your familiarity with the API and data model. Amazon Keyspaces is compatible with the Apache Cassandra API, so your developers don’t need to learn a new API if they are already familiar with Cassandra. With Amazon Keyspaces, they can get the benefits of a familiar, open-source API while also using a fully managed database.

Lesson contents

In this lesson, you learn how to build a Users service by using Amazon Keyspaces as your data storage. This lesson has four parts.

In this lesson, you learned how to create and use an Amazon Keyspaces table in your application. First, you created the Amazon Keyspaces table and specified the columns in your table. Then you learned how to authenticate and connect to your Amazon Keyspaces table. Finally, you learned how to create, read, and delete data in your Amazon Keyspaces table. You can use these patterns when building applications with Amazon Keyspaces.