GithubHelp home page GithubHelp logo

aws-samples / getting-started-with-amazon-redshift-data-api Goto Github PK

View Code? Open in Web Editor NEW
66.0 7.0 37.0 6.76 MB

Samples to help you get started with the Amazon Redshift Data API

License: MIT No Attribution

Java 7.37% Python 19.46% JavaScript 16.40% Go 6.08% TypeScript 4.00% HTML 4.90% Shell 2.68% Jupyter Notebook 32.17% PLpgSQL 6.36% CSS 0.59%

getting-started-with-amazon-redshift-data-api's Introduction

Getting Started with Redshift Data API

In this repo we’ll be leveraging AWS Lambda to access Redshift Data API. You are able to access the Data API from other platforms such as Amazon EC2, AWS Glue, Amazon SageMaker, and from your on-premises resources. Each language has its own code sample with the ultimate aim of complete language parity (same subset of examples exist in each language).

These examples provide a demonstration on common sql operations such as create, copy, update, delete and select implementation in either synchronous or asynchronous mode that will be useful in building modern apps such as event-driven applications.

Introduction

The Amazon Redshift Data API enables you to efficiently access data from Amazon Redshift with all types of traditional, cloud-native, and containerized, serverless web services-based applications and event-driven applications. This includes, but not limited to, AWS Lambda, Amazon SageMaker, AWS Cloud9 and many other AWS services.

Amazon Redshift Data API simplifies data access, ingest, and egress from the languages supported with AWS SDK such as Python, Go, Java, Node.js, PHP, Ruby, and C++.

Tutorial Overview

In this tutorial, we’ll demonstrate how to get started with Amazon Redshift Data API in different languages. We'll be leveraging AWS Lambda to access Redshift Data API. However, with little modifications of the code, you are able to access the Data API from other platforms such as Amazon EC2, AWS Glue, Amazon SageMaker, and from your on-premises resources.

We'll also demonstrate some common use-cases customers are using Redshift Data API to solve. We'll provide code examples along with CloudFormation templates for these use-cases.

Architectural Diagram

Architecture Diagram

About Redshift Data API

Amazon Redshift Data API by default is asynchronous. This means when executing SQL commands, you can retrieve your results later for up to 24 hours with a generated Query ID. However, you can also configure your code to have your SQL commands run synchronously. The implementation is demonstrated within the code samples.

Others

  • Considerations when calling the Amazon Redshift Data API: Link

Security

See CONTRIBUTING for more information.

License

This library is licensed under the MIT-0 License. See the LICENSE file.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.