Serverless vs EKS/EC2

0

Dear Team,

We are building a service which will be exposed as Rest API through API Gateway. The service will perform 3 things.

  1. Validate the inputs
  2. Upload a document to S3(rather move the document-approx 40kb in size from Staging S3 location to Target S3)
  3. Insert the metadata to Dynamo DB

We expect this service to be called approx 2 lakh times within 8-10 hours on daily basis through AWS Batch. Afterwards, it may not be used through out the day. We were planning to have a lambda function for each of the above steps which will be called from API Gateway. If required, we may use Step functions to orchestrate above 3 steps.

Would Lambda functions be the appropriate way to process these steps in the service or should we use EC2/EKS and ASG to scale in and Scale out.

I assume the service will respond back within second but bearing Lambda concurrency limits in mind and any other limits we may face, let me know the best way to process the batch.

Regards, Dhaval Mehta

3개 답변
3
수락된 답변
AWS
답변함 2년 전
AWS
전문가
검토됨 2년 전
0

If you build your Lambda function with containers, then you can consider running the containers in EKS in future should your use case change.

AWS
답변함 2년 전
  • You can't really just use the same container image and run it on a traditional container solution (ECS/EKS/Docker/etc). Lambda has a specific event driven programming model that do not exist on the other platforms. The container image is just a packaging mechanism (what runs inside the image is different between Lambda and the other platforms)

  • Yes; the invocation mechanisms will be different. The core remains the same though.

0

To me this is a perfect use case for Lambda. +1

AWS
전문가
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠