Our great sponsors
fl-aws | faasd | |
---|---|---|
1 | 20 | |
15 | 2,851 | |
- | 1.4% | |
0.0 | 7.0 | |
over 7 years ago | 5 days ago | |
Go | ||
Apache License 2.0 | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
fl-aws
-
Ask HN: Does anyone else find the AWS Lambda developer experience poor?
Living in my team's bubble i thought everyone runs or tries to run parallel environments: prod, staging, dev, but also an individual (person) or feature env. Why? Because there's no emulator or documentation that will teach you real behavior. Like others have said, AWS seems out of this world. Just like GCP and Azure i might add. Some things you don't expect and they mesmerize you how smart they are. Some you expect and you can't fathom how come you're the "only" one screaming. Random thought: this is how i ended up logging all I bumped into into "Fl-aws" https://github.com/andreineculau/fl-aws
Back to the point: reality is that many build their AWS environment (prod) manually, maybe they duplicate once (dev) also manually, maybe they use some automation for their "code" (lambda) but that's it. This implies it's practically impossible to run end-to-end tests. You can't do that in prod for obvious reasons and you can't do it in dev either - you have many devs queueing, maybe dev is not in sync with prod etc.
My team ran cloudformation end-to-end. We actually orchestrated and wrapped cloudformation (this is yet another topic for not using terraform etc) so that if smth couldn't be done in CFN, it would still be automated and reproducible. Long story short, in 30 minutes (it was this long because we had to wait for cloudfront etc) we had a new environment, ready to play with. A total sandbox. Every dev had their own and it was easy to deploy from a release artifact or a git branch to this environment. Similarly you could create a separate env for more elaborate changes to the architecture. And test in a live environment.
Finally to your question: how do you test end-to-end?
If we talk about lambdas because that's where the business logic lies in a "serverless" architecture, then the answer is by calling the system which will eventually call your lambda/s along the way. If your lambda ia sitting behind AWS gateway, then fire an http request. Is it triggered when objects land on S3? Then push some object to S3. How do you assert? Just the same - http response, S3 changes etc. Not to mention you can also check cloudwatch for specific log entries (though they are not instant).
With this type of a setup, which sounds complex, but it is not since it is 100% reproducible (also from project to project - I had several), adding this proxy-to-my-dev-machine lambda would mean I can make local changes and then fire unit AND end-to-end tests without any changes pushed to AWS, which is the main time/energy consumer imo.
PS: sorry for the wall of text. Like i said i recently realized that the development realities have huge discrepancies, so i tried to summarize my reality :)
faasd
-
Running auto-scalling docker services
If you don't want to start with Kubernetes, faasd (https://github.com/openfaas/faasd) might be worth a look.
-
How to setup a containerized python environment? Function as a Service or an alternative solution for a Python execution environment.
I found OpenFaaS and its little sibling faasd. To my understanding they expose single functions through a REST API for easy interfacing. It sounds nice but OpenFaaS is overkill and I had trouble setting up faasd.
-
A Deep Dive into Golang for OpenFaaS Functions
Hope you find this interesting / useful - whether you're using AWS Lambda, OpenFaaS, or just plain old Go binaries. If you're wondering whether OpenFaaS requires K8s, you also have faasd as an option.
-
Any Easy to use self hosted cloud function service ?
Have you seen faasd from openfaas? Easier to setup and doesnât require a full blown kubernetes cluster: https://github.com/openfaas/faasd
-
Getting Started with Faasd
I'm the original creator of faasd, and just found this post on the Internet. What I liked was how he discovered faasd and found some unique value in it.
I wanted to share it all with a broader audience here. His bootstrap is a little bit convoluted, if you check out GitHub, we have a simple installer script and an eBook as a reference manual.
https://github.com/openfaas/faasd
-
[INFRA PART 1] Serverless Highscore Go API with Faasd and CockroachDB
First of all, you need faas-cli in your client local machine. You should get the binary and set it to your path. If you are on linux or mac machine, moving the binary into "/usr/local/bin" will work. For windows machines, you need to set environment variables in Control Panel>System and Security>System>Advanced System Settings(single-binary-faas-cli)
-
Self hosted vercel alternative ?
Have you considered OpenFaaS - https://github.com/openfaas/faasd
-
Azure function alternative
I am on the same ship, after some digging around I'm considering OpenFaaS, checkout - https://github.com/openfaas/faasd
- Show HN: faasd (0.13.0) upgraded for containerd v1.5.4
-
Looking for opinions on solid open source FaaS that support go.
If you use https://github.com/openfaas/faasd, you can skip the whole Kubernetes setup as well.
What are some alternatives?
aws-lambda-runtime-interface-emulator
OpenFaaS - OpenFaaS - Serverless Functions Made Simple
fission - Fast and Simple Serverless Functions for Kubernetes
nuclio - High-Performance Serverless event and data processing platform
telegraf-webhooks-plex - An external Telegraf Plugin for listening to Plex Webhooks.
hetzner-terraform-faasd - Getting started easily with faasd on top of debian OS for Hetzner Cloud
up - Deploy infinitely scalable serverless apps, apis, and sites in seconds to AWS.
gateway - Drop-in replacement for Go net/http when running in AWS Lambda & API Gateway
bref - Serverless PHP on AWS Lambda
docker-lambda - Docker images and test runners that replicate the live AWS Lambda environment
golang-http-template - Golang templates for OpenFaaS using HTTP extensions