GithubHelp home page GithubHelp logo

s3-downloader's Introduction

Cloud File Downloader

A set of services to circumvent s3 egress costs and instead download files via kinesis using cutting edge technologies like serverless programming and docker

Motivation

  • Transfer prices are high when downloading from object stores like AWS S3
  • A single Gb costs 0.09$
  • Kinesis streams don’t have egress costs
  • A kinesis stream can produce 1Mb/shard/s
  • That costs 0.017$ per hour which gives 3.6Gb/h (0.408$ per day)
  • This means we can save up to 7.368$ per day per shard

Architecture

Main flow

Local setup:

In the name of cost saving, local development can be done without using any external services and is totally free!!!

Install docker and compose

Install SAM Cli from AWS.

Boot up s3 and kinesis (local) via docker-compose up -d

Start SAM local api gateway

cd file-splitter && sam local start-api -p 5454 --docker-network cloud-fun_cloud

Start the downloader service via idea

Run ./setup.sh

curl http://127.0.0.1:8081/download/testbig.json

s3-downloader's People

Contributors

smiklos avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.