Show HN: Faast.js – Serverless Batch Computing Made Simple
1–10 of 33 posts
Re: Show HN: Faast.js – Serverless Batch Computing Made Simple
#2Re: Show HN: Faast.js – Serverless Batch Computing Made Simple
#3Re: Show HN: Faast.js – Serverless Batch Computing Made Simple
#4Hi everyone, faast.js is a library that allows you to use serverless to run batch processing jobs. It makes it super easy to run regular functions as serverless functions. This is one of my first open source projects and I'd be happy to answer any questions here.
Do you think serverless pricing model contradicts with batch operations ? I think that you normally pay for duration of tasks and ram usage etc. Batch jobs are supposed to be running long. I'm probably missing something here. Would you tell me little bit more ?
Re: Show HN: Faast.js – Serverless Batch Computing Made Simple
#5Hi everyone, faast.js is a library that allows you to use serverless to run batch processing jobs. It makes it super easy to run regular functions as serverless functions. This is one of my first open source projects and I'd be happy to answer any questions here.
Hi, Do you think serverless pricing model contradicts with batch operations ? I think that you normally pay for duration of tasks and ram usage etc. Batch jobs are supposed to be running long. I'm probably missing something here. Would you tell me little bit more ?
Re: Show HN: Faast.js – Serverless Batch Computing Made Simple
#6Very interesting project, the problem with Serverless service provided by different public cloud vendors is that programming and API are not uniform. I think Faast.js is on the right path to creating a unified interface for different Serverless services.
https://serverless.com/framework/docs/providers/
(not familiar enough with that framework to form an opinion one way or the other)
Re: Show HN: Faast.js – Serverless Batch Computing Made Simple
#7Hi everyone, faast.js is a library that allows you to use serverless to run batch processing jobs. It makes it super easy to run regular functions as serverless functions. This is one of my first open source projects and I'd be happy to answer any questions here.
I especially like the cost estimate feature, that isn't something I've seen in such a seemingly simple tool like this before.
Re: Show HN: Faast.js – Serverless Batch Computing Made Simple
#8You invoke faast from your local machine (or build server, or cron job, whatever), and in turn it deploys some functions to a serverless platform and runs them, then tears them all down when complete. Eg, from the site, this code runs locally:
import { faast } from "faastjs";
import * as funcs from "./functions";
(async () => {
const m = await faast("aws", funcs);
try {
// m.functions.hello: string => Promise
const result = await m.functions.hello("world");
console.log(result);
} finally {
await m.cleanup();
}
})();
You wouldn't want to run this code on serverless, as you'd be paying for compute time of just waiting for all the other tasks to complete.It would be useful to see a discussion about how and where to host this entry code, may even a topic on "Running in production".
It's definitely a neat idea because if you control the event that kicks everything off anyway (eg: "create monthly invoices" or "build daily reports") you can deploy the latest version of everything, run it and clean it up in essentially a single step.
(Please correct me if I've misunderstood any of the details here!)
Re: Show HN: Faast.js – Serverless Batch Computing Made Simple
#9Re: Show HN: Faast.js – Serverless Batch Computing Made Simple
#10Hi everyone, faast.js is a library that allows you to use serverless to run batch processing jobs. It makes it super easy to run regular functions as serverless functions. This is one of my first open source projects and I'd be happy to answer any questions here.
I've been wanting to make a graphql server framework that can run on lambdas, and will perhaps look into integrating with faast.