Giter Club home page Giter Club logo

greenspeed's People

Contributors

mrchrisadams avatar rmparr avatar

Stargazers

 avatar

Watchers

 avatar  avatar

greenspeed's Issues

Run a sitespeed check for arbitrary url passed POST in to an endpoint.

We want to make it possible to run a sitespeed check as a service, but we want to make it scale to zero using as open and green a stack as possible.

To begin with, we're using google cloud run, because:

  • it works with containers which a v popular
  • runs on knative, meaning we're not locking ourselves too much into one company
  • it scales to zero
  • there's a bunch of decent instrumentation and billing already set up.

To begin with, greenspeed needs to run as a service where it will accept a POST with data sent along the lines of this handler.

https://cloud.google.com/run/docs/tutorials/pubsub#run_pubsub_handler-nodejs

If this is a valid url, we pass the url to sitespeed with the following parameters:

./bin/sitespeed.js https://PROVIDED_URL --headless -n 1 --sustainable.enable  --sustainable.co2PerDomain --sustainable.dirtiestResources  --sustainable.pageViews 1000000 --

### Acceptance criteria

We can close this issue when we have a HTTP service that:

  • accepts a url
  • checks that it's valid
  • runs sitespeed if valid

Set up CI for this

This is open source, so travisCI would be fine, but we are already using github actions on the main GD site, so ca can refer to that for setting it up.

Travis uses GCP under the hood, and Github probably uses MS's cloud under the hood, or eventually will.

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.