All Projects → GREsau → rocket-lamb

GREsau / rocket-lamb

Licence: MIT license
A crate to allow running a Rocket webserver as an AWS Lambda Function with API Gateway or an Application Load Balancer

Programming Languages

rust
11053 projects

Projects that are alternatives of or similar to rocket-lamb

Express Gateway
A microservices API Gateway built on top of Express.js
Stars: ✭ 2,583 (+3438.36%)
Mutual labels:  api-gateway
gateway
A high-performance API Gateway with middlewares, supporting HTTP and gRPC protocols.
Stars: ✭ 520 (+612.33%)
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 (-64.38%)
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 (+3698.63%)
Mutual labels:  api-gateway
Krakend Ce
KrakenD Community Edition. Make your binary of KrakenD API Gateway
Stars: ✭ 245 (+235.62%)
Mutual labels:  api-gateway
yappa
Serverless deploy of python web-apps @yandexcloud
Stars: ✭ 57 (-21.92%)
Mutual labels:  api-gateway
Sample Zuul Filters
Samples of custom Zuul 1 filters for use in Spring Cloud Netflix
Stars: ✭ 201 (+175.34%)
Mutual labels:  api-gateway
image-resizer-service
Serverless image resizing service for AWS
Stars: ✭ 95 (+30.14%)
Mutual labels:  api-gateway
rust-for-backend-development
SWITCH TO RUST AND STOP WASTING YOUR TIME WITH JAVASCRIPT RUNTIME EXCEPTIONS
Stars: ✭ 30 (-58.9%)
Mutual labels:  rocket
serverless-go
Serverless Golang Function to Discover Movies 🎥
Stars: ✭ 37 (-49.32%)
Mutual labels:  api-gateway
Dgate
an API Gateway based on Vert.x
Stars: ✭ 222 (+204.11%)
Mutual labels:  api-gateway
Aspnetcore.proxy
ASP.NET Core Proxies made easy.
Stars: ✭ 234 (+220.55%)
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 (+39.73%)
Mutual labels:  api-gateway
Apilogs
Easy logging and debugging for Amazon API Gateway and AWS Lambda Serverless APIs
Stars: ✭ 216 (+195.89%)
Mutual labels:  api-gateway
realtime-transport-dashboards
Serverless APIs for AWS to build and display public transports real time data (Serverless application example)
Stars: ✭ 23 (-68.49%)
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 (+187.67%)
Mutual labels:  api-gateway
kong-plugin-url-rewrite
Kong API Gateway plugin for url-rewrite purposes
Stars: ✭ 43 (-41.1%)
Mutual labels:  api-gateway
rocket auth
An implementation for an authentication API for Rocket applications.
Stars: ✭ 65 (-10.96%)
Mutual labels:  rocket
serverless-content-encoding
Serverless plugin to enable content encoding for response compression
Stars: ✭ 14 (-80.82%)
Mutual labels:  api-gateway
zeppelin-gateway
Object Gateway Provide Applications with a RESTful Gateway to zeppelin
Stars: ✭ 24 (-67.12%)
Mutual labels:  api-gateway

🚀 Rocket Lamb 🐑

Travis (.org) Crates.io

A crate to allow running a Rocket webserver as an AWS Lambda Function with API Gateway, built on the AWS Lambda Rust Runtime.

The function takes a request from an AWS API Gateway Proxy and converts it into a LocalRequest to pass to Rocket. Then it will convert the response from Rocket into the response body that API Gateway understands.

This should also work with requests from an AWS Application Load Balancer, but this has not been tested.

Usage

#![feature(proc_macro_hygiene, decl_macro)]

#[macro_use] extern crate rocket;
use rocket_lamb::RocketExt;

#[get("/")]
fn hello() -> &'static str {
    "Hello, world!"
}

fn main() {
    rocket::ignite()
        .mount("/hello", routes![hello])
        .lambda() // launch the Rocket as a Lambda
        .launch();
}

For a full example including instructions on deploying to Lambda and configuring binary responses, see Example Rocket Lamb 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].