If not, this introduces yet another environment variable or it requires changes to be pushed constantly to Lamba for test.
Going Serverless: Migrating an Express App to AWS API Gateway and AWS Lambda
111–120 of 140 posts
Re: Going Serverless: Migrating an Express App to AWS API Gateway and AWS Lambda
#112Re: Going Serverless: Migrating an Express App to AWS API Gateway and AWS Lambda
#113What is the benefit of AWS Lambda vs getting a cheap VPS or a dedicated server with much better specs and bandwidth, setting it up and adding auto-update? And how does one prevent going bankrupt if a Lambda app is DDOSed?
That said, there is a concurrency limit, which would help prevent your server time going to exponential limits.
Re: Going Serverless: Migrating an Express App to AWS API Gateway and AWS Lambda
#114Earlier quoted context omitted.
Thanks for the reply. In which DB should I store this data, considering the option of either DynamoDB or ElastiCache?
Why not MySQL or PostgreSQL? Any reason you can't be relational?
Re: Going Serverless: Migrating an Express App to AWS API Gateway and AWS Lambda
#115How does this work, if at all, for local development? Is there a pseudo-Lambda server that runs locally? If not, this introduces yet another environment variable or it requires changes to be pushed constantly to Lamba for test.
Re: Going Serverless: Migrating an Express App to AWS API Gateway and AWS Lambda
#116I am currently using AWS API Gateway + Lambda for the serverless backend of a social traveling startup. It is absolutely awesome: we are few people in IT and it is amazingly simple to manage the whole stuff. Moreover imho they are mature services at this time, they are flexible enough with enough configuration properties to fulfill a nearly full control of the development experience.
How much does it end up costing you? Any ideas how much a 'traditional' setup would be in comparison?
Re: Going Serverless: Migrating an Express App to AWS API Gateway and AWS Lambda
#117What is the benefit of AWS Lambda vs getting a cheap VPS or a dedicated server with much better specs and bandwidth, setting it up and adding auto-update? And how does one prevent going bankrupt if a Lambda app is DDOSed?
The cost is stupidly low. You would really have to work hard to go bankrupt. That said, there is a concurrency limit, which would help prevent your server time going to exponential limits.
Re: Going Serverless: Migrating an Express App to AWS API Gateway and AWS Lambda
#118Earlier quoted context omitted.
You realized Amazon offers hosted MySQL and PostgreSQL, right? One click, and it's up. https://aws.amazon.com/rds/
Ok, I want a 2 pronged approach: 1) A NoSQL DB for the main data providing replication and scalability(e.g. Cassandra or DynamoDB). 2) Another DB for quick access and transient Data where replication is not so important, e.g. storing the session cookie. Relational vs Non-relational would not be an issue since I'm only storing very little data here and want fast access and minimize costs(in DynamoDB you still have to…
Re: Going Serverless: Migrating an Express App to AWS API Gateway and AWS Lambda
#119Serverless via Lambda has been, frankly, a disappointment so far. The benefit is that I'm supposed to not have to manage servers anymore, yet I find myself, well, managing servers. I have to build and assign IAM roles, subnets, set up application configuration files in fixed external services (since you can't do things like set environment variables), configure the endpoints in nginx^h^h^h^h^h API Gateway, suffer thr…
I'd be inclined to say that may be the case. Our codebase leans heavily on Lambda, primarily as a wide stage in our data pipeline. And I love it.
Using a configuration file in S3 - or any other means of dropping a text file on AWS - is barely more complicated than open("file.txt"). The true frustration is when you need to work with files beyond your memory limits, but even that can be mitigated by divide and conquer approaches.
That said, the API Gateway is annoying in that it makes complex things impossible and simple things more configuration than they need. Yet, I'd still take it over actually standing up a server.
Re: Going Serverless: Migrating an Express App to AWS API Gateway and AWS Lambda
#120Earlier quoted context omitted.
Why not MySQL or PostgreSQL? Any reason you can't be relational?
Just curious, what would be the major drawbacks of not using relational here? My understanding is that AWS is pushing Dynamo quite a bit and it seems cheaper, so if they're only needing to query off of session id and maybe user id, shouldn't that be sufficient?
If all he needed was session id, sure, NoSQL is more or less the same. But what about when he adds other fields that are related? Say customer address or reports or .... His life may very well be easier with relational.
You should generally start relational. Then branch out if you are hitting the brick walls of relational. People using NoSQL for a 100MB database are making their life SERIOUSLY more difficult than it needs to be. (I have done it before, not fun).