jarv / cmdchallenge

This repo is mirror of https://gitlab.com/jarv/cmdchallenge
https://about.cmdchallenge.com
MIT License
721 stars 71 forks source link

Use bash.hook.io for excecuting commands #119

Closed reimertz closed 7 years ago

reimertz commented 7 years ago

First, love the idea and execution of cmdchallenge! 👏

It was just a teeny-weeny slow for me, which I assume is related to the amount of users you have now. Congrats!

I wonder if you have played around with other solutions rather than self-hosted BE? I think hook.io/gateways might be a good fit, that would mean that you could have all the static content hosted on github, and then use bash.hook.io to excecute commands.

Here is an example: http://bash.hook.io/?source=echo "hello world"

jarv commented 7 years ago

Thanks for the suggestion, executing what is given in bash using this or https://github.com/Stackvana/microcule (which I think is what it uses under the covers) would definitely be faster.

A few problems I see however:

There are probably some things I can do to speed things up, for example when you type "echo hello world" this is actually returned from cache but it still needs to do a couple dynamodb queries which probably accounts for the latency.