elasticmq
serverless-esbuild
Our great sponsors
elasticmq | serverless-esbuild | |
---|---|---|
2 | 6 | |
2,405 | 432 | |
1.5% | - | |
8.8 | 7.0 | |
10 days ago | about 2 months ago | |
Scala | TypeScript | |
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.
elasticmq
-
Announcing a Serverless Microservices Template with GraphQL
Since a majority of services rely on the same system services, we can leverage Docker to start all the needed project services prior running services with the offline command. The template ships with a base docker-compose.yml that stands up an instance of ElasticMQ to emulate Amazon SQS's API. The Docker image can be extended to include other services like DynamoDB, Redis, or PostgresQL and can be run using yarn infrastructure:build or yarn infrastructure:start depending on if it's your first run or not.
-
Is DevOps as a profession too beholden to Big Cloud?
however...we have banned use of SQS. unlike S3/Minio, there's nothing API-compatible that we can run offline. (well, there's one thing, but it's in-memory / single node only and doesn't give us the durability/reliability we want with SQS). instead we use RabbitMQ because it's identical at the API layer no matter where we are. AWS has a hosted option for this but we haven't switched to it, because our existing self-managed Rabbit clusters are stable and well-understood.
serverless-esbuild
-
Simple requirement: Bundle dependencies into a single script. esbuild, webpack, bun build throw errors. Solution?
Support Yarn PnP with externals bundling #327
-
๐ Top-level await in AWS Lamba with TypeScript
We use serverless-esbuild to transpile our TypeScript code to JavaScript.
-
AWS Lambda 101: Shave That Bundle Down
You should use appropriate tools to bundle your Lambda functions with a minimal size. For example, the Serverless Framework, with the serverless-esbuild plugin, automatically bundles your code and uploads it to AWS.
-
Announcing a Serverless Microservices Template with GraphQL
One of the most important aspects of serverless development is keeping an eye on your bundle sizes and to reduce cold start times on Lambda. Keeping this in mind, the template utilizes serverless-esbuild and serverless-analyze-bundle-plugin to provide function analysis out-of-the-box. I opted for serverless-esbuild over serverless-bundle for a few reasons:
-
[AWS Lambda] Optimizing node_modules in zip files
Its faster and easier to setup that webpack and drastically reduces the size of the archive. For Serverless framework users there is https://github.com/floydspace/serverless-esbuild and if you use SAM CLI, you already get this for free since they now use esbuild in the build process
-
Dependencies growing too large
if you can, try using https://github.com/floydspace/serverless-esbuild - esbuild is stupid fast and it produces tiny artifacts. Its dead simple too compared to the webpacks/rollups/etc.
What are some alternatives?
Op-Rabbit - The Opinionated RabbitMQ Library for Scala and Akka
nx - Smart Monorepos ยท Fast CI
serverless-bundle - Optimized packages for ES6 and TypeScript Node.js Lambda functions without any configuration.
kafka-manager - CMAK is a tool for managing Apache Kafka clusters
esbuild - An extremely fast bundler for the web
Play - The Community Maintained High Velocity Web Framework For Java and Scala.
top-level-await-in-aws-lamba-with-typescript - ๐ Using top-level await in AWS Lambda with TypeScript, esbuild and Serverless Framework
serverless-microservices-graphql-template - A Serverless Framework getting started template for building microservice architectures with a public GraphQL API using nx for monorepo support.
serverless-analyze-bundle-plugin - A serverless plugin to visualize and analyze the bundle of a lambda bundled with serverless-esbuild.
shardcake - Sharding and location transparency for Scala
lambda-build - Bundle, archive and upload your lambda functions