All Projects → dong-dohai → serverless-content-encoding

dong-dohai / serverless-content-encoding

Licence: other
Serverless plugin to enable content encoding for response compression

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to serverless-content-encoding

Serverless Es Logs
A Serverless plugin to transport logs to ElasticSearch
Stars: ✭ 51 (+264.29%)
Mutual labels:  api-gateway, serverless-plugin
serverless-api-gateway-throttling
A plugin for the Serverless framework which configures throttling for API Gateway endpoints.
Stars: ✭ 54 (+285.71%)
Mutual labels:  api-gateway, serverless-plugin
serverless-certificate-creator
serverless plugin to manage the certificate of your lambdas custom domain (API Gateway=
Stars: ✭ 33 (+135.71%)
Mutual labels:  api-gateway, serverless-plugin
Serverless Api Gateway Caching
A plugin for the Serverless framework which helps with configuring caching for API Gateway endpoints.
Stars: ✭ 92 (+557.14%)
Mutual labels:  api-gateway, serverless-plugin
Krakend Ce
KrakenD Community Edition. Make your binary of KrakenD API Gateway
Stars: ✭ 245 (+1650%)
Mutual labels:  api-gateway
Sample Zuul Filters
Samples of custom Zuul 1 filters for use in Spring Cloud Netflix
Stars: ✭ 201 (+1335.71%)
Mutual labels:  api-gateway
Moleculer Web
🌍 Official API Gateway service for Moleculer framework
Stars: ✭ 198 (+1314.29%)
Mutual labels:  api-gateway
Product Microgateway
A cloud native, developer centric and decentralized API gateway for microservices
Stars: ✭ 194 (+1285.71%)
Mutual labels:  api-gateway
api-gateway
Node.js API gateway that works as single entry point for all clients in a MicroService architecture pattern.
Stars: ✭ 26 (+85.71%)
Mutual labels:  api-gateway
CloudFrontier
Monitor the internet attack surface of various public cloud environments. Currently supports AWS, GCP, Azure, DigitalOcean and Oracle Cloud.
Stars: ✭ 102 (+628.57%)
Mutual labels:  api-gateway
Apicast
3scale API Gateway
Stars: ✭ 225 (+1507.14%)
Mutual labels:  api-gateway
Yoyo
A dead simple comment engine built on top of AWS lambda and React, alternative comment service to Disqus.
Stars: ✭ 210 (+1400%)
Mutual labels:  api-gateway
gateway
A high-performance API Gateway with middlewares, supporting HTTP and gRPC protocols.
Stars: ✭ 520 (+3614.29%)
Mutual labels:  api-gateway
Aws Mobile React Native Starter
AWS Mobile React Native Starter App https://aws.amazon.com/mobile
Stars: ✭ 2,247 (+15950%)
Mutual labels:  api-gateway
zeppelin-gateway
Object Gateway Provide Applications with a RESTful Gateway to zeppelin
Stars: ✭ 24 (+71.43%)
Mutual labels:  api-gateway
Serverless Sinatra Sample
Demo code for running Ruby Sinatra on AWS Lambda
Stars: ✭ 195 (+1292.86%)
Mutual labels:  api-gateway
Dgate
an API Gateway based on Vert.x
Stars: ✭ 222 (+1485.71%)
Mutual labels:  api-gateway
yappa
Serverless deploy of python web-apps @yandexcloud
Stars: ✭ 57 (+307.14%)
Mutual labels:  api-gateway
Goku Api Gateway
A Powerful HTTP API Gateway in pure golang!Goku API Gateway (中文名:悟空 API 网关)是一个基于 Golang开发的微服务网关,能够实现高性能 HTTP API 转发、服务编排、多租户管理、API 访问权限控制等目的,拥有强大的自定义插件系统可以自行扩展,并且提供友好的图形化配置界面,能够快速帮助企业进行 API 服务治理、提高 API 服务的稳定性和安全性。
Stars: ✭ 2,773 (+19707.14%)
Mutual labels:  api-gateway
Apilogs
Easy logging and debugging for Amazon API Gateway and AWS Lambda Serverless APIs
Stars: ✭ 216 (+1442.86%)
Mutual labels:  api-gateway

Serverless Content Encoding

A serverless plugin to enable Content Encoding feature in API Gateway for lambda function response compression.

Install

Using yarn:

$ yarn add -D serverless-content-encoding

Using npm:

$ npm install --save-dev serverless-content-encoding

Configuration

Add the plugin and its configuration to your serverless.yml file:

plugins:
  - serverless-content-encoding

custom:
  contentEncoding:
    minimumCompressionSize: 0 # Minimum body size required for compression in bytes
  • minimumCompressionSize must be an Integer which greater than or equal 0.
  • If contentEncoding is not configured, minimumCompressionSize will be set to default value which is 0 bytes.
  • If you want to disable Content Encoding, set minimumCompressionSize to null.

Usage

This plugin will be triggered during deployment process

$ serverless deploy

Note

This plugin is to enable Content Encoding on API Gateway for response compression. If your are looking for binary files support, please use serverless-apigw-binary

Thanks @evgenykireev for the recommendation of using MinimumCompressionSize in CloudFormation instead of CreateDeployment API

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].