4 ms·
I am not sure about the frameworks, but a lambda function is just that, a function. You can easily run your function and pass in an event object (a dict in Pyt
by marcrosoft 10y ago
I am not sure about the frameworks, but a lambda function is just that, a function. You can easily run your function and pass in an event object (a dict in Python) to test various scenarios. You don't need to deploy to test. Once you are ready you can deploy to lambda without publishing to fully test before publishing live.
- johnwheeler 10y agoThank you. Are these not meant to render user interfaces and just be for API-style computing?
- niftich 10y agoCorrect. That being said, there's nothing stopping you from emitting, say, HTML from such a function. But there's nothing really helping you either. It's basically function calls in the cloud; a remote procedure call where the remote procedure is executing on their infrastructure.
- deleted 10y ago[deleted]
- johnwheeler 10y agoI'm also guessing there's no session state or cookies?
- johnwheeler 10y agoWe'll I guess there wouldn't be without a server. You'd have to use JWT or the like.
- marcrosoft 10y agoI am currently using it for what you could probably call a user interface. My use case is forms stored in S3 served as an iframe which POST via JS to AWS API Gateway that calls lambda to process the form and return the result to the user.
- hartror 10y agoBut if you want to emulate the aws gateway + lambda cycle locally it seems like you need a bit of rigging to do this easily, especially if you want to talk to it with your browser.