Serverless architectures refer to applications that significantly depend on third-party services (knows as Backend as a Service or "BaaS") or on custom code that's run in ephemeral containers (Function as a Service or "FaaS"). By using these ideas, and by moving much behavior to the front end, such architectures remove the need for the traditional 'always on' server system sitting behind an application.
Questions tagged [serverless-architecture]
177 questions
4
votes
2 answers
Packages compiling native code (npm install) using AWS Lambda
I need to use the sharp package to resize images in a Lambda function, but it builds the native code when doing an “npm install” in my Windows machine, which definitely won’t work in Amazon Linux server where Lambda is hosted.
What’s the recommended…

Emi
- 4,597
- 2
- 31
- 34
4
votes
2 answers
Serverless Architecture based on a domain model?
I have recently started using serverless, I completed the tutorial on serverless-stack.com and I wanted to see if there was a way could represent the domain model in an application. I've searched for some samples but I can't seem to find anything.
I…

Jimi
- 1,867
- 7
- 31
- 55
4
votes
2 answers
API Gateway with Cognito User Pool Authorizer and Lambda
I am having an Architecture where I am using API Gateway with Cognito User Pool Authorizer and I am passing the IdToken in Authorization Header from client side ReST call.
It is working fine.
I need the cognitoIdentityId in Lambda.
Tried Body…

Indrajit Dan
- 193
- 1
- 3
- 12
3
votes
2 answers
provider.logRetentionInDays not working as expected
I am using serverless framework version 2.11.0
When trying to deploy, it is throwing serverless error:
Configuration error at 'provider.logRetentionInDays': should be equal to one of the allowed values
But it is not showing any allowed values.
Also…

Saurav Dutta
- 157
- 3
- 9
3
votes
3 answers
What is the difference between cloud computing and serverless computing?
How both of these differ ?
Is serverless computing is the part of cloud computing ?

iUbaid
- 313
- 2
- 16
3
votes
2 answers
Serverless option as default value for option not working
Hi I am trying to do the following with serverless:
If I am not giving an option I want it to pick another option
${opt:fb,${opt:environment,'dev'}}
However something is wrong as this error always appear as I call sls deploy:
A valid option to…

3nomis
- 1,175
- 1
- 9
- 30
3
votes
1 answer
How much safe it is to use Serverless approach for BFSI
I am new to serverless architecture. I am about to create a banking application. Is it a good idea to develop my whole system using 100% serverless architecture (using AWS Lambda) or should it be a hybrid combination of both Serverless and…

Mohit Bhatia
- 55
- 1
- 7
3
votes
2 answers
Lambda based Application on AWS marketplace
I have the application containing Lambda function, API gateway, and Dynamodb Table. I want to place complete package in AWS marketplace but not as a SaaS product.
I want to install this package on customer side.
For example - An application, having…

Mayank
- 325
- 1
- 4
- 13
3
votes
1 answer
How to connect to an arbitary database using FaaS?
I just did some reading about serverless computing and FaaS. If using FaaS to access an arbitrary database, we need each time to establish and close a database connection. In, lets say a node applications, we would usually establish the connection…

Stefan
- 576
- 7
- 27
3
votes
1 answer
Can google chrome headless browser be used to serve PDFs to end users
I am looking to use the google chrome headless browser's 'print to pdf' functionality to replace an existing way (using iText) to generate PDFs.
Is this a feasible solution considering the number of concurrent calls that would need to be processed…

uday kiran
- 299
- 1
- 2
- 9
3
votes
1 answer
Costs related to AWS Lambda retrying failing function?
I'm looking into serverless technology (specifically, Python, Django and Zappa on AWS Lambda) and one thing about error handling struck me. In the Zappa docs it says
By default, AWS Lambda will attempt to retry an event based (non-API Gateway, e.g.…

Mathieu Dhondt
- 8,405
- 5
- 37
- 58
3
votes
2 answers
Claudia.js with multiple AWS lambda functions
I'm using claudia.js CLI to deploy functions and web API to AWS lambda and API gateway.
My project files structure is as follow:
functions
--function1
---- node_modules
---- package.json
---- index.js
---- claudia.json
--function2
----…

Assaf Sheep
- 563
- 1
- 4
- 16
3
votes
3 answers
How to build serverless web site on Azure (rather then on AWS Amazon)
How to build serverless web site on Azure, as "auto-scaling, pay-per-execution, event-driven app"?
There are tons of good examples how to build serverless-arhitecture web site on AWS Amazon, e.g.…

Vasiliy
- 39
- 1
- 3
3
votes
2 answers
Return JSON in response to S3 Upload
I am relatively new to AWS Lambda so maybe this is trivial but I haven't figured it out so far.
I would like to return JSON data the same was that I can return it as a callback in response to an API Gateway request.
The problem that I have is that I…

lafayette
- 85
- 6
2
votes
1 answer
Do serverless functions install modules every time they are called?
Do server-less functions install modules every time they are called?
I am trying to understand how serverless functions really work. I understand that serverfull is basically a computer that executes code and that the server code runs on it 24/7…

YulePale
- 6,688
- 16
- 46
- 95