A tiny serverless computing platform for ruby developers. You can Run/Schedule single-purpose ruby scripts on a REST endpoint. I used Redis, Sinatra, Sidekiq to develop the stack, Its running on unicorn & Nginx. Ruby version is 2.3.1p112. Let me know your views on it.
I'm reading the description and reading it, and I still can't make heads or
tails of what does it do and when would I want to use it. Publishing text
files that happen to be code? Running a parametrized script on a request,
RPC-like? Running a script that was supplied in request, so people don't need
to find code injection attacks, but simply submit their code? Something
different?
What it do? --> Just upload your code to serverlessly.io. You receive a REST endpoint. You can trigger your code via HTTP verbs. GET for immediate response, POST for scheduling the code.
When You should use? --> If you developing one of these; Mobile apps, IOT, REST endpoints for Webapps; You will consider solutions like serverlessly, AWS lambda, Google CF over building own cloud infrastructure with ec2 or Google CE. Also, there are projects that consider separating out Compute/Memory intense tasks, Single-purpose stand-alone tasks from the stack to REST endpoint.
What are use-cases for individual rubyist ? ---> Building web crawlers, Program to send bulk emails or schedule emails, Processing text, Converters(csv, pdf..etc), A cool REST endpoint that other can use.
To answer your question, first one is right i.e. Publishing text files that happen to be code
You might want to disable debug mode (aka. show_exceptions setting) unless you want people to have access to sensitive information like the one contained in the "firebase.rb" file or "/root/nginx-unicorn-sinatra/app.rb". Sending an invalid User-Agent as part of the HTTP requests (like one with Unicode characters) makes the web application fail and respond with a dump of the global _SERVER variable with additional information provided by the Sinatra framework:
13 comments
[ 3.2 ms ] story [ 31.9 ms ] threadWhen You should use? --> If you developing one of these; Mobile apps, IOT, REST endpoints for Webapps; You will consider solutions like serverlessly, AWS lambda, Google CF over building own cloud infrastructure with ec2 or Google CE. Also, there are projects that consider separating out Compute/Memory intense tasks, Single-purpose stand-alone tasks from the stack to REST endpoint.
What are use-cases for individual rubyist ? ---> Building web crawlers, Program to send bulk emails or schedule emails, Processing text, Converters(csv, pdf..etc), A cool REST endpoint that other can use.
To answer your question, first one is right i.e. Publishing text files that happen to be code
Also, working on to enable HTTPS