Git Product home page Git Product logo

aws-batch-serverless-pipeline's Introduction

AWS Batch and AWS Step Functions

Build Status

This is pre-alpha code, completely untested.

Summary

This architecture decouples the batch engine and workflow orchestration.

  • Workflow creation is defined in JSON and can also integrate with non-AWS Batch applications
  • Array jobs in AWS Batch support the capability to fan-out individual steps along with support for job dependency models.
  • AWS Batch supports dynamic compute provisioning and scaling, so we could provision 10 jobs or 10,000 jobs without paying for idle time for the resources.

Considerations

Considerations for Batch Layer

  • Data Sharing: Jobs are managed at the container, not instance level, so cannot guarantee containers in a workflow will run on the same instance. Stage all data in Amazon S3, and read and write everything from there. This is also important for traceability, logging, and debugging.
  • Multitenancy: Maybe have multiple containers running batch processes on the same instance in same base working directory. Within scratch directory, each batch process creates a subfolder with a unique ID. All scratch data written to this subdirectory.
  • Volume Reuse: Scratch data should live only as long as the job using it in order to optimize for instance and Amazon EBS storage costs. Within scratch directory, each batch process creates a subfolder with a unique ID. Delete subdirectory at end of job.

Sequence

  1. Setup Container Locally
  2. Setup AWS Batch
  3. Setup AWS Step Functions
  4. Setup AWS Lambda Functions

TODO

  • Example environmental variable from trigger lamdba -> step function -> AWS Batch job
  • Container running in ECS (managed by AWS Batch) needs an IAM role to call other AWS services
  • A first test run

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.