Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Handling https requests without API Gateway

What ways do exist for handling http(s) requests using AWS lambda but without using API Gateway or Amazon Kinesis ? Is it possible at all?

Particular I want implement my own REST API but do not pay for API Gateway service, using only AWS lambda.

I'm not asking for tutorial or library, this is principal about Amazon services architecture.

This all is about Java 8 runtime.

like image 275
Andremoniy Avatar asked Feb 21 '16 20:02

Andremoniy


People also ask

Can we use Lambda without API gateway?

Looks like an ability to directly call Lambdas over the Internet without an API Gateway was just added to the SDK. Function URLs are available using the Lambda API and are supported in CloudFormation, AWS SAM and AWS CDK.

Does API gateway use https?

API Gateway Data Store is the default data store for API Gateway. You can secure API Gateway Data Store (a simple Elasticsearch instance), one of the components in an API Management setup, to communicate securely over HTTPS.

Should API gateway handles authentication?

API Gateway supports multiple authentication methods that are suited to different applications and use cases. API Gateway uses the authentication method that you specify in your service configuration to validate incoming requests before passing them to your API backend.

What is difference between REST API and HTTP API?

REST APIs support more features than HTTP APIs, while HTTP APIs are designed with minimal features so that they can be offered at a lower price. Choose REST APIs if you need features such as API keys, per-client throttling, request validation, AWS WAF integration, or private API endpoints.


1 Answers

You can use Invoke from the AWS Lambda API to call your lambda functions.

To use it via the AWS SDK for Java, check public InvokeResult invoke(InvokeRequest invokeRequest) from the AWSLambdaClient class in the package com.amazonaws.services.lambda.

But as Mickael wrote in the comments, I think you should pay $3.50 per million requests with API Gateway! :)

like image 73
Alexis N-o Avatar answered Oct 12 '22 13:10

Alexis N-o