AWS Classroomnotes 11/May/2023

NoSQL on AWS

  • NOSQL Databases by types
    • Key Value stores
    • Wide Column Databases
    • Document Database
    • Graph Databases
  • AWS gives managed options
    • Dynamo DB (Propietry database by AWS)
    • AWS Document DB (Mongo on AWS)
    • AWS Key Spaces (Cassandra on AWS)
    • Nepute (Graph Database)

Dynamo DB

  • Create a Table in Dynamo DB



  • Who will use these tables?
  • Sample code
import boto3

def create_dynamo_client():
    dynamo_client  =  boto3.resource(service_name = 'dynamodb',region_name = 'us-east-1',
              aws_access_key_id = 'AKIA3BS5NFXXXXXXX',
              aws_secret_access_key = 'qfGTJL28HrqcbhKCM0t//xxx7gTGG4iNrv3/d94Lsp')
    return dynamo_client

def get_table(dynamo_client):
    sample_table = dynamo_client.Table('qtdynamodb')
    return sample_table

def create_ticket(table):
    table.put_item(Item = {
        'id': '1',
        'movie': 'avengers',
        'theatre': 'pvr',
        'username': 'qtdevops'

    })


def get_ticket(table):
    item = table.get_item(Key = {'id': '1'})

if __name__ == "__main__":
    dynamo_client = create_dynamo_client()
    table = get_table(dynamo_client)
    create_ticket()
    get_ticket()

Dynamo DB Sizes

  • Refer Here for capacity modes
  • Dynamo Db Supports two capacity modes
    • On-demand
    • Provisioned
Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a ReplyCancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Animated Social Media Icons by Acurax Responsive Web Designing Company

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Exit mobile version
%%footer%%