bref VS aws-lambda-runtime-interface-emulator

Compare bref vs aws-lambda-runtime-interface-emulator and see what are their differences.

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
bref aws-lambda-runtime-interface-emulator
40 4
2,971 862
1.3% 1.7%
9.4 5.2
6 days ago 7 days ago
PHP Go
MIT License Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.

bref

Posts with mentions or reviews of bref. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-11-01.
  • A bank runs serverless with PHP and AWS Lambda
    2 projects | news.ycombinator.com | 1 Nov 2023
    As you can see on the website (https://bref.sh/) there's 13 billion monthly AWS Lambda invocations using Bref (PHP).
  • Configuring OpenSSL 3 to sign an Apple Passbook?
    2 projects | /r/openssl | 4 Jul 2023
    I have a PHP application (running on Amazon Linux via Bref on Lambda) which has been signing Apple passbooks no problem. I've trying to do various upgrades which includes moving to AWS Linux 2023 which uses OpenSSL 3.
  • Bref + SQS - Runtime.unknown
    2 projects | /r/PHP | 29 Apr 2023
    Your best bet is to post an issue on https://github.com/brefphp/bref
    2 projects | /r/PHP | 29 Apr 2023
  • Software architecture applied to PHP
    2 projects | /r/PHP | 3 Mar 2023
    multi threading php isnt a burden. laravel with a supervisor + redis + queues works out-of-the-box. you can even run it on lambda (vapor or bref.sh) with almost no hassle.
    2 projects | /r/PHP | 3 Mar 2023
    On Lambda you can either use containers or bref which is a layer that you add to your Lambda and it provides the binaries and other stuff you need to run php.
  • Project advice
    2 projects | /r/PHP | 16 Jan 2023
    To generate resource on AWS, you can use aws-sdk into a lambda. While Node or Python is more widely used, you can use PHP bref.sh and the PHP AWS SDK to achieve the same outcome. You'll want to use serverless framework (https://www.serverless.com) .
  • Ideas for minimum PHP pipeline for a small team
    7 projects | /r/PHP | 30 Dec 2022
    If you’re deploying in AWS and depending on your app I’d highly recommend using https://bref.sh/. When we changed it made our deploy pipeline so much simpler and our AWS bill much cheaper. Plus infrastructure as code is so useful (we don’t have dedicated dev ops in a team of about 20). Things like adding GD, upgrading PHP, or even adding a redis server become 1 (or a few) lines of change which you can PR and test on staging just like other code changes.
  • Is fargate the right choice for my apps?
    2 projects | /r/aws | 27 Dec 2022
    For Lambda, look into https://bref.sh/. For us, running on Lambda was always way cheaper than everything else. However, if you have massive scale that calculation may not hold up.
  • Laravel Vapor, security information?
    2 projects | /r/laravel | 25 Oct 2022
    Failing that, looks like Bref will be the option in place of Vapor.

aws-lambda-runtime-interface-emulator

Posts with mentions or reviews of aws-lambda-runtime-interface-emulator. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-06-19.
  • Understanding the AWS Lambda Runtime API
    4 projects | dev.to | 19 Jun 2021
    Enter the aws-lambda-runtime-interface-emulator. This tool will allow us to emulate the AWS Lambda Runtime API locally (I suspect that the AWS SAM uses this tool under the hood as well). The aws-lambda-runtime-interface-emulator is designed to be used with Docker. Still, nothing stops us from containerizing our code for the sake of development and then, whenever we are ready, proceeding with deployment how we wish to. This local workflow is a bit more involved than the previous one, but it might be a valid alternative for those not using AWS SAM or are already using containers to deploy their Lambdas.
  • Puppeteer performance in AWS Lambda Docker containers
    4 projects | dev.to | 5 May 2021
    There is a special tool to test AWS Lambda images locally. It's called AWS Lambda Runtime Interface Emulator (RIE). You have two options: include RIE in your image or install it locally. We don't need it in the production image, so let's choose the second option. We will download binary locally and mount it to our image if we need to test it.
  • Ask HN: Does anyone else find the AWS Lambda developer experience poor?
    23 projects | news.ycombinator.com | 18 Apr 2021
    Suggestions:

    1. If you are building APIs and using Lambda functions as targets from an API Gateway API, look into libraries like serverless-wsgi (Python) or wai-handler-hal (Haskell) that translate between API Gateway request/response payloads and some kind of ecosystem-native representation. Then as long as you're writing code where all state gets persisted outside of the request/response cycle, you can develop locally as if you were writing for a more normal deploy environment.

    2. Look into the lambda runtime interface emulator ( https://github.com/aws/aws-lambda-runtime-interface-emulator... ). This lets you send invoke requests to a fake listener and locally test the lambda more easily. While the emulator is provided in the AWS container base images, you don't need to run it inside a container if you're deploying with zip files. (AWS-provided container images automatically enable the emulator if not running in a lambda runtime environment, and using docker for port remapping is nice. But not at all required.)

    3. Get really good at capturing all requests to external services, and mocking them out for local testing. Whether this is with free monads, effect systems, gateway classes will depend on your language and library choices.

    23 projects | news.ycombinator.com | 18 Apr 2021

What are some alternatives?

When comparing bref and aws-lambda-runtime-interface-emulator you can also consider the following projects:

lambda-debug-proxy - A proxy for piping AWS lambda input payload+context to and returning a response from a local dev environment for debugging.

serverless-offline - Emulate AWS λ and API Gateway locally when developing your Serverless project

docker-lambda - Docker images and test runners that replicate the live AWS Lambda environment

Laravel - The Laravel Framework.

Lumen - The Laravel Lumen Framework.

octane - Supercharge your Laravel application's performance.

PHP-DI - The dependency injection container for humans

Moto - A library that allows you to easily mock out tests based on AWS infrastructure.

sidecar - Deploy and execute AWS Lambda functions from your Laravel application.

laravel-bridge - Package to use Laravel on AWS Lambda with Bref

serverless-application-model - The AWS Serverless Application Model (AWS SAM) transform is a AWS CloudFormation macro that transforms SAM templates into CloudFormation templates.

sst - Build modern full-stack applications on AWS