Skip to content

Implement CDN module service #1

@divmain

Description

@divmain
  • similar to browserify-as-a-service: https://github.com/jfhbrook/wzrd.in
  • use serverless and AWS lambda https://github.com/serverless/serverless
  • a GET can look like:
    • http://cdn.interlockjs.com/h1/package/babylon@6.7.0, will redirect to
    • http://cdn.interlockjs.com/h1/SOME_LONG_BUNDLE_HASH
    • http://cdn.interlockjs.com/h2/package/babylon@6.7.0 will redirect to
    • http://cdn.interlockjs.com/h2/SOME_LONG_MODULE_HASH

TBD:

  • Will previously un-requested packages be generated on the fly, or should the CDN repo house all the included libraries explicitly?
  • If pre-compilation is the case, everything can be pushed to the CDN provider and the AWS component removed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions