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.
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.
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.
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.
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.
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
! :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With